(de)activating hardware interface

Have an idea for a new feature? Voice your opinion here.
Post Reply
lostdreamer
Member
Posts: 54
Joined: Sat Apr 18, 2009 8:53 pm

(de)activating hardware interface

Post 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
Richard Naninck
HouseBot Guru Extraordinaire
Posts: 1121
Joined: Tue Sep 28, 2004 7:49 am
Location: The Netherlands

Re: (de)activating hardware interface

Post 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?
lostdreamer
Member
Posts: 54
Joined: Sat Apr 18, 2009 8:53 pm

Re: (de)activating hardware interface

Post 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
Richard Naninck
HouseBot Guru Extraordinaire
Posts: 1121
Joined: Tue Sep 28, 2004 7:49 am
Location: The Netherlands

Re: (de)activating hardware interface

Post 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..
ScottBot
Site Admin
Posts: 2786
Joined: Thu Feb 13, 2003 6:46 pm
Location: Georgia (USA)
Contact:

Re: (de)activating hardware interface

Post by ScottBot »

Strange. Is the flow control setup right?
Scott
Post Reply