serial command to projector as one BYTE (keyspan USA-19QW)

Feb 21, 2010 at 5:51pm

serial command to projector as one BYTE (keyspan USA-19QW)

Hello,

I know this isn’t the most popular thing to do these days, but I am attempting to control a device through serial commands. I’ve done it before, but this time Im a little stumped.

I need to send the following (according to panasonic manual and tech support there)

STX as one byte – but of course when I use atoi / spell in conjunction with the serial object, it sends 3 bytes.

What am i missing here to be able to send a string as a single byte?

I would really appreciate some help on this one…

Im using a mac mini, OS 10.5, max5 + keyspan USA-19QW USB->serial adapter

thanks in advance
matthew

#48674
Feb 21, 2010 at 7:03pm

STX must be a nemonic for some byte, no? An ASCII character is 7 or 8 bits, depending on your definition, so “STX” could never be sent as one byte as ASCII.

Is there a link to the manual for the projector?

#174943
Feb 22, 2010 at 4:13pm

here’s a link for the serial protocol:

ftp://ftp.panasonic.com/pub/Panasonic/Drivers/PBTS/brochures/S_PT-AX200U.pdf

Sadly, panasonic tech support has told me they won’t help me, as they do not support usb-> serial converters. strange, but I think I may call them and pretend to be someone else. though if you have a clue, it would be a help.

Ive tried with a nullmodem cable, a pass through cable, and just nada, nothing doing, so I am guessing it has to do with this STX ‘command’ ETX string.

thanks,
matthew

#174944
Feb 22, 2010 at 5:04pm

I’ve seen this before where the commands were sent in hex
STX = 02
ETX = 03

~s

#174945
Feb 22, 2010 at 6:58pm

Turns out STX and ETX are ASCII control chars:
http://www.december.com/html/spec/ascii.html
STX == 02
ETX == 03

#174946
Feb 22, 2010 at 10:03pm

Wow, this is a great resource – I was a little lost here. One last question and I can link this all together, how do i send hex numbers out the serial object?

thanks for your help guys…

best
matthew

#174947
Feb 23, 2010 at 4:44am

As an update to the above – I’ve tried everything I can figure out, but of course sending anything through the serial gets converted to an integer there. So sending a ’2′ actually results in ’50′ – spell, atoi and so on don’t cut the mustard.

so how to send hex out the serial port then?

#174948
Feb 23, 2010 at 11:10am

I’ve done a projector remote to switch on and off the projector with serial commands. It uses an arduino only. You can find details (in french) at
http://machines.zombideo.net/?cat=11
and code at

http://zombideo.net/appli/arduino_code_proj_command.zip

Hope it helps.

#174949

You must be logged in to reply to this topic.