[Debian] digitemp user-error

Pagina: 1
Acties:

  • Scout77
  • Registratie: September 2002
  • Laatst online: 01-01-2025
Ik kom er niet meer uit.

Ik heb een sensor gebouwd zoals beschreven op www.digitemp.com, alles werkt in windows XP en op een andere linux bak [1] (kernel 2.2.20), maar op een of andere manier lukt het me niet het geheel op mijn webserver [2] (kernel 2.4.18) aan de praat te krijgen. Voor foto's van het geheel http://scout.kvz.tudelft.nl/joris/temp/

Ik heb de gehele dir van [1] op [2] gezet, rechten verandert maar nog steeds niet werken. Heb de compoort kabel vervangen maar de oude zat wel goed, dat zal het dus ook wel niet zijn.

Im het readme file van het prog staat dat je het volgende moet hebben:

1. Permission to access the serial port you will be using.
2. Permission to write to /var/lock if you are using Linux
3. A 1-wire serial port adapter (Dit werkt dus zeker)
4. A 1-wire sensor connected to the adapter (Dit dus ook)

[small]
scout:/home/joris/digitemp# ls -l /dev/ttyS0
crwxrwxrwx  1 root root 4, 64 Oct 13 13:49 /dev/ttyS0

scout:/home/joris/digitemp# ls -l /var/lock/
total 12
-rwxrwxrwx  3 root root 11 Oct 13 13:49 LCK...738
-rwxrwxrwx  3 root root 11 Oct 13 13:49 LCK..ttyS0
-rwxrwxrwx  3 root root 11 Oct 13 13:49 LCK.004.064

scout:/home/joris/digitemp# ls -l digitemp_DS9097
-rwxrwxr-x  1 root root 55675 Oct 12 00:50 digitemp_DS9097

scout:/home/joris/digitemp# ./digitemp_DS9097 -i -s /dev/ttyS0
DigiTemp v3.3.2 Copyright 1996-2004 by Brian C. Lane
GNU Public License v2.0 - http://www.brianlane.com
Turning off all DS2409 Couplers

Searching the 1-Wire LAN

scout:/home/joris/digitemp# ./digitemp_DS9097 -a
DigiTemp v3.3.2 Copyright 1996-2004 by Brian C. Lane
GNU Public License v2.0 - http://www.brianlane.com
Error, you don't have +rw permission to access

[/small]

Nu staat er ergens in het readme file:
[small]
You need to make sure you have permisson to access the serial port and 
under Linux the /var/lock directory. To allow access to the serial port, add 
the user that will be running DigiTemp to the uucp group (or whatever group 
owns the serial port device). To allow access to the lock directory add the 
same user to the lock group.
     
  Alternativly you can set-group-id the binary to the lock group so that anyone
running it will only need to be added to the serial port group, not the lock 
group.

  chmod g+s digitemp
  chown .lock digitemp
[/small]

Alleen heb geen idee waarom het niet zou werken .. alles is root dat zou dan toch moeten werken?

Lekker belangrijk


  • Scout77
  • Registratie: September 2002
  • Laatst online: 01-01-2025
Eigenlijk mag de topic titel wel verandert worden in [Debian] digitemp user-error want daar gaat het volgens mij om

Lekker belangrijk


  • Renegade
  • Registratie: December 2000
  • Laatst online: 14-10-2020
Titel is aangepast. Overigens kun je zoiets de volgende keer ook vragen door boven op de pagina op het volgende plaatje te klikken: Afbeeldingslocatie: http://gathering.tweakers.net/global/templates/silver/images/icons/icon_hand.gif :)

HAI
CAN HAS STDIO?
VISIBLE "HAI WORLD!"
KTHXBYE
@BasRaayman op twitter