URL Encoding

JasonTanJasonTan Junior MemberPosts: 8
Hi All,

How to convert hex code $AA to URL %?? and $FF to %??

I'm trying to control Samsung TV thru Vision2 Master using Amino box sending commands to Samsung TV but when i use the code %AA%11%FF%01%01%12 for power on command, the string that I receive is some mis-interpretted commands on Amino RS232 output. I have captured the string using laptop software.

If controlling Panasonic TV, using %02PON%03 in the netlinx module, it will work but it can't work for %AA and %FF guess I can't directly perform URL encoding for hex code $AA and $FF.

Hope someone can help here...

Thanks...

Comments

  • ericmedleyericmedley Senior Member - 3709 Posts Posts: 4,141
    Hmmm.
    Post the code where you create the string please.
  • JasonTanJasonTan Junior Member Posts: 8
    Sample of the code sent to Vision2 Master

    We have found a module in AMX website and tried using button event to trigger the command below-mentioned:

    BUTTON_EVENT[dvTP3a,1]
    {
    PUSH:
    {
    SEND_COMMAND vdvV2,"'SENDRS232-10.160.84.72,9600,ª%11 ÿ%01%01%12'"
    }
    }

    BUTTON_EVENT[dvTP4a,1]
    {
    PUSH:
    {
    SEND_COMMAND vdvV2,"'SENDRS232-10.160.84.72,9600,%AA%11%FF%01%01%12'"
    }
    }

    Both commands can't work after Amino Box RS-232 Output comes out something different and Samsung TV cannot be controlled by the commands received.

    However we noticed that the command for Panasonic Projector / TV Displays work like the one show as follows:

    BUTTON_EVENT[dvTP4a,1]
    {
    PUSH:
    {
    SEND_COMMAND vdvV2,"'SENDRS232-10.160.84.72,9600,%02PON%03'"
    }
    }

    So the problem lies with %AA and %FF that cannot be encoded correctly and we need ways to make it work.

    Hope you can help us on this.
Sign In or Register to comment.