NEC V651 RS232 AMXB SDK Response
JohnB
Posts: 13
I'm trying to establish control of an NEC V651 via RS232 from an NI700. I have the protocol tested and functioning via an emulator and have verified null cable status. I can communicate directly to the unit but when I plug into the NI700 I get the following response when sending a power on or power off command:
AMXB<-SDKClass=Monitor><-Make=NEC><Device-GUID=NEC_LCD><-Model=V651>
Is this some sort of device discovery? I can't seem to get around it or find any information to disable it. Has anyone run into this?
Any help would be greatly appreciated.
AMXB<-SDKClass=Monitor><-Make=NEC><Device-GUID=NEC_LCD><-Model=V651>
Is this some sort of device discovery? I can't seem to get around it or find any information to disable it. Has anyone run into this?
Any help would be greatly appreciated.
0
Comments
CHAR CMDHEADER[7] = '0A0A0C'
CHAR GETHEADER[7] = '0A0A06'
CHAR STX = ''
CHAR ETX = ''
CHAR POWERON[10] = 'C203D60001'
CHAR POWEROFF[10] = 'C203D60004'
SEND_STRING dvLCD[1], "CMDHEADER,STX,POWERON,ETX,'I',$0D"
SEND_STRING dvLCD[2], "CMDHEADER,STX,POWERON,ETX,'I',$0D"
SEND_STRING dvLCD[1], "CMDHEADER,STX,POWEROFF,ETX,'L',$0D"
SEND_STRING dvLCD[2], "CMDHEADER,STX,POWEROFF,ETX,'L',$0D"
I've also used the hex equivalent for each as follows. I get the same response from either. Again, only from the NI700. Using a comm emulator from my laptop this works perfectly.
"$01,$30,$41,$30,$41,$30,$43,$02,$43,$32,$30,$33,$44,$36,$30,$30,$30,$31,$03,$73,$0D" - Power On
"$01,$30,$41,$30,$41,$30,$43,$02,$43,$32,$30,$33,$44,$36,$30,$30,$30,$34,$03,$76,$0D" - Power Off
Hope this helps.
JB
Should be of no concern.
You wouldn't happen to know which module to use for this model, would you? None of the modules shown in their repository reference this model or series. I've downloaded 2 different ones to try out, but it sure would be nicer not to have to experiment. It would be even nicer if I could disable this so I can send direct strings.
Thanks for the help.
What do you mean send direct strings? If you have the emulation working, I'd continue development where you left off rather than doing a complete 180 and interface with a virtual device.
Does the device turn on and off with your commands?
For the record, the STX & ETX commands you are sending with the send_string dvLCD[1] line are empty, when they should be $02 & $03 accordingly. Also, I believe your command header variable is missing a $01, which is the start of header byte. You have these correct in the comm emulator, but they are not there in the code you are actually sending out.
If you want to try it out, use the Function number pad on your laptop and press Fn-Alt-001 you'll see the ASCII character for $01. Likewise, if you type Fn-Alt-002 and Fn-Alt-003 for $02 and $03, respectively, you'll see the ASCII characters for STX and ETX. It's a cool little trick to maintain all ASCII codes versus going back and forth between hex and ASCII, at least for simple non-printable codes like these.
I assume your checksum is correct for device address A. Is your display set to the same device address? If you're not daisy-chaining your displays, you could use a wildcard for the address and see if that works. The code for power on that I've tested it below.
If anyone needs a recommendation for simple power on/off control for this display I can recommend the module for the NEC LCD6520AVT. The only bummer is that it doesn't seem to have a polling command for power status so I'll have to poll for input or something.
Thanks for all the feedback. Hope this helps.
Cheers.