Rpi Firmware  

Page 2 / 2
  RSS
rene
 rene
(@rene)
Member Admin

Since the firmware that I postet in the google group is an untested prototype for users who use an Arduino with CNC shield, it is very likely that things do not work. It is possible that the raspberry pi automatically updates the Arduino if your arduino firmware reports a version number that is lower than the official version thst ships with the fabscan pi server. Try the same version number and upload the firmware manually to the Arduino again.

ReplyQuote
Posted : 28/03/2019 10:18 am
mario
(@mario)
Member Admin

Yes, the FabScan is checking the firmware. When it detects that the firmware is older than the current firmware in the source folder, than it automatically flashes the newer version to the Arduino. In your case the firmware is "older". You will have two options. 

  • Update the date in Version.h in the Arduino code. Build it and flash it. 
  • Change autoflash to False in the default.config.json serial section what prevents autoflashing (recommended)

By the way, i am preparing to support different firmwares in the next version by config. Please commit your changes to GitHub and do a pull request on the firmware branch. So i am able to merge your commitments and it will be available within the next version. 

 

ReplyQuote
Posted : 28/03/2019 10:27 am
amulaya
(@amulaya)
Active Member

Update the date in Version.h in the Arduino code. Build it and flash it.

It still changes the firmware

Change autoflash to False in the default.config.json serial section what prevents autoflashing (recommended)

The GUI stops working, in log it says:

2019-03-28 12:17:20,551 - fabscan.server.FSScanServer - INFO - FabScanPi-Server 0.7.0
2019-03-28 12:17:21,153 - fabscan.scanner.laserscanner.driver.FSSerial - DEBUG - Port in Config found
2019-03-28 12:17:21,155 - fabscan.scanner.laserscanner.driver.FSSerial - DEBUG - Latest available firmware version is: v.20190211
2019-03-28 12:17:22,913 - fabscan.scanner.laserscanner.driver.FSSerial - DEBUG - Trying to connect Arduino on port: /dev/ttyACM0
2019-03-28 12:17:30,931 - fabscan.scanner.laserscanner.driver.FSSerial - DEBUG - Installed firmware version: None
2019-03-28 12:17:30,933 - fabscan.scanner.laserscanner.driver.FSSerial - INFO - Old or no firmare detected trying to flash current firmware...
2019-03-28 12:17:30,984 - fabscan.lib.util.FSUtil - DEBUG - 808 /usr/lib/python2.7/dist-packages/fabscan/firmware/fabscanpi_v.20190211.hex
ReplyQuote
Posted : 28/03/2019 12:32 pm
rene
 rene
(@rene)
Member Admin

Pull request for classic firmware:

https://github.com/mariolukas/FabScanPi-Firmware/pull/8

ReplyQuote
Posted : 28/03/2019 9:41 pm
mario
(@mario)
Member Admin

One suggestion to the re-flashing issue. You can deactivate auto flashing in the default.config.josn. 

Anyway I added the cnc shield firmware to the next release. So it will be available as one of the default firmwares. The only thing you need to to is setting the board in the default.config.json. I think the next release will be available at the end of this month.

ReplyQuote
Posted : 14/07/2019 4:26 pm
Page 2 / 2
Share: