FabScanPi Server is...
 
Notifications
Clear all

FabScanPi Server is currently not running

4 Posts
3 Users
2 Likes
774 Views
lupr1
Posts: 2
Topic starter
(@lupr1)
New Member
Joined: 3 years ago

Hello everyone,

the last days I started working with the FabScan.. including the assembling as well as the software installation. I'm right now struggling with connecting to the FabScan Server. I already recognized that this i a common problem but I couldn't find any answer so far during my research. Whenever I try to connect to the server's ip address, the server is currently not running.

Checking the server leads to the following message... saying that it's active...

pi@fabscanpi: $ sudo systemctl status fabscanpi-server

● fabscanpi-server.service - FabScan Pi - Open Source 3D Scanner
   Loaded: loaded (/lib/systemd/system/fabscanpi-server.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2021-06-24 13:19:22 CEST; 1min 29s ago
 Main PID: 1658 (fabscanpi-serve)
    Tasks: 10 (limit: 1786)
   CGroup: /system.slice/fabscanpi-server.service
           ├─1658 /usr/bin/python3 /usr/bin/fabscanpi-server --config=/etc/fabscanpi/default.config.json --settings=/etc/fabscanpi/default.set
           ├─1691 sudo avrdude-autoreset -p m328p -b 115200 -carduino -P/dev/ttyAMA0
           ├─1692 /bin/bash /usr/bin/avrdude-autoreset -p m328p -b 115200 -carduino -P/dev/ttyAMA0
           ├─1693 sudo strace -o | tail -n +1 | autoreset -eioctl sudo /usr/bin/avrdude -p m328p -b 115200 -carduino -P/dev/ttyAMA0
           ├─1694 strace -o | tail -n +1 | autoreset -eioctl sudo /usr/bin/avrdude -p m328p -b 115200 -carduino -P/dev/ttyAMA0
           ├─1697 sh -c  tail -n +1 | autoreset
           ├─1698 sudo /usr/bin/avrdude -p m328p -b 115200 -carduino -P/dev/ttyAMA0
           ├─1699 tail -n +1
           └─1701 /usr/bin/avrdude -p m328p -b 115200 -carduino -P/dev/ttyAMA0

Jun 24 13:19:29 fabscanpi fabscanpi-server[1658]: avrdude-original: Using autoreset DTR on GPIO Pin 7
Jun 24 13:20:19 fabscanpi sudo[1667]: pam_unix(sudo:session): session closed for user root
Jun 24 13:20:19 fabscanpi fabscanpi-server[1658]: tail: write error: Broken pipe
Jun 24 13:20:19 fabscanpi sudo[1662]: pam_unix(sudo:session): session closed for user root
Jun 24 13:20:19 fabscanpi sudo[1691]:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/avrdude-autoreset -p m328p -b 115200 -card
Jun 24 13:20:19 fabscanpi sudo[1691]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jun 24 13:20:19 fabscanpi sudo[1693]:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/strace -o | tail -n +1 | autoreset -eioctl
Jun 24 13:20:19 fabscanpi sudo[1693]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jun 24 13:20:20 fabscanpi sudo[1698]:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/avrdude -p m328p -b 115200 -carduino -P/de
Jun 24 13:20:20 fabscanpi sudo[1698]: pam_unix(sudo:session): session opened for user root by (uid=0)

The log file outputs is only frequently repeating:

pi@fabscanpi:/var/log/fabscanpi $ sudo less fabscanpi.log

2021-06-17 13:32:13,905 [16975:1996405456] INFO - fabscan.server.FSScanServer: FabScanPi-Server 0.9.4
2021-06-17 13:32:13,909 [16975:1996405456] DEBUG - fabscan.scanner.interfaces: Scanner Type is: laserscanner
2021-06-17 13:32:14,872 [16975:1996405456] DEBUG - fabscan.scanner.laserscanner.driver.FSSerial: Port in Config found
2021-06-17 13:32:14,875 [16975:1996405456] DEBUG - fabscan.scanner.laserscanner.driver.FSSerial: Latest available firmware version is: v.20200
624
2021-06-17 13:32:17,113 [16975:1996405456] INFO - fabscan.lib.util.FSUtil: b'avrdude-original: Using autoreset DTR on GPIO Pin 7'
2021-06-17 13:33:06,622 [16975:1996405456] ERROR - fabscan.scanner.laserscanner.driver.FSSerial: Communication error on port /dev/ttyAMA0 try 
other flashing baudrate than 115200. Maybe corrupted bootloader.
2021-06-17 13:33:06,623 [16975:1996405456] ERROR - fabscan.scanner.laserscanner.driver.FSSerial: Fatal FabScanPi HAT or compatible connection 
error: 'NoneType' object has no attribute 'isOpen'
2021-06-17 13:33:06,623 [16975:1996405456] INFO - fabscan.server.FSScanServer: FabScan Server Exit. Bye!

Can anyone help me with this issue.. thank you in advance. Feel free to ask for any more information or code.

Cheers.

Reply
3 Replies
dave.marianne
Posts: 1
(@dave-marianne)
New Member
Joined: 3 years ago

Hi

I am trying to get my fabscan running i am using an uno arduion board and a pi 3 model b board.

I have read lots of info and changed lots of set up but run in the the same problem sever not running, the log file below say it a board rate i have changed it in the pi set up file and the arduion and not change. would like some help to pint me in the right direction.

2021-08-22 15:43:32,752 [510:1996368592] INFO - fabscan.server.FSScanServer: FabScan Server Exit. Bye!
2021-08-22 15:44:30,398 [535:1996102352] INFO - fabscan.server.FSScanServer: FabScanPi-Server 0.10.0
2021-08-22 15:44:30,399 [535:1996102352] DEBUG - fabscan.FSConfig: Loading config file.
2021-08-22 15:44:30,401 [535:1996102352] DEBUG - fabscan.FSConfig: Checking for valid config values.
2021-08-22 15:44:30,404 [535:1996102352] DEBUG - fabscan.scanner.interfaces: Scanner Type is: laserscanner
2021-08-22 15:44:31,037 [535:1996102352] DEBUG - fabscan.scanner.laserscanner.FSImageProcessor: config ID: 1706252976
2021-08-22 15:44:31,037 [535:1996102352] DEBUG - fabscan.scanner.laserscanner.FSImageProcessor: Initializing weighted Matrix
2021-08-22 15:44:31,169 [535:1996102352] DEBUG - fabscan.scanner.laserscanner.FSImageProcessor: config ID: 1706252976
2021-08-22 15:44:31,170 [535:1996102352] DEBUG - fabscan.scanner.laserscanner.driver.FSSerial: Port in Config found using: /dev/ttyAMA0
2021-08-22 15:44:31,173 [535:1996102352] DEBUG - fabscan.scanner.laserscanner.driver.FSSerial: Latest available firmware version is: v.20200624
2021-08-22 15:44:33,434 [535:1996102352] INFO - fabscan.lib.util.FSUtil: b'avrdude-original: Using autoreset DTR on GPIO Pin 7'
2021-08-22 15:45:22,821 [535:1996102352] ERROR - fabscan.scanner.laserscanner.driver.FSSerial: Communication error on port /dev/ttyAMA0 try other flashing baudrate than 115200. Maybe corrupted bootloader.

 

Reply
leonnoel
Posts: 59
(@leonnoel)
Trusted Member
Joined: 4 years ago

Since you have mentioned you are using an uno arduion board are you using the fabscanpi hat provided as part of the kit aor are you trying to use an arduino uno R3?  The arduino R3 will require a hat with the function of the ciclop zum board for driving the stepper, switching the lasers and driving the led lighting.  Also the Arduino serial port address is ttyUSB0 and the loading baud rate is 14400.  If you are using the Fabscanpi hat my guess is that the boot loader needs to be reloaded.

 

 

Reply
lupr1
Posts: 2
Topic starter
(@lupr1)
New Member
Joined: 3 years ago

For me, flashing the bootloader was the solution. After that, the connection to the fabscan server finally works. 

You can find an instruction here: 

https://learn.watterott.com/de/hats/rpi-uno-hat/bootloader/

There also is a post regarding the bootloader flashing:

https://fabscan.org/community/hardware/bootloader-flashing-tool/

Reply
Share: