08-13-2015 01:41 AM
Today I made a little program with VISA serial.
The device connecting to PC has a "COM4" displayed in Windows device manager.
Right click on the "COM4" icon I can setup the Baudrate etc (9600 bit/sec; Databit 8 ; no parity; stopbit 1)
In the labview program, I made a different setup (9600bit/sec; Databit 7; Even parity; stopbit 2)
The data can still be correctly receivd. Why is it lik that?
Can anybody give a little explanation on it? Thanks in advance.
Solved! Go to Solution.
08-13-2015 01:57 AM
08-13-2015 02:09 AM
Thank you very much for the information.
May I have one more question?
Q: In the labview program I have already tried two setups: A. No parity, 8 databits, 2 stopbits B. Even parity, 7 databits, 1 stopbit
The program worked both fine with two different setup.
How is that possible? (I asked because I also believe the program setup should be matching the device setup)
08-13-2015 08:06 AM
08-16-2015 05:13 PM
08-17-2015 02:23 PM - edited 08-17-2015 02:24 PM
Is YOUR device a true RS232 device?
Or is it a USB device with a provided driver that "appears" as a virtual COM port?
Do you have a single USB cable that goes from a USB connector on your computer to a USB connector on your device?
Just because your device driver creates a virtual COM port does not mean it is RS232.
If it is a purely USB device and is never converted to RS232 (like a lot of small cpu boards are) then the Baud Rate, Data Bits, Parity and Stop Bits have no effect. They have no function. The connection is defined by the USB protocol and the are no settings that you can change.
I have a similar device and the user manual clearly states that the Baud Rate does not matter. But the Flow Control Does. Set to NONE.
What does the user manual of your device say?
08-18-2015 04:03 AM
I do thank you all for the assistances. Truely from my heart.
As you said, the device is just a "virtual com" displayed on windows "device manager". I don't know which protocol the device uses exactly for communication.
Can you anyhow give me some explanation why the data frame setup (stopbit number etc,) doesn't interfere the data exchange with the device of "virtual com" port?
08-18-2015 07:46 AM
08-18-2015 08:45 AM - edited 08-18-2015 08:46 AM
@SergioMa wrote:
The device connecting to PC has a "COM4" displayed in Windows device manager.
...
I don't know which protocol the device uses exactly for communication.
...
Can you anyhow give me some explanation why the data frame setup (stopbit number etc,) doesn't interfere the data exchange with the device of "virtual com" port?
That is a question you need to ask the "device connecting to PC" manufacturer. I assume you had to install some type of device driver.
Protocol? Well its not RS232. It is what ever your device manufacturer decided to use in the device driver. It could be anything. We really do not care, as long as the device software driver works.
I am sure that the device software driver does not use the baud rate, data bit or stop bit. It ignores them.
Again, this is a question to ask the "device connecting to PC" manufacturer.
08-18-2015 01:47 PM
It is a Lora device