Jump to content

dran

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by dran

  1. Hi mishu, About my former post, I think that I modified /modules.conf and forget it. So no more issue.
  2. Some new last armbian upgrade has broken my temp measurement system After DHCP redirecting I recover the SSH link My DS18B20 was still missing in /sys/bus/w1/devices It seems that the upgrade has changed the /etc/modules-load.d/modules.conf #gpio_sunxi i2c-bcm2708 w1-sunxi w1-gpio w1-therm i2c-dev #sunxi-cir xradio_wlan xradio_wlan Then I changed it as follow #gpio_sunxi #i2c-bcm2708 w1-sunxi w1-gpio w1-therm #i2c-dev #sunxi-cir #xradio_wlan #xradio_wlan and it works now. dran@orangepizero:~$ bash -x premscript.sh ++ head -2 /sys/bus/w1/devices/28-03168815dfff/w1_slave ++ tail -1 + VarTemp='9a 00 4b 46 7f ff 0c 10 a2 t=9625' An interesting point is the fact that I tried again a 240 MHz cpu frequency and it seems to works also. The upgrade seems to solve this former issue. File: /etc/default/cpufrequtils ENABLE=true MIN_SPEED=240000 MAX_SPEED=1200000 GOVERNOR=interactive dran@orangepizero:~$ bash -x premscript.sh ++ head -2 /sys/bus/w1/devices/28-03168815dfff/w1_slave ++ tail -1 + VarTemp='9a 00 4b 46 7f ff 0c 10 a2 t=9625' + VarTemp=9625 ++ bc + VarTemp=9.625 + echo 9.625
  3. Hi folks! sudo nano /etc/default/cpufrequtils ------------------------------------------------ eNABLE=true MIN_SPEED=480000 MAX_SPEED=1200000 GOVERNOR=interactive ------------------------------------------------ dran@orangepizero:~$ sudo cat /sys/bus/w1/devices/28-03168815dfff/w1_slave f1 00 4b 46 7f ff 0c 10 ac : crc=ac YES f1 00 4b 46 7f ff 0c 10 ac t=15062 It works ! Thanks, have a good week-end
  4. @ Man of war @ Martinavotte Super, this way seems easier to implement compare with a workaround solution of additionnal script to stress cpu. As newbie, I will find the way to speed up this frequency this weekend and be back for results.
  5. @martinayotte Is your board a Orange pi zero?
  6. @ Radim Thanks to have sketched an explanation. This could explained the two cases when it worked correctly on my Orange Pi Zero.
  7. Hello Dwood Data seems to be pin 26 on the 26 pin connector of the Orange Pi Zero dmesg 11.416566] W1_SUNXI: Added w1-gpio on GPIO-10 [ 11.435079] Driver for 1-wire Dallas network protocol. [ 11.486760] w1_master_driver w1_bus_master1: Family 28 for 28.03168815dfff.23 is not registered. and the fact that two single times the right result was returned confirms this. therefore I never succeded to reproduce this right behavior. I have a 4k7 resistor (I tried 6k8 and 3k2 also). Thanks in advance for help. Don't be shamed for my next silence,
  8. Hi all, I have similar issue with DS18B20 on Orange Pi Zero (Armbian_5.24_Orangepizero_Debian_jessie_3.4.113) I connect sensor (data PA10(pin 26), 3,3V (pin 17), GND (pin 25), Enable /etc/modules (w1-sunxi, w1-gpio, w1-therm), and I can see SN of sensor after reboot but CRC check fails as indicated by the word NO I change the long wired sensor for a new TO92 DS18B20, same issue. What is positive is the fact that With the first sensor, I tried dozen of times. The correct return happened two times only. An other point is the fact that, immediately after a reboot, I can see the sensor with a NO CRC. If I check every few seconds, the return is the same. If I wait 30 second the 28-03168815dfff directory disapears! It requires a reboot the come back.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines