Send hex over serial help

Hi All,
i had this working before i had to reinstall windows and forgot to backup.
i cant workout how to send HEX over serial usb again.

things file

Bridge serial:serialBridge:sensors [serialPort="COM3", baudRate=2400]{
    Thing serialDevice rollershutter [patternMatch=".*"] {
        Channels:
            Type rollershutter : serialblinds [upValue="\u009a\u000b\u00b0\u0000\u000a\u00ee\u005f", downValue="0x9a0x0b0xb00x000x0a0xcc0x7d", stopValue="9a0bb0000aee5f"]
    }
}

i am using 3.4.0 snap shot so i can use 2400 buadrate.

i get this on reciver.

39 61 30 62 62 30 30 30 30 61 64 64 36 63
39 61 30 62 62 30 30 30 30 61 65 65 35 66
39 61 30 62 62 30 30 30 30 61 65 65 35 66

but non of them output what it should and 2 times as much

never mind. worked it out. forgot the charset=“ISO-8859-1” at the end of the bridge line

the upValue is the correct format for sending hex

Bridge serial:serialBridge:sensors [serialPort="COM3", baudRate=2400, charset="ISO-8859-1"]{
    Thing serialDevice rollershutter [patternMatch=".*"] {
        Channels:
            Type rollershutter : serialblinds [upValue="\u009a\u000b\u00b0\u0000\u000a\u00ee\u005f", downValue="0x9a0x0b0xb00x000x0a0xcc0x7d", stopValue="9a0bb0000aee5f"]
    }
}
1 Like