how to escape serial characters in serialsend

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
jchuchla
New user
Posts: 8
Joined: 12 Feb 2018, 04:09

how to escape serial characters in serialsend

#1 Post by jchuchla » 12 Feb 2018, 04:14

I'm using serialsend in a rule and need it to send nonprintable chars. How do I escape them to insert in what I'm sending. I've scoured the examples in the wiki and searched here on the forum but I'm not finding anything.

Thanks in advance.

xztraz
Normal user
Posts: 21
Joined: 19 Jan 2017, 15:34

Re: how to escape serial characters in serialsend

#2 Post by xztraz » 13 Feb 2018, 17:50

when sending from a script via netcat to espeasy i use \n (backslash n) for new line \r return character "\ " space and such.

jchuchla
New user
Posts: 8
Joined: 12 Feb 2018, 04:09

Re: how to escape serial characters in serialsend

#3 Post by jchuchla » 13 Feb 2018, 17:54

does that work in a rule? I could have sworn i tried that syntax without success. I tried all of the common escape methods i could think of. e.g. 0x01, \x01 01h \01 etc...

xztraz
Normal user
Posts: 21
Joined: 19 Jan 2017, 15:34

Re: how to escape serial characters in serialsend

#4 Post by xztraz » 15 Feb 2018, 10:40

Well it was just a guess. must be escapable somehow.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 120 guests