Notifications
Clear all

Original Ciclop Question


Lord_Kimbou
Posts: 8
Topic starter
(@lord_kimbou)
Active Member
Joined: 2 years ago

Hi! I'm new here. I'm from Spain, and I have an original BQ Ciclop. I like to make a new scanner because ciclop is abandoned and I want to try Fabscan..

I download version 0.92, my other configs are Raspberry 3 and PICAM 5mp. First step sd Image done, boot, ok.. 

I modify default.config.json like ciclop.config.json.. Well.. With original Bq Bt328 mainboard, baudrate 14400 or 115200 didn't work (correct "baudrate": 19200 and "flash_baudrate": 19200) with this changes fabscan start.. But..................... Last problem...

Lasers and base don't move with firmware 0.92... I put ("autoflash": "False") and I try "https://github.com/mariolukas/FabScanPi-Firmware", I modify "boards.h" with board (" #define MOTHERBOARD BOARD_CYCLOP") I upload file, but nothing..

It's possible that no one has tested the original Bq Ciclop and something it's wrong with this board?? fabscan version 0,92 have some bug?? Or maybe I'm doing something wrong??

 

Thanks for all! and forgive a noob! ? 

 

Reply
15 Replies
mario
Posts: 570
Admin
(@mario)
Member
Joined: 4 years ago

Hello and welcome to the FabSan Community, 

the setup should generally work with the ciclop, but i have to say that my last test was a couple of month ago. Anyway the current fabscan software release (0.9.2) has some critical bugs which prevent the server software to start up correctly. I will do a release of 0.9.3 version soon.

But you should use the latest version ( 0.9.3 ) in the testing branch because that is stable. 

https://fabscan.org/community/faq-software/how-can-i-use-the-latest-probably-unstable-software/#post-1595

Generally for the ciclop setup the serial connection settings should be

"serial": {
"plattform_type": "ciclop",
"baudrate": 14400,
"autoflash": "True",
"port": "/dev/ttyUSB0",
"flash_baudrate": 115200
},

14400 is fixed value in the firmware (set in the Makefile). 19200 for flashing seems to work in your setup so you should use this value. I don't have the original ciclop ZUM board. Mine is a chinese clone i think we need to do some experiments here. 

When the serial connection works and the server is starting you need some additional settings for the ciclop in the config file.

"laser": {
"interleaved": "False",
"numbers": 1,
"color": "R (RGB)"
},

to

"laser": {
"interleaved": "True",
"numbers": 1,
"color": "R (RGB)"
},

- Mario

Reply
Lord_Kimbou
Posts: 8
Topic starter
(@lord_kimbou)
Active Member
Joined: 2 years ago

Tomorrow I''ll do some more test, but I updated to the latest version (0.9.3), and now everything seems to work!! THANKS!! ? ?

 

 

Reply
Lord_Kimbou
Posts: 8
Topic starter
(@lord_kimbou)
Active Member
Joined: 2 years ago

Well... I'm back again! 

New step, new problem.. Now I can enter on server/duck/options button 4.. laser 1 and 2 works, turntable works.. But when i push on "start calibration" server became stuck..

I think camera stop working... 

