Page 1 of 1

(de)activating hardware interface

Posted: Tue Aug 17, 2010 4:51 am
by lostdreamer
I have a (small) problem.
I'm using a serial hardware interface for an RFID reciever.
The serial communication is ok, The tags submit 4 digit's followed by a space every 3 seconds.
I have the interface set to use the space as seperator, but every now and then (about once a day) it starts picking up 3 digit strings.

Setting the interface to disabled, and re-enabling it solves the problem immediately.

Is it possible to do this by a task / script or any other automated means?


Regards,
LostDreamer

Re: (de)activating hardware interface

Posted: Wed Aug 18, 2010 2:36 pm
by Richard Naninck
As far as I know you cannot activate or de-activate any device other doing it from the HB Server GUI.
Are there any initialize commands you can send to the RFID?

Re: (de)activating hardware interface

Posted: Sat Aug 21, 2010 11:20 am
by lostdreamer
Thanks for your answer,

I'm affraid it doesnt have any reboot commands or anything..

The RFID reciever is a (very) simple device, and when I monitor it with my own scripts, their dont seem to be any faults with it.
It only recieves the same 4 digits followed by a space
Somehow, after a while, it seems HB starts recieving the same digits, but with different space placements.
ie.
1234 1234 1234 1234 1234 etc.
becomes something like
1234 234 341 234 123 1234 234 etc.

Since the RFID reciever needs extra power, I guess my temp solution will be to put a X10 relay in there, and toggle it's power whenever I recieve 3 digits instead of 4...
Still a strange phenomenon...

LostDreamer

Re: (de)activating hardware interface

Posted: Sat Aug 21, 2010 11:45 am
by Richard Naninck
I use the same hardware workaround for some equipment. My router sometimes hangs when too many download lines are working and I use an FS20 switch to cycle the power to get it working again. I couldn't figure out how to do it using telnet or any other method so the hardware one was the only one left like you suggest as well. Strange fenomenon though..

Re: (de)activating hardware interface

Posted: Thu Aug 26, 2010 10:51 pm
by ScottBot
Strange. Is the flow control setup right?