From: Bruce W. <br...@mi...> - 2004-06-16 03:06:14
|
I think you are not querying a valid object. This line: my $ib=$ib_temps[$state-1]; when state = -1 seems goofy. Id try simply referencing $ib_temp1 directly. Do you have more than one temperature ibutton to try? Bruce -----Original Message----- Bruce, I am able to communicate with this DS1920 (not an iButton but the maxim 1wire chip in the raw package) with HyperTerminal on my PC. I am able (most of the times) to get back info on it using the iButton::scan function (in the attached log below the call to scan returned no data). However, when I call read_temp I did get something back for $ib but no temperature. The print statements and what was returned for each are shown in bold. After making the read_temp call I then ran another voice cmd to print the temperature again (without sending a cmd to the 1wire device, thinking that the previous print $temp statement came too soon after the read_temp cmd sent to the 1wire device). Still no temperature. I appreciate your help on this. I am trying to get something together to take on a trip day after tomorrow. If I can get some assurance the hardware is working then I can clean the code up once I return from my trip through a remote session to the machine MH will be running the iButton cmds on. Thanks, Lincoln |