binary data communication through SerialPort
-
Every comms in serial is basically binary. It will not know a difference.
In most cases it is a baud rate respectively other settings issue. I guess that is also the issue with Putty.
Do you have the correct baud rate, data and stop bits and otzher flags?@koahnig said:
Do you have the correct baud rate, data and stop bits and otzher flags?
Yes, I am sure those are correct.
The dongle is controlled by command packets. And any wrong command packets should active a error response, which I never received; the serialRead() was never called.
-
well I would try with
http://realterm.sourceforge.net/ then and see if it even works at all. -
Have you tried the QThread approach instead of events?
Please, download this
http://kde-apps.org/content/show.php/QtComPort?content=142378
and have a look at the file qthcomport.cpp
I know everybody don't like the QThread approach instead of events but in a difficoult situation I think the QThread approach is better. You can manage timemouts an polling.
Have you got the dongle serial protocol?
Every serial device has a protocol. For example if you send at a modem at&v you will have the current modem configuration.
Often the serial devices have a command to know the firmware version. This is the first command to implement. Normally there are a byte to begin, end and control.
Have you found the serial protocol in the sdk? -
Hi,
Maybe a silly question but are you sure this dongle can be used like a serial port ? The description says BLE to USB bridge.
-
-
Nice, what was the problem ?
On a side note, you don't need to modify your thread title anymore, just use the "Topic Tool" button to mark the thread as solved :)
-
Thanks for sharing your findings :)