Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
Seeking help from ASCII gurus
This thread has 4 replies. Displaying all posts.
Post 1 made on Monday July 19, 2010 at 12:20
Kaizen28
Long Time Member
Joined:
Posts:
February 2008
50
Hi

I am trying to control a set of relays using RS-232. Per the manual for the relay, I need to send ASCII codes and not ASCII characters.

Basically, I'm trying to send the equivalent of:
MSComm1.Output = Chr$(254)
MSComm1.Output = Chr$(47)
MSComm1.Output = Chr$(29)
MSComm1.Output = Chr$(8)

To me this equates to:25447298

I have no idea how to enter this via PEP.

Any help would be appreciated.
Post 2 made on Monday July 19, 2010 at 14:24
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,385
To send ASCII values as binary data, you convert to hexadecimal characters of 8 bits (a byte on this OS) and embed these characters into a string.

I am not at a computer where I can lookup the exact format PEP requires but the hex characters are as follows:

\xFE\x2F\x1D\x08

\xFE is hexadecimal for 254
\x2F is hexadecimal for 47
\x1D is hexadecimal for 29
\x08 is hexadecimal padded to 2 characters for 8

Windows Calculator in Scientific mode supports conversions to make your life easier in the future.
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 3 made on Monday July 19, 2010 at 15:30
Kaizen28
Long Time Member
Joined:
Posts:
February 2008
50
Hi Lyndel

Thanks for the reply! Do I need to add this to the ASCII command or can I simply enter the HEX commands directly in the HEX command box?
Post 4 made on Monday July 19, 2010 at 20:59
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,385
Enter FE 2F 1D 08 into the Hex box

or

You should also be able to enter the string I posted into the ASCII window as well.
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 5 made on Tuesday July 20, 2010 at 18:55
Kaizen28
Long Time Member
Joined:
Posts:
February 2008
50
Got it! It was a setting on the circuit board. Switch from PC to Mac control.

Life is good!


Jump to


Protected Feature 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.

Hosting Services by ipHouse