RS232 Questions

bitzerjd's Avatar Topic Author
User User
  • Posts: 375
  • Thanks: 3

Re: RS232 Questions

9 months 1 day ago - 9 months 1 day ago
#4678
I have the following fields:
ID
Name
IP Address
Network Port
Serial Port
Serial Params

The Network Port and Serial Port ... I have 0 for the Network Port and 1:1 for the Serial port. Myserver found the device, so I'm assuming the "0" is OK. Should the Serial Port be 4999?

-Update-  Made the Network Port 4999 and the Serial Port 1:1 and got this...
20/12/2025 14:31:40.31 · DEBUG · GenericSerial.NetConnect - Device (79) has connected.
I'm assuming that is good!
Last edit: 9 months 1 day ago by bitzerjd.

Please Log in or Create an account to join the conversation.

camens's Avatar
User User
  • Posts: 46
  • Thanks: 2

Re: RS232 Questions

9 months 1 day ago
#4679
Yes, I think you've got it.  Now you have to create the serial database with the control commands.  Just create one and test it using the 'Driver Command Testing' in the GenericSerial Devices driver.  Once you get one working, you can add all the others.

Please Log in or Create an account to join the conversation.

bitzerjd's Avatar Topic Author
User User
  • Posts: 375
  • Thanks: 3

Re: RS232 Questions

9 months 1 day ago
#4680
Thanks again! I wish we could post images...it would be a lot easier to see the config items when there is a question.

I appreciate all the help, this was super helpful!!

Please Log in or Create an account to join the conversation.

bitzerjd's Avatar Topic Author
User User
  • Posts: 375
  • Thanks: 3

Re: RS232 Questions

9 months 1 day ago - 9 months 1 day ago
#4681
I'm pulling what is left of my hair out.  Using the iTEST utility from Global Cache works perfectly.  I can send "literal" text "POW \n" and the unit fires up.  I can also send it via myServer setting up an Ascii model and sending POW in the data field and \n in the additional parameter field.  The problem is that it works once and then no more commands work.  Once I restart the server, I can get the single (Ascii or HEX) command to fire...then nothing.

I've also setup a HEX config and get the same behavior.  

#POF \n  =  23 50 4F 46 0D 0A

Any ideas?

Here is what is in the log for the Off command after the ON works.
21/12/2025 11:07:30.07 · DEBUG · GenericSerial.doCommand - Cmd=[79~Send~Zidoo~Power OFF] Client=[dashboard-fx-0bf6]
21/12/2025 11:07:30.07 · DEBUG · GenericSerial.RX <<< - gc100:23 50 4F 46 30 78 30 64

-Update-
Ok, figured it out.  I needed to add \n to the Suffix and \r to the Terminator fields..  The \r was the key field.

 
Last edit: 9 months 1 day ago by bitzerjd.

Please Log in or Create an account to join the conversation.

aa6vh's Avatar
User User
  • Posts: 111
  • Thanks: 7

Re: RS232 Questions

9 months 1 day ago
#4682
I am not familiar with this serial device you are trying to use, but RS232 serial ports do have control characters ("Clear to send", "Ready to Receive", etc) that may not be sending correctly. That would explain why it works after the restart, but not after the first use.

Serial ports can be controlled by hardware or software. Hardware uses specific wires to indicate the control, software uses special ASCII codes for control.

Please Log in or Create an account to join the conversation.

bitzerjd's Avatar Topic Author
User User
  • Posts: 375
  • Thanks: 3

Re: RS232 Questions

9 months 39 minutes ago
#4683
Thanks to everyone who chimed in with help....  I'm really happy the way RS-232 is working and started converting my Vrroom from IR to Serial.  Of course the family is looking at me with a weird side eye because I'm converting stuff that is working fine!

Happy Holidays Everyone!

Please Log in or Create an account to join the conversation.

Time to create page: 0.279 seconds