Spoiler
Log file
2020-09-24 1631,063 [545:1996094160] DEBUG - fabscan.lib.util.FSUtil: System Exit initiated...
2020-09-24 1631,224 [545:1996094160] DEBUG - fabscan.server.FSScanServer: Waiting for Webserver exit...
2020-09-24 1651,384 [545:1453057120] DEBUG - fabscan.FSScanner: CPU Temperature: 54.23 C
2020-09-24 1651,382 [545:1390359648] DEBUG - fabscan.FSScanner: CPU Temperature: 53.69 C
2020-09-24 1633,974 [577:1995533008] INFO - fabscan.server.FSScanServer: FabScanPi-Server 0.9.3+202008272250
2020-09-24 1633,983 [577:1995533008] DEBUG - fabscan.scanner.interfaces: Scanner Type is: laserscanner
2020-09-24 1636,087 [577:1995533008] DEBUG - fabscan.scanner.laserscanner.driver.FSSerial: Port in Config found
2020-09-24 1636,090 [577:1995533008] DEBUG - fabscan.scanner.laserscanner.driver.FSSerial: Latest available firmware version is: v.20200624
2020-09-24 1638,073 [577:1995533008] DEBUG - fabscan.scanner.laserscanner.driver.FSSerial: Trying to connect Arduino on port: /dev/ttyUSB0
2020-09-24 1641,099 [577:1995533008] DEBUG - fabscan.scanner.laserscanner.driver.FSSerial: Installed firmware version: v.20200624
2020-09-24 1641,100 [577:1995533008] INFO - fabscan.scanner.laserscanner.driver.FSSerial: FabScanPi is connected to FabScanPi HAT or compatible on port: /dev/ttyUSB0
2020-09-24 1643,128 [577:1995533008] DEBUG - fabscan.scanner.laserscanner.driver.FSSerial: Connection baudrate is: 19200
2020-09-24 1643,129 [577:1995533008] DEBUG - fabscan.scanner.laserscanner.driver.FSSerial: Firmware flashing baudrate is: 19200
2020-09-24 1643,130 [577:1995533008] DEBUG - fabscan.scanner.laserscanner.FSHardwareController: Reset FabScanPi HAT...
2020-09-24 1643,168 [577:1995533008] DEBUG - fabscan.scanner.laserscanner.FSHardwareController: Hardware controller initialized...
2020-09-24 1643,323 [577:1995533008] INFO - fabscan.scanner.laserscanner.FSScanProcessor: Laser Scan Processor initilized.
2020-09-24 1643,436 [577:1995533008] INFO - fabscan.scanner.laserscanner.FSScanProcessor: Laser Scan Processor initilized.
2020-09-24 1643,438 [577:1995533008] DEBUG - fabscan.server.FSWebServer: /usr/share/fabscanpi/
2020-09-24 1643,439 [577:1530016864] DEBUG - fabscan.server.FSWebServer: Server listening on port 8080
2020-09-24 1643,551 [577:1995533008] INFO - fabscan.scanner.laserscanner.FSScanProcessor: Laser Scan Processor initilized.
2020-09-24 1643,663 [577:1995533008] INFO - fabscan.scanner.laserscanner.FSScanProcessor: Laser Scan Processor initilized.
2020-09-24 1643,689 [577:1995533008] INFO - fabscan.FSScanner: Job scheduler started.
2020-09-24 1643,689 [577:1995533008] INFO - fabscan.FSScanner: Scanner initialized...
2020-09-24 1643,690 [577:1995533008] INFO - fabscan.FSScanner: Number of cpu cores: 4
2020-09-24 1643,691 [577:1995533008] INFO - fabscan.lib.util.FSDiscovery: Registering ip 192.168.1.108 to discovery service.
2020-09-24 1644,385 [577:1530016864] DEBUG - fabscan.server.services.websocket.FSWebSocketHandler: New client connected
2020-09-24 1644,777 [577:1995533008] INFO - fabscan.lib.util.FSDiscovery: Successfully registered to find.fabscan.org
2020-09-24 1644,938 [577:1995533008] INFO - fabscan.FSScanner: Added discovery scheduling job.
2020-09-24 1645,129 [577:1530016864] DEBUG - fabscan.FSScanner: Upgrade available: False 0.9.3+202008272250
2020-09-24 1645,211 [577:1521624160] DEBUG - fabscan.scanner.laserscanner.FSScanProcessor: Checking Hardware connections
2020-09-24 1650,070 [577:1513231456] DEBUG - fabscan.scanner.laserscanner.driver.FSCamera: Cam Processor Thread with id 1513231456 started.
2020-09-24 1650,207 [577:1504838752] DEBUG - fabscan.scanner.laserscanner.driver.FSCamera: Cam Processor Thread with id 1504838752 started.
2020-09-24 1650,345 [577:1464730720] DEBUG - fabscan.scanner.laserscanner.driver.FSCamera: Cam Processor Thread with id 1464730720 started.
2020-09-24 1650,483 [577:1452495968] DEBUG - fabscan.scanner.laserscanner.driver.FSCamera: Cam Processor Thread with id 1452495968 started.
2020-09-24 1650,619 [577:1521624160] DEBUG - fabscan.scanner.laserscanner.driver.FSCamera: Cam Stream with Resolution (800, 600) started
2020-09-24 1650,645 [577:1530016864] DEBUG - fabscan.server.services.api.FSStreamHandler: mjpeg stream started.
2020-09-24 1628,945 [577:1464730720] DEBUG - fabscan.scanner.laserscanner.driver.FSCamera: Cam Processor Thread with id 1464730720 killed.
2020-09-24 1644,943 [577:1464730720] DEBUG - fabscan.FSScanner: CPU Temperature: 55.84 C

