Baud Rate : 9600bps Data Bits : 8bit Parity : No Stop Bits : 1
These are the port settings for your PC (or Controller) to transmit.
Amp Power on command would send the following string:
02 02 A0 21 3D
02 = start bit (EVERY STRING starts with 02 - that is what the amp listens for) 02 = Bit count (2 - A0 and 21) A0 = Product code 00 = Code (42-input select) (00 value so skipped in string) 00 = zone (00 value so skipped in string) 21 = function (Power On) 3D = checksum (value of the 3 bits - 02 A0 21)
- OR -
02 04 A0 00 00 21 3B
02 = start bit 04 = Bit count (A0 00 00 21) A0 = Product code 00 = Code (42-input select) 00 = zone 21 = function 3B = checksum
(This is the identical command but includes the 00 bytes)
Verified from page 8 of rs232protocolreceivers.pdf and receiver Checksum Spreadsheet with samples.xls
(use the spread sheet to calculate your checksum)
function is the command sent to do something.... use the pdf to see which code does what and responses are what.
you can try different strings and see the responses from the receiver
When testing RS 232, I RECOMMEND a program called 232Analyzer by CommFront
This is by far the best program I have used for testing and writing my own protocols
I hope this info helps you understand 232 protocol and comand structure.
PS some devices require a carriage return or 0D at the end of the string to send
Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.