Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firmware_bundles are obsolete #7

Closed
joebowbeer opened this issue Mar 21, 2017 · 9 comments

Comments

Projects
None yet
5 participants
@joebowbeer
Copy link

commented Mar 21, 2017

The most recent commit (72eca92) updated firmware to rev 201611070000, whereas current Bean Loader apps require rev 201611160000.

In a possibly related issue, the bean program_firmware command does not fail-fast if the bean's firmware is more recent than the revision in the SDK's firmware_bundles. Instead it proceeds, but does not complete:

[...]
2017-03-21T00:39:41.915Z INFO All services have been setup!
Connected!

2017-03-21T00:39:41.946Z INFO Char read success(2a27): 2A
Programming device firmware: 884aea153e0a
2017-03-21T00:39:41.952Z INFO Begin update called
2017-03-21T00:39:41.975Z INFO Char read success(2a26): 201611160000 Img-B
2017-03-21T00:39:41.976Z INFO Comparing firmware versions: Bundle version (201611070000), Bean version (201611160000)
2017-03-21T00:39:41.979Z INFO Starting FW update for device Bean+(884aea153e0a)
2017-03-21T00:39:41.981Z INFO Begin FW @ 1490056782
2017-03-21T00:39:41.984Z INFO Triggered a notification on Identify char

The command appears to hang at this point and must be manually terminated.

Another possibly related bug is that the bean program_sketch command also hangs. This has been reported several times recently in the forum:

2017-03-21T00:42:35.289Z INFO All services have been setup!
Connected!

2017-03-21T00:42:35.318Z INFO Char read success(2a27): 2A
Found sketch setLed for board Bean+
2017-03-21T00:42:35.328Z INFO No longer scanning...
2017-03-21T00:42:35.331Z INFO State transition: null -> STATE_INACTIVE
2017-03-21T00:42:35.331Z INFO Beginning sketch upload of sketch: setLed
2017-03-21T00:42:35.332Z INFO State transition: STATE_INACTIVE -> STATE_AWAIT_READY
2017-03-21T00:42:35.333Z INFO Sketch upload started!

Once again, the command appears to hang at this point and must be manually terminated.

Other commands that hang are: read_accel, read_ble_config, and read_device_info.

I wonder if the hangs are related to the firmware version? It seems unlikely that they are related to BLE dongle because the hangs have been reported when using several different approved dongles.

windows 10
python 2.7.13
node v6.10.0
bean 0.6.1

@evaldsurtans

This comment has been minimized.

Copy link

commented Apr 1, 2017

I forked and recompiled version - with latest firmware it is not possible to program lightblue bean anymore. Same problem as described here: http://beantalk.punchthrough.com/t/cli-unable-to-upload-sketch-update-firmware-rename-bean/4187/14
Not working on all platforms probably (mine linux)

@evaldsurtans

This comment has been minimized.

Copy link

commented Apr 1, 2017

I tried to downgrade firmware (using reversed patch), but unfortunately command also hangs

./bean.sh program_firmware -n Bean

2017-04-01T19:59:35.606Z INFO Setting scan timeout: 15 seconds
2017-04-01T19:59:35.611Z INFO Starting to scan...

Found device with name/address: Bean/04a3169af315
2017-04-01T19:59:36.349Z INFO No longer scanning...
2017-04-01T19:59:36.350Z INFO Connecting to device: Bean
2017-04-01T19:59:36.883Z INFO Looking up services for device: Bean
2017-04-01T19:59:37.725Z INFO Found service: OAD Service / f000ffc004514000b000000000000000
2017-04-01T19:59:37.725Z INFO Found service: Generic Access / 1800
2017-04-01T19:59:37.725Z INFO Found service: Generic Attribute / 1801
2017-04-01T19:59:37.726Z INFO Found service: Device Information / 180a
2017-04-01T19:59:37.726Z INFO Found service: Serial Transport Service / a495ff10c5b14b44b5121370f02d74de
2017-04-01T19:59:37.726Z INFO Found service: Unknown / a495ff20c5b14b44b5121370f02d74de
2017-04-01T19:59:37.726Z INFO Found service: Battery Service / 180f
2017-04-01T19:59:37.726Z INFO Found service: Scan Parameters / 1813
2017-04-01T19:59:37.726Z INFO Found service: Human Interface Device / 1812
2017-04-01T19:59:37.726Z INFO Found service: Unknown / 03b80e5aede84b33a7516ce34ec4c700
2017-04-01T19:59:37.727Z INFO Service setup successfully: Generic Access
2017-04-01T19:59:37.727Z INFO Service setup successfully: Generic Attribute
2017-04-01T19:59:37.727Z INFO Service setup successfully: Human Interface Device
2017-04-01T19:59:37.727Z INFO Service setup successfully: Scan Parameters
2017-04-01T19:59:37.728Z INFO Setting up IDENTIFY and BLOCK notifications
2017-04-01T19:59:37.728Z INFO Service setup successfully: Device Information
2017-04-01T19:59:37.728Z INFO Setting up SERIAL notifications
2017-04-01T19:59:37.728Z INFO Service setup successfully: Unknown
2017-04-01T19:59:37.728Z INFO Service setup successfully: Battery Service
2017-04-01T19:59:37.729Z INFO Service setup successfully: Unknown
2017-04-01T19:59:37.848Z INFO Service setup successfully: OAD Service
2017-04-01T19:59:37.870Z INFO Service setup successfully: Serial Transport Service
2017-04-01T19:59:37.871Z INFO All services have been setup!
Connected!

2017-04-01T19:59:37.893Z INFO Char read success(2a27): 1E
Programming device firmware: 04a3169af315
2017-04-01T19:59:37.895Z INFO Begin update called
2017-04-01T19:59:37.915Z INFO Char read success(2a26): 201611070000 Img-B
2017-04-01T19:59:37.916Z INFO Comparing firmware versions: Bundle version (201609290000), Bean version (201611070000)
2017-04-01T19:59:37.916Z INFO Starting FW update for device Bean(04a3169af315)
2017-04-01T19:59:37.916Z INFO Begin FW @ 1491076778
2017-04-01T19:59:37.917Z INFO Triggered a notification on Identify char

@evaldsurtans

This comment has been minimized.

Copy link

commented Apr 1, 2017

Sort of good news is that Bean is not bricked, because it is possible to program it using OSX non-CLI tools

@joebowbeer

This comment has been minimized.

Copy link
Author

commented Apr 11, 2017

The firmware in repo has been updated (20170406) but I'm still seeing the hangs for read_ble_config and read_device_info, etc.

windows 10
python 2.7.13
node v6.10.2
bean 0.6.2

@evaldsurtans

This comment has been minimized.

Copy link

commented Apr 11, 2017

Same problem still stuck CLI on Linux, Windows and OSX like this:

2017-04-01T19:59:37.893Z INFO Char read success(2a27): 1E
Programming device firmware: 04a3169af315
2017-04-01T19:59:37.895Z INFO Begin update called
2017-04-01T19:59:37.915Z INFO Char read success(2a26): 201611070000 Img-B
2017-04-01T19:59:37.916Z INFO Comparing firmware versions: Bundle version (201609290000), Bean version (201611070000)
2017-04-01T19:59:37.916Z INFO Starting FW update for device Bean(04a3169af315)
2017-04-01T19:59:37.916Z INFO Begin FW @ 1491076778
2017-04-01T19:59:37.917Z INFO Triggered a notification on Identify char

Only way to upload sketch only through OSX GUI uploader

@adamwolf

This comment has been minimized.

Copy link

commented Apr 11, 2017

@joebowbeer

This comment has been minimized.

Copy link
Author

commented Apr 14, 2017

Punch Through Tech Support suggested I do the following, and it works much better:

$ cd %AppData%\npm\node_modules\bean-sdk
$ ​npm install --save --save-exact noble@1.7.0​

The problem is apparently that bean-sdk relies on noble 1.7.0 exactly but the dependency in package.json is specified as ^1.7.0 instead of 1.7.0 so the latest noble version (1.8.0) is installed instead.

The fix downgrades bean-sdk's noble install to 1.7.0 and rewrites the dependency so that an update won't accidentally revert the fix.

@evaldsurtans

This comment has been minimized.

Copy link

commented May 13, 2017

Yes, with latest update it is possible to program_sketch using CLI, thank you!

@gsundin gsundin closed this May 31, 2017

@estiens

This comment has been minimized.

Copy link

commented Jun 28, 2018

I am still running into hangs on linux with program sketch or program firmware

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.