Embrio Forum
»
Embrio Support
»
Issues and Bugs
»
Problem with COM Port when connecting to Arduino
Rank: Newbie
Groups: BetaUser, Registered Joined: 2/5/2017(UTC) Posts: 5  Was thanked: 2 time(s) in 2 post(s)
|
I am using an Arduino Micro and when connecting to the Arduino (with the correct Controller and Port selected as per the previous Arduino Upload) after some time the COM port selection disappear by itself and then selects the next port by itself, disappear again and then says its not connected. I can select the right port again but the same happens.
Any ideas welcome!
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/11/2014(UTC) Posts: 661
Thanks: 1 times Was thanked: 109 time(s) in 104 post(s)
|
I believe this is happening "below" Embrio in the hardware level somewhere. There is a background thread in the program that looks for the available ports, and updates that list if there are any changes. It looks like for some reason your computer is losing connection with the Arduino and then getting it back.
Before the com port disappears, do you have a good connection with the Arduino with the node values getting updated? Or does the port change after uploading the connection program?
After uploading a connection program, could you open a serial monitor in the Arduino IDE and watch it for a few moments? It should send a steady stream of "upd:..." lines, and an "inf:..." line once per second. Does that stream of information cut out?
|
|
|
|
Rank: Newbie
Groups: BetaUser, Registered Joined: 2/5/2017(UTC) Posts: 5  Was thanked: 2 time(s) in 2 post(s)
|
Thank you, I ensured good connection, and problem remains. I also used the Arduino IDE to upload the sketch and serial monitor shows steady stream of "UPD....", it does not cut out.
I tried it many times , rebooted, uninstalled the software and installed it again, did it again including the Arduino software etc, etc... still no change.
Then I changed the Micro with a UNO and it worked! ... Also on a Mega it works, but not the Micro, I have two Micro's and tested both, both not working. Since I want to have the Micro for the project because of its size, I still want to get them to work. Any similar problems before?
Note, it is the Micro, not Micro Pro. Thanks for your help.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/11/2014(UTC) Posts: 661
Thanks: 1 times Was thanked: 109 time(s) in 104 post(s)
|
I don't believe I've actually tested myself with a Micro. I will purchase one so I can do my own tests, there might be something specific with the Micro that I'm not aware of, I recently had to try using a Leonardo to fix a connection issue with that model, so I won't say for sure it's a closed case. I will let you know if I find something. It sounds like a problem at the hardware level or in the .net framework, but I'm not sure.
In the mean time it's not ideal but you could always work in connection mode on your UNO but then upload the final program to the Micro when the project is done.
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/11/2014(UTC) Posts: 661
Thanks: 1 times Was thanked: 109 time(s) in 104 post(s)
|
Sorry I should have researched the Micro better earlier, I just saw that it is similar to the Leonardo. There was a change I had to make recently to get the connection to work with the Leonardo, some strange setting on the .net framework's serial port class. It should be working in version 2 of Embrio.
I tried recently to make the same change in version 1 but ran into some other difficulties. I might take another look at that, but since version 1 will very soon be "obsolete" it might not be worth sinking too much time into.
I have a Micro on the way so I can test myself later in the week, but I suspect it will work in version 2, if you want to try for yourself to confirm.
|
|
|
|
Embrio Forum
»
Embrio Support
»
Issues and Bugs
»
Problem with COM Port when connecting to Arduino
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.