I have a 3800BD that I have hooked up RS232 via straight thru cable per specs (pin2 of unit is TX). I have the 2500/3800 specification doc which identifies all the codes used. I do have communication with the device as I keep getting a 15h (error code) from the unit whenever a command is sent. The basic command structure is: STX Command Parameter1, P2, , , thru P5 ETX BlockCheckLow BlockCheckHigh or for 'Power Off' 02h (STX),21h (Cmd),0h (P1),0h (P2),0h (P3),0h (P4),0h (P5),03h (ETX),32h (BCCL),34h (BCCH)
I have tried: \x02\x21\x00\x00\x00\x00\x00\x03\x32\x34 \x02\x21\x03\x32\x34 02210000000000033234 0221033224 02 21 00 00 00 00 00 03 32 34 02 21 03 32 24 02,21,00,00,00,00,00,03,32,34 02,21,03,32,24 02, 21, 00, 00, 00, 00, 00, 03, 32, 34 (ccp format) 02, 21, 03, 32, 24 $02$21$00$00$00$00$00$03$32$34 $02$21$03$32$24
I'm pretty sure Ive covered every combination of Hex and ASCII but it always returns a '15'h.
The documentation implies that param placeholders must be used (0h) no matter what, but as I ve said I get the same results with and without them.
CCP lists the 2500BD codes as hex with commas, but I've not been able to make them work.
Can anybody provide suggestions? At least I am talking to it, it just has no idea what I'm asking.
Thanks Bill
|