From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS232 communication issue by sending Ascii

Hello All,

 

Now I am working on a project about zigbee which is powered by 24V AC.so I need to control the AC power which can be communicated by RS232.

 

Most of setup steps are set succussfully,except send "D0:0650:0400:0600:2200:0150:0500:4600:0100:0:0/  "

 

I tried many solutions to write this string, convert into Hex then send,or send this string separately,send D0 first,then send :650 etc...

 

However,sometimes the eqipment can be controlled,sometime it can not.

 

Any hints are appreciated,thanks

 

 

 

0 Kudos
Message 1 of 7
(2,773 Views)

MY VI,FYI

Download All
0 Kudos
Message 2 of 7
(2,763 Views)
0 Kudos
Message 3 of 7
(2,762 Views)

Most of setup steps are set succussfully

 

... and what error do you get on the odd one?

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 4 of 7
(2,757 Views)

Hi Albert,

 

what you named "protocol" is just example data without any explanations.

 

Your "D0:..." string looks ok, it's just plain ASCII data. This "OK" answer is also plain ASCII.

 

Don't you have a more detailed manual with some real protocol descriptions? If not ask your vendor for this manual!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 7
(2,751 Views)

Hi GerdW,

 

The communication protocol is written by Chinese which is attached.

发:means send command

收:means receive response

 

Please take a look at "2.参数设定" ,only this step always get error after write "D0:0650:0400:0600:2200:0150:0500:4600:0100:0:0/" ,not get "OK/" response.

 

There is no issue on write/read others steps except "2.参数设定 ".

 

Thanks

 

Best regards

 

Albert

 

 

0 Kudos
Message 6 of 7
(2,719 Views)
You should post to the Chinese board unless you can provide an English version of the manual.
0 Kudos
Message 7 of 7
(2,716 Views)