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
(de)activating hardware interface
-
- HouseBot Guru Extraordinaire
- Posts: 1121
- Joined: Tue Sep 28, 2004 7:49 am
- Location: The Netherlands
Re: (de)activating hardware interface
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?
Are there any initialize commands you can send to the RFID?
-
- Member
- Posts: 54
- Joined: Sat Apr 18, 2009 8:53 pm
Re: (de)activating hardware interface
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
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
-
- HouseBot Guru Extraordinaire
- Posts: 1121
- Joined: Tue Sep 28, 2004 7:49 am
- Location: The Netherlands
Re: (de)activating hardware interface
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..