Spoiler
Default config

"folders": {
"www": "/usr/share/fabscanpi/",
"scans": "/home/pi/scans/"
},
"laser": {
"interleaved": "True",
"numbers": 2,
"color": "R (RGB)"
},
"scanner_type": "laserscanner",
"calibration": {
"weight_matrix": [],
"dist_camera_matrix": [],
"pattern": {
"square_size": 11,
"rows": 6,
"columns": 8,
"origin_distance": 35.70
},
"camera_matrix": [],
"distortion_vector": [],
"laser_planes": [
{
"deviation": 0,
"distance": 0,
"normal": []
},
{

"deviation": 0,
"distance": 0,
"normal": []
}
],
"platform_translation": [],
"platform_rotation": []
},
"meshlab": {
"path": "/usr/bin/"
},
"process_numbers": 4,
"turntable": {
"steps": 3200,
"radius": 100
},
"camera": {
"resolution": {
"width": 1640,
"height": 1232
},
"preview_resolution": {
"width": 800,
"height": 600
},
"rotate": "True",
"hflip": "True",
"vflip": "False",
"type": "PICAM",
"undistort": "False"
},
"serial": {
"plattform_type": "ciclop",
"baudrate": 19200,
"autoflash": "True",
"port": "/dev/ttyUSB0",
"flash_baudrate": 19200
},
"texture_illumination": 140,
"keep_raw_images": "True",
"discoverable": "True",
"online_lookup_ip": "8.8.8.8"
}

any idea of the problem?? ? 

Reply
Lord_Kimbou
Posts: 8
Topic starter
(@lord_kimbou)
Active Member
Joined: 2 years ago

Update..

I make an other boot image (Server Version 0.90). 

With the 0.90 I can finish the calibration.. But problem became from "start scan".. Scan starts with texture, all works perfectly until it changes from texture to laser. Image disappear and nothing else happens.. Tomorrow I downgrade server version again.. ? 

Reply
Danilo0702
Posts: 394
(@danilo0702)
Reputable Member
Joined: 4 years ago

use the v.093

.ssh login to the Pi

.sudo nano /etc/apt/sources.list.d/fabscanpi.list

.change the line to the sources.list that it looks exactly like this:

deb http://archive.fabscan.org/ testing main

.save "ctrl o -Enter ---- ctrl x Enter

.sudo apt-get update && sudo apt-get dist-upgrade

Reply
Lord_Kimbou
(@lord_kimbou)
Joined: 2 years ago

Active Member
Posts: 8

@danilo0702

Version 0.93 didn't work for me at all -> Only lasers and table move works on options tab 4. No Calibration, no scan..

0.92 -> Nothing works! XD

0.90 -> Calibration works, scan partially (only works texture mapping)... 

0.82 may -> 

Spoiler
Log
2020-09-25 1320,585 - fabscan.server.FSScanServer - INFO - FabScanPi-Server 0.8.2
2020-09-25 1320,590 - fabscan.scanner.interfaces - DEBUG - Scanner Type is: laserscanner
2020-09-25 1322,323 - fabscan.scanner.laserscanner.driver.FSSerial - DEBUG - Port in Config found
2020-09-25 1322,328 - fabscan.scanner.laserscanner.driver.FSSerial - DEBUG - Latest available firmware version is: v.20190811
2020-09-25 1324,369 - fabscan.scanner.laserscanner.driver.FSSerial - DEBUG - Trying to connect Arduino on port: /dev/ttyUSB0
2020-09-25 1327,399 - fabscan.scanner.laserscanner.driver.FSSerial - DEBUG - Installed firmware version: v.20200624
2020-09-25 1327,401 - fabscan.scanner.laserscanner.driver.FSSerial - INFO - Old or no firmare detected trying to flash current firmware...
2020-09-25 1327,652 - fabscan.lib.util.FSUtil - INFO - 782 /usr/lib/python2.7/dist-packages/fabscan/firmware/ciclop_v.20190811.hex
2020-09-25 1339,126 - fabscan.scanner.laserscanner.driver.FSSerial - DEBUG - Trying to connect Arduino on port: /dev/ttyUSB0
2020-09-25 1348,159 - fabscan.scanner.laserscanner.driver.FSSerial - INFO - Successfully flashed new Firmware Version: None
2020-09-25 1348,159 - fabscan.scanner.laserscanner.driver.FSSerial - ERROR - Can not find Arduino or FabScanPi HAT
2020-09-25 1348,160 - fabscan.scanner.laserscanner.driver.FSSerial - ERROR - Fatal FabScanPi HAT or compatible connection error....
2020-09-25 1348,160 - fabscan.server.FSScanServer - INFO - FabScan Server Exit. Bye!

 

Reply
mario
Admin
(@mario)
Joined: 4 years ago

Member
Posts: 570

@lord_kimbou which version of the Raspberry Pi are you using. The Raspberry Pi 4 definitely needs active cooling for FabScan. Otherwise the software tends to freeze.

Reply
Lord_Kimbou
(@lord_kimbou)
Joined: 2 years ago

Active Member
Posts: 8

@mario raspberry 3B.. Maybe I see something... One problem became from "autoflash firmware", I see when I change from 0.90 to 0.82, the server flash something on board but after that "firmware version" it's lost.. I try later, 0.90, 0,92, and 0,93 and no firmware version anymore (I reboot, server flash something but no firmware version on Splash server or log, log say "none" on version

Spoiler
Log Flash error
Successfully flashed new Firmware Version: None
).. I connect scanner to my Pc, I upload firmware with Arduino Ide, and now it's working again on server.. Now server upload firmware without problems... But... Like always... 0.93+202008272250.. Stuck on calibration.. and 0.90 I can calibrate and start scan but texture only it's done, then freeze.. Server perhaps freeze with a problem with board or lasers.. 

I think  it's a problem with original Bq board, it's a folk of Arduino Bt (Atmega 328p).. What do you think?

Reply
mario
Admin
(@mario)
Joined: 4 years ago

Member
Posts: 570

@lord_kimbou it is not a good idea using older versions than 0.9.0. There was a bug which bricks the firmware sometimes even the bootloader of the "Arduino". In this case you need to rewrite the bootloader of the arduino. 

There is always a chance that things won't work with minor version. New versions mean a lot of bugfixes. It would be better to describe your problems and wait until we found a solution. That helps others who have the same or a similar issue. 

I need to proof the behaviour with my ciclop setup and in need to reproduce the error. In case i can reproduce it i maybe can fix it. 

Reply
Lord_Kimbou
(@lord_kimbou)
Joined: 2 years ago

Active Member
Posts: 8

@mario So.....I'll wait.. If you need some test, tell me something.

Thanks for all!

Reply
Danilo0702
Posts: 394
(@danilo0702)
Reputable Member
Joined: 4 years ago
Reply
Danilo0702
Posts: 394
(@danilo0702)
Reputable Member
Joined: 4 years ago

@lord_kimbou, witch version from v093 do you use?

Reply
Lord_Kimbou
(@lord_kimbou)
Joined: 2 years ago

Active Member
Posts: 8

@danilo0702 0.93+202008272250. I think it's a problem with Bq original board.. ? 

Reply
ewr2san
Posts: 3
(@ewr2san)
Active Member
Joined: 3 years ago

Seems to be working for me now with the HE3D Cyclop, Pi4, and a pi-cam!

Reply
ewr2san
Posts: 3
(@ewr2san)
Active Member
Joined: 3 years ago

Server: v.0.9.3+202008272250
Firmware: v.20200624

Reply
Share: