|
|
|
Philips Pronto Professional Forum - View Post
|
|
|
|
|
|
|
The following page was printed from RemoteCentral.com:
RS232 control of Projection Design Optix...
| |
|
Topic: | RS232 control of Projection Design Optix using TSU9600 - RFX9600 This thread has 5 replies. Displaying all posts. |
|
Post 1 made on Wednesday July 21, 2010 at 10:36 |
I am trying to control a Projection Design Optix using TSU9600 - RFX9600.
I have the control document off the PD wesbite and have follwoed all the setup instructions: I am using a pin to pin cable: Pin1-Pin1 Pin2-Pin2 Pin3-Pin3 Pin5-Pin5
Default code for Power On in the documentation is: :POWR1'CR'
I have tried all the following commands with no success: :POWR1'CR' :POWR1\r :POWR1\r\n :POWR1\R :POWR1\cr
Any ideas ??
|
|
|
Post 2 made on Wednesday July 21, 2010 at 10:59 |
BluPhenix Long Time Member |
Joined: Posts: | December 2008 371 |
|
|
yourSerialPort.match(":POWR1\r", "\r", 2000); should definetly do the trick.
Also double check that you set the comm. parameters (extender, port, bytes, parity, stopbits and _______) right.
|
|
OP | Post 3 made on Thursday July 22, 2010 at 02:43 |
Hi BluPhenix
Many thanks for the reply.
Sorry I am a bit new at this so don't quite understand what you mean by the 2000 at end there?
Will check all the above and try the command again & revert.
|
|
|
Post 4 made on Thursday July 22, 2010 at 03:43 |
Sogliphy Long Time Member |
Joined: Posts: | July 2007 186 |
|
|
The match(..) method takes three arguments: a string to send, a response to wait for, and a timeout during which to wait for a response.
If the serial port is used synchronously (no onData callback set on it),
yourSerialPort.match(":POWR1\r", "\r", 2000);
will send out ":POWR1\r", and block script execution until either "\r" (Carriage return, 13 (decimal), 0x0d (hexadecimal)) is received, or 2000 milliseconds have passed.
|
|
OP | Post 5 made on Thursday July 22, 2010 at 04:08 |
Thanks Sogliphy, that does clear the issue up somewhat.
How would one check to see whether a /r is received back from the unit being controlled, the projector in this case using ProntoEdit?
|
|
|
Post 6 made on Thursday July 22, 2010 at 08:54 |
BluPhenix Long Time Member |
Joined: Posts: | December 2008 371 |
|
|
As Sogliphy pointed out the match() function I provided gets the response data from the projector until it encounters a "\r" or it reaches the 2s (2000) timeout, which comes first. Your projector replays for each command it gets with a string that ends with "\r".
So the function above does this. Sends the projector the command and then: a) waits for the projector to respond to the given command b) waits for a response from the projector until the given time has passed.
So the answer to your question is: match(":POWR1\r", "\r", 2000) ... sends the :POWR1\r" command and waits for the "\r" from the projector.
|
|
|
Before you can reply to a message... |
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now. |
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.
|
|
|
|