01-11-2017 08:18 AM
When Data is written to a COM port, why Same data is received back from the COM port?
Solved! Go to Solution.
01-11-2017 08:30 AM
What do you have attached to that serial port? Could you have a loopback adapter connected? A device that echoes the incoming command?
01-11-2017 08:36 AM - edited 01-11-2017 08:37 AM
Hi Jai,
because of the bended wires and hidden elements in your image?
Btw. please attach VIs or snippets instead of pure images - LabVIEW cannot edit JPG images!
When you have problems with serial communication you should tell us more about your hardware and settings!
- Why do you use BytesAtPort, when the TermChar is enabled?
- Why don't you use Ctrl-U (more often)?
01-12-2017 09:11 AM - edited 01-12-2017 09:12 AM
Hi RavensFan
I have attached K-LINE
01-12-2017 09:17 AM
Hi Jai,
how did you connect with "K Line"??? 😄
When something unexpected occurs you should start to debug!
Have you tried to do this serial port communication using a terminal-type program (like HyperTerm)? What are the results using other software?
01-13-2017 01:01 AM
Hi Gerdw,
Thank you very much.
i will debug it using Hyper Terminal.
K-Line is a protocol, i have a microcontroller at the other end
I want to communicate with the microcontroller via K Line
FYR, find the K line reference doc attached
01-13-2017 01:04 AM
01-13-2017 01:46 AM
Hi Gerdw,
Sorry,I can not give you the hardware details.
There is already one tool to which device responds. but i want to develop exe for my own use.
I want to know how the input is formated and given to the device via K line
I am not able to write proper data that s why i am getting back the same data what i write.
Please let me know anymore info is required.
Thank you very much.
01-13-2017 02:15 AM
Hi Jai,
I want to know how the input is formated and given to the device via K line
Then you should read the manual of the device you are trying to talk with!
I am not able to write proper data that s why i am getting back the same data what i write.
Then why did you think it was a problem of the serial port?
Read the manual of the device you are trying to talk with and follow the protocol description given there!