From: Jim S. <js...@sy...> - 2007-10-23 12:25:19
|
Some ideas - try digitemp in linux rather than mrhouse to compare (I actually just use digitemp for speed anyhow and import the results into mrHouse) =20 Secondly - does the userid running MrHouse, or Digitemp in linux have read/write permission for the serial port? -----Original Message----- From: mis...@li... [mailto:mis...@li...] On Behalf Of Jocelyn Brouillard Sent: October 22, 2007 8:37 PM To: mis...@li... Subject: [mh] IButton Help request Hi, =20 I have a few DS18S20 connected to a serial port (/dev/ttyS0) and I'm = using Linux.=20 =20 I can read my iButton in DOS, but I can't read it in MH/Linux.=20 =20 Do you have any idea, what's wrong? =20 Thanks in advance, Jocelyn =20 ----------------------------------------- DOS ------------------------------------------------------------- C:\DIGItemp>digitemp -i -s1 DigiTemp v1.7 [REGISTERED] Copyright 1996-2002 by Brian C. Lane All Rights Reserved - http://www.brianlane.com =20 Turning off all DS2409 Couplers .. Searching the 1-Wire LAN 108F7256010800D7 : DS1820 Temperature Sensor 100D02560108003E : DS1820 Temperature Sensor ROM #0 : 108F7256010800D7 ROM #1 : 100D02560108003E =20 ------------------------------------------ DOS ------------------------------------------------------------- =20 C:\DIGItemp>digitemp -a -q Oct 22 20:10:38 Sensor 0 C: 17.69 F: 63.84 Oct 22 20:10:39 Sensor 1 C: 24.25 F: 75.65 =20 ------------------------------------------ LINUX ------------------------------------------------------------- =20 # MH Testing Code =20 # Category =3D iButtons if ($Startup||$Reload) { #use iButton; $ib_outside =3D new iButton '108F7256010800D7'; # Outside=20 $ib_CRoom =3D new iButton '100D02560108003E'; # Computer Room=20 } $v_iButton_list =3D new Voice_Cmd "List all the iButton buttons"; $v_iButton_list -> set_info('Lists the family and ID codes of all = the buttons on the bus'); $v_iButton_connect =3D new Voice_Cmd "[Connect,Disconnect] to the = iButton bus"; $v_iButton_connect -> set_info('Use this to free up the serial port or = test the iButton start/stop calls'); # List all iButton devices if (said $v_iButton_list) { print_log "Reading iButton device list"; my @ib_list =3D &iButton::scan; speak $#ib_list + 1 . " iButtons found"; for my $ib (@ib_list) { print_log "Device type:" . $ib->family . " ID:" . $ib->serial . " CRC:" . $ib->crc,": " . $ib->model(); } } if ($state =3D said $v_iButton_connect) { print "$state the iButton bus"; if ($state eq 'Connect') { print_log &iButton::connect($config_parms{iButton_serial_port}); } else { print_log &iButton::disconnect; } } if (new_minute 1) { my $temp =3D read_temp $ib_outside; print_log "Outside: $temp"; my $temp =3D read_temp $ib_CRoom; print_log "Computer Room: $temp"; } ------------------------------------------ END ------------------------------------------------------------------ =20 =20 =20 =20 =20 =20 |