tijmenvangulik / ErgometerJS

Java script ergometer driver for concept2 performance monitor with BLE/USB .
Other
111 stars 35 forks source link

Can't get Electron demo to work #1

Closed closedcontour closed 8 years ago

closedcontour commented 8 years ago

I'm using a Mac and can't get the Electron example to discover my PM5. I've actually tried using noble's example advertisement-discovery.js and it looks like my device is never "discover"ed.

Have you had success with the Electron version at all?

Thanks!

tijmenvangulik commented 8 years ago

Yes I am also using a Mac and it workshop fine. Not all Macs have low power blue tooth . Have you checked this?

Tijmen

Op 30 mei 2016 om 06:58 heeft Dan Cervelli notifications@github.com het volgende geschreven:

I'm using a Mac and get the Electron example to discover my PM5. I've actually tried using noble's example advertisement-discovery.js and it looks like my device is never "discover"ed.

Have you had success with the Electron version at all?

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

closedcontour commented 8 years ago

Thanks for the quick reply.

I have a relatively modern MacBook and just verified in my System Report:

Bluetooth Low Energy Supported: Yes
 ...
LMP Version: 0x6

I can do some further debugging but let me know if there are any other tips you can give me.

tijmenvangulik commented 8 years ago

We van compare the machines what is your Mac osx version? Do you have more details on the ble hardware?

Tijmen

Op 30 mei 2016 om 16:14 heeft Dan Cervelli notifications@github.com het volgende geschreven:

Thanks for the quick reply.

I have a relatively modern MacBook and just verified in my System Report:

Bluetooth Low Energy Supported: Yes ... LMP Version: 0x6 I can do some further debugging but let me know if there are any other tips you can give me.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

closedcontour commented 8 years ago

I've made some progress but still stuck. I don't think this an issue with ErgometerJS though. I can get noble to discover the device but not connect to it. It just hangs on the Peripheral.connect() call.

tijmenvangulik commented 8 years ago

Can you Check if you can find the ergometer using light blue. You can download it using this link?

https://itunes.apple.com/us/app/lightblue-explorer-bluetooth/id557428110?mt=8

Some more questions

Tijmen

On 30 mei 2016, at 17:34, Dan Cervelli notifications@github.com wrote:

Peripheral.connect

closedcontour commented 8 years ago

I checked LightBlue. I can't get it to connect to the PM5. Same issue: it discovers but then can't get any further. LightBlue on iOS works fine.

I'm on PM5 v20 (just release v22 is latest). My OS is 10.10.5 (Yosemite).

Thanks for helping but I'm pretty sure this is not a problem with your project!

tijmenvangulik commented 8 years ago

So it looks like a Mac os x bug or pm5 bug. I Will check my firmware version. The temp Workaround can be: build and test on iOS. use the record replay feature to test on electron.

Tijmen

Op 30 mei 2016 om 23:03 heeft Dan Cervelli notifications@github.com het volgende geschreven:

I checked LightBlue. I can't get it to connect to the PM5. Same issue: it discovers but then can't get any further. LightBlue on iOS works fine.

I'm on PM5 v20 (just release v22 is latest). My OS is 10.10.5 (Yosemite).

Thanks for helping but I'm pretty sure this is not a problem with your project!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

tijmenvangulik commented 8 years ago

This is my setup:

OS X El Captain 10.11.5 (15F34)

Blue tooth: Apple Bluetooth Software Version: 4.4.5f3 17904 Hardware, Features, and Settings: Bluetooth Low Energy Supported: Yes Handoff Supported: Yes Instant Hot Spot Supported: Yes Manufacturer: Broadcom Transport: USB Chipset: 20702B0 Firmware Version: v118 c9121 Bluetooth Power: On Discoverable: Off Connectable: Yes Auto Seek Pointing: On Remote wake: On Vendor ID: 0x05AC Product ID: 0x8289 HCI Version: 4.0 (0x6) HCI Revision: 0x23A1 LMP Version: 4.0 (0x6) LMP Subversion: 0x4176 Device Type (Major): Computer Device Type (Complete): Mac Portable Composite Class Of Device: 0x38010C Device Class (Major): 0x01 Device Class (Minor): 0x03 Service Class: 0x1C0 Auto Seek Keyboard: On

PM5 "hardwareRevision":"340”," firmwareRevision”:20

On 30 mei 2016, at 23:03, Dan Cervelli notifications@github.com wrote:

I checked LightBlue. I can't get it to connect to the PM5. Same issue: it discovers but then can't get any further. LightBlue on iOS works fine.

I'm on PM5 v20 (just release v22 is latest). My OS is 10.10.5 (Yosemite).

Thanks for helping but I'm pretty sure this is not a problem with your project!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/tijmenvangulik/ErgometerJS/issues/1#issuecomment-222554243, or mute the thread https://github.com/notifications/unsubscribe/ACpvtlvRem4Ie0GhrP7XlfCqy75KyRKhks5qG1CfgaJpZM4IpfUm.

tijmenvangulik commented 8 years ago

I close this issue because the problem is likely to be something it the OS or hardware. But I am still interesed if you found a sollution.

closedcontour commented 8 years ago

I upgraded to El Capitan (10.11.5) and everything works. Thanks.