iTach sensor

Forum to ask for any help
Post Reply
ChrisB75
Posts: 52
Joined: Sun Feb 17, 2013 1:11 pm

iTach sensor

Post by ChrisB75 » Fri Nov 08, 2013 1:39 pm

Hi, sorry, me again! :) The iTach WIFI2IR inputs can be set to accept a sensor which I have done and sending the command getstate,1:1 in Hercules returns a value state,1:1,0{0D}. I have set up 2 way feedback setting flags for state,1:1,0{0D} and state,1:1,1{0D} with maintain constant connection but it is not working. I think its to do with the format the command is sent - if I put anything other than getstate,1:1 in Hercules, e.g. getstate,1:1\xOD, it comes back with an error message - ERR_1:0,003{0D}. Equally, after sending getstate,1:1 in Hercules, if I don't press the return key quickly, it also comes back with error message ERR_1:0,003{0D}. I've tried sending the command without any command suffix in Demopad but still no luck :?
Any help would be much appreciated....
Thanks
Chris

User avatar
DemoPad
Site Admin
Posts: 770
Joined: Thu Jun 14, 2012 10:46 am
Contact:

Re: iTach sensor

Post by DemoPad » Fri Nov 08, 2013 1:55 pm

In DemoPad the default command suffix should be \x0D\x0A,and the response terminator for feedback should be \x0D

You should be looking for :

state,1:1,0
or
state,1:1,1

as the feedback responses. The {0D} is just Hercules's way of saying there is a \x0D at the end, which is our response terminator.

In Hercules, hex characters need to be entered in $ format, eg $0D not \x0D, so the command:

getstate,1:1$0D$0A

is what you would use in Hercules

ChrisB75
Posts: 52
Joined: Sun Feb 17, 2013 1:11 pm

Re: iTach sensor

Post by ChrisB75 » Fri Nov 08, 2013 9:25 pm

Hi, thanks for the reply - managed to get it working :D

Post Reply