Linux build issues from git and ability to use a second adapter. #1871
Replies: 8 comments
-
Posted at 2017-01-04 by @gfwilliams Hi - looks like like I don't think you can change chrome to use a different BLE device. You could ask @françois but my guess is dealing with multiple BLE adaptors in Chrome comes quite far down their priority list :( If hci0 doesn't work with BLE then I'd consider trying to disable it? Chrome should then pick up the second one. Also - moving this to the Puck.js section of the forum. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-04 by MyBlueBoo
Hmm I was under the impression nodejs was cross platform. I mean what is winnus used for and is there a Linux equivalent to it I can add to the build options? I will see if I can convince Chrome to play nice but seems non-trivial alas. Thanks anyway, I put this question in Espruino because it was an IDE problem not an puck one per se. I can communicate to the puck from my phone, that is not so convienient though. Thanks again. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-04 by François Re: handling multiple BT adapters, We've started to think about how to proceed at https://bugs.chromium.org/p/chromium/issues/detail?id=635111 In the mean time, as suggested by @gfwilliams, I would simply make
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-04 by MyBlueBoo Yeah.. I did that.. I even managed to connect to the PuckJS using bluetoothctl.
Sadly, Chrome like the braindead piece of software it is does not see that there is a device already connected to the default device and continues to try and probe hci0 and seeing nothing. I have tried building the IDE from git and got a little further by just removing the requirement of winnus from the package.json file. it 'installed' fine. But when I do npm start
However, now I have some sort of weird incompatibility with node-gyp and whatever build file it uses.
To be honest I would feel happier if I was trying to debug a C++ program because nodejs gives me a headache. sighs |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-05 by @gfwilliams Hmm. strange error - I've not had that before. The What about running |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-05 by MyBlueBoo
Woo hoo! Now why is that not in the faq? What is cool is it even tells you your device is not compatible and asks you to set the correct one.
So works!! Thank you so much. It was getting quite frustrating and I really think this sort of thing needs to be put into the documentation for the IDE. Excellent now I can start with earnest tinking with my Pucks I have a few specific idea I need to test. Thanks once again!! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-05 by @gfwilliams Great! That's interesting - I think you're probably relatively unique in running linux with two different bluetooth adaptors at once. First time I've come across it anyway :) There's a lot of info in that getting started guide - there are far too many ways of running the IDE :) Where would you have expected to find information on it? I'll see if I can add a comment. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-01-06 by François @MyBlueBoo I'll be trying to improve multiple adapters situation. See comment at https://bugs.chromium.org/p/chromium/issues/detail?id=635111#c22 and following feature request at https://bugs.chromium.org/p/chromium/issues/detail?id=679287 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-12-22 by MyBlueBoo
Hi there,
So tried building EspruinoWebIDE from git and it fails because of a newer version of nodejs.
See attached file.
Also the Chrome app does not see my 2nd BLE adapter which is hci1. The adapter can see the PuckJS but the webide does not because it using hci0 be default.
Any idea how to solve these problems?
Thanks.
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions