Send2() - Send Custom Packets to Port 2 Command

The Send2() command sends out a custom string to the 2nd port.
You can format the message to send as a hex or a text string.

This does not work on every device. This is mainly for the 232 devices and the DDNG485.
This does not work on the DDNG485 V3 as of 8/24. You can still order the V2 gateway or try using the SendP() command if you need this functionality.

Syntax

Hex String Send2(x,y,z,…​,n)
Where each value is a hexidecimal value separated by commas.
There is no fixed length to this command as it depends on the packet structure of the receiving device.

ASCII Text String Send2("text")
Where a string of ASCII characters is encapuslated between the quote marks.
There is no fixed length to this command as it depends on the packet structure of the receiving device.

Some devices require a carrage return at the end of a packet to indicate the end of a message. The hex value of a carriage return is 0x0D. The ASCII value of a carriage return is \r.

Examples

Example 1

Sending a custom hex string.

{
Send2(0xAB,0xF1,0xFF,0x07,0xD5,0x0E,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x09,0x7E) //sOmfy Group command.
}

Example 2

Using custom ASCII string to trigger an Iplayer3.

{
{      Name="Start iplayer3 Show 1 on receiving Area 3, Preset 2 DyNet message"
       Start(P=2,A=3)
       SEND2("X0401")    //Start iplayer3 show 1
       Null
}
}

Example 3

Triggering shows on an Enttec DMX Streamer with ASCII commands.

{
...
    P1:
    Send2("H0")      //Start
    Null

    P2:
    Send2("H1")     //Stop
    Null

    P3:
    Send2("H1")     //Stop
    Delay(0.1)
    Send2("HA")    //Select Show A
    Null

    P4:
    Send2("H1")
    Delay(0.1)
    Send2("HB")     //Select Show B
    Null
...
}