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,748 Views)

MY VI,FYI

Download All
0 Kudos
Message 2 of 7
(2,738 Views)
0 Kudos
Message 3 of 7
(2,737 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,732 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,726 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,694 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,691 Views)