built-in serial por...
 
Notifications
Clear all

[Solved] built-in serial port is unreliable


Illylonka
(@illylonka)
Eminent Member
Joined: 1 year ago
Posts: 45
Topic starter  
Hi,

I recognized that the built-in serial port via USB is very unreliable. I 
successfully did some communication between my computer and my SOLO 
controller, but most of the time it fails.

I found the following sources of error:
  - electromagnetic compliance: having a cell phone or an LTE stick 
currently active near the USB cable makes it impossible to communicate.
  - long cable: I have a high-quality cable with 3 m length and that 
works significantly worse than my low-quality 0.8 m cable.
  - closing and reopening the connection: after closing the serial 
connection, my computer is unable to reconnect until I restart the SOLO 
device.

Is there something wrong with my SOLO device? Normally, I would excpect 
the connection to work or to fail consistently.

Best,

Illylonka


Quote
SOLO Team
(@milad)
Chief Member Moderator
Joined: 2 years ago
Posts: 251
 

Hi Illylonka, 

The USB and digital control are on its first release and surely there might be some software bugs there that we need to fix, but your device hardware is fine as you are able to receive and transfer data to it, so I can imagine the problem is either in the Firmware of SOLO or the way you communicate with it. so may I know:

1- are you setting the baud rate for communication correctly? 

2- what device are you using to send/receive data from the UART port of SOLO?

3- Regarding the length of cable for USB, in our testings and LAB we use a 2.5m normal cable and it seems to be working fine, so we need to see what is the exact reason that you face data-loss ? does SOLO stop answering back? 

4- are you forming the packets correctly?

let me know please.

Regards
Milad

 

If you found the answers helpful and you could solve your problems, please kindly verify here to help others in the future.


ReplyQuote
Illylonka
(@illylonka)
Eminent Member
Joined: 1 year ago
Posts: 45
Topic starter  

@staff Hi,

I am so embarrassed, because this was actually just a problem in my software.

Just for the record and anyone using QT: The QSerialPort class does not function reliably before the call of QApplication::exec().

Strangely enough the problem occured with other software (e.g. minicom, gtkterm) as well...

Now, the SOLO device never failed me once as long as I kept my phone one meter away.

Thank you very much for your quick response,

Illylonka


ReplyQuote
SOLO Team
(@milad)
Chief Member Moderator
Joined: 2 years ago
Posts: 251
 

@illylonka

Great, I can imagine you are using Linux, but in case you are using Microsoft Windows, I recommend you to use our dedicated USB driver which is available on our website, maybe you can use that also in Linux somehow ( I don't have knowledge in that). if you are in windows:

** Once you downloaded the driver, just Unzip it and go inside of the folder, then right-click on “usb_dev_serial.inf” and select install. This will install the device driver for you, and after power recycling SOLO, you’ll see a new COM port will appear on your device manager under the name of “TivaWare USB serial port” associated with SOLO. TivaWare is a product of Texas Instruments, and they might have some supports for linux as well.

please let me know if this made any difference.

Regards

Milad

 

If you found the answers helpful and you could solve your problems, please kindly verify here to help others in the future.


ReplyQuote
Illylonka
(@illylonka)
Eminent Member
Joined: 1 year ago
Posts: 45
Topic starter  

@staff Hi,

thanks for the recommodation, but Linux actually worked fine. I found out, why QT Applications have this restrictions and it appears, that my own application stalled and locked the COM port into an undefined state. Other applications, like minicom, would then show undefined behavior.

However, as long as I stick to all specifications, Linux actually works well with the device out of the box and other software, like minicom, works well, too. Actually, this is my overall experience: Windows always needs third party drivers, but Linux always works like plug and play^^

Best,

Illylonka


ReplyQuote
Share: