-
Notifications
You must be signed in to change notification settings - Fork 1
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
V0.12.0 introduces connection issue #2
Comments
It should, buts its possible i guess. The main change with 0.12 was the use of of the serialport object instead of the serial object. Can you provide the output of scanForArduinos("debug") for the 1st and 2nd attempt. Also what OS are you using, and which version of instrument control and which version of octave ? |
Sure, sorry. So I'm using Windows 10 22H2, Octave 8.4.0 and instrument-control-0.9.1. And this is the output:
|
Thanks - i take a look - it does appear to be working correctly in linux, so will have to look for if anything is happening differently in windows. |
Something I just thought of ... in scanForArduinos.m, at the bottom its currently:
change the |
Running windows 11, and its not happening for me on scanForArduinos. I can make it do it it I run: a = arduino Which would try to open the arduino 2x and fail, unless there was a delete between them. Adding the delete in scanForArduions should still be added and may be enough for it to work for you. |
Did you have a chance to verify if adding the delete in scanForArduinos worked for you? |
Yes and no. I wanted to try it on a different computer but didn't have the chance yet. Since octave.org was down for most of the day I stopped working on it. I can only state one more observation: When using V0.11.0, connecting to the device with Octave only lit up the TX and RX LEDs. Using V0.12.0, the builtin LED (13) lights up twice briefly during the first connection with |
The light up more than once is to be expected in v12 as the check that it is an arduino is a little more robust (Perhaps it doesnt need to be, but wont effect anything else) The changing from clear to delete scanForArduinos should be the fix. |
On my PC, I have not found a way to make V12 work reliably, including replacing the |
To be clear, this is also not working on scanForArduinos? (after changing to use delete(s) ) A related bug in octave rather than this package is assigning the octave 'ans' variable with the arduino object, but shouldnt effect scanForArduinos, and shoulnt effect arduino calls if delete is used on any rduino object before trying to open a new one. |
Yes, on the problematic PC changing |
hmm ... I am out of ideas on the issue currently. I do have a new version I will be releasing soon that includes a few minor fixes. but I dont think it will help. I guess when its released, give it a try and let me know |
Thank you for your efforts. I will try it when it's out. |
I tried V12.1. It didn't change the status quo. Maybe it's just an issue of the hardware combination of the problematic PC. Anyway, I can work with it as it is now. Thanks. If anything changes in the future, I can report again. |
Thanks for the reply - if i think of anything else could try I will let you know. On the positive side, it did identify a potential issue in the arduino package, and a bug in octave! |
Can you try with latest versions of arduino (0.12.1) and instrument-control (0.9.3) |
Not until the end of the month, I'm afraid. |
that will be fine! |
I have an Arduino mega2560 board and it works fine with V0.11.0 including an add-on I wrote. However, when testing things with V0.12.0, I cannot connect with the Arduino anymore. It doesn't seem to be add-on related and I could break it down to simply trying to run scanForArduinos twice in a row without any custom add-ons in the path. V0.11.0 simply gives me the connected device twice. V0.12.0 only works in the first call after arduinosetup() and results in an empty cell afterwards. Trying the 'debug' option gives me: "** initArduino: failed valid response err=1 - Undersized packet header". Could it be that scanForArduinos() doesn't release the connection properly?
The text was updated successfully, but these errors were encountered: