From: Paulsen, B. <BPa...@le...> - 2003-01-08 16:05:24
|
Answers... 1) In a sense, it does queue them up. Basically, the software sleeps for the right amount of time after a command is sent. However, it counts on the fact that it's the only one writing/reading from the bus. So, as long as you don't have another program writing to the bus, you should be fine. 2) I believe it should make sure that the right I/O bit is turned on. You may want to double check this, though. 3) Getting the 1-wire network to work reliably takes a bit of work. If your network is short, I would suggest changing the ibutton_line_length (something like that at least) to SHORT. If it's long, I would strongly suggest adding a 100-ohm resistor on your data line. 4) Last, but not least. If you think the problem is in the mh software, you may want to confirm this by seeing what kind of success you have with the iButton windows software. Brian -----Original Message----- From: nwrightson [mailto:nwr...@te...] Sent: Wednesday, January 08, 2003 3:41 AM To: mis...@li... Subject: [misterhouse-users] ibutton Questions Hi All, I'm very new to MisterHouse (and Perl)and I have a couple of I button questions that I hope somebody out there might be able to answer. 1. If I send a ibutton command ie set $ib_relay 'on'; and then send another similiar command straight away. Will the second command get qued until the first has been processed or is it lost. I know that the 1wire hardware interface can only perform one task at a time. Question is does the Misterhouse driver que the commands. 2. Does the Misterhouse driver ensure that the relevant I/O bit is actually turned on. 3. I have used the following code with nothing else being accessed and I may receive a series of "Present 1" ie 4..6 times and then 2 or 3 "Not Present" my $nwtest ; if ($New_Minute) { $nwtest = is_present $ib_PS_OP ; if ($nwtest eq 1) { print_log "Present $nwtest"; } elsif ($nwtest eq 0) { print_log "NOT Present $nwtest"; } else { print_log "unknown Present state $nwtest"; } } I'm trying to make a reliable ibutton network in my house, but it does not look good at this stage. Cheers, Neil. nwr...@bi... ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ________________________________________________________ To unsubscribe from this list, go to: http://sourceforge.net/mail/?group_id=1365 ------------------------------------------------------------------------------ This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. |