Jump to content

com

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi! I solved the problem, but still don't understand the source of the error. that's what I did: 1. connected the sensor to PI15 without any modifying dts/dtb, as i wrote in previous post. result - negative. 2. modified dts/dtb to define PI16 as w1_bus_master, according to nkahl's manual (great thanks to him!). I received two directories w1_bus_master1 and w1_bus_master2 and up to five directories like 00-хх000000000 but nothing like real sensor response 3. a lot of thought... 4. hooked up saleae logic analyzer to PI16 to see how bus master seaches slaves - nothing activity! on one side, I've seen messages in dmesg where bus_master is searching slaves, on other side - no any signal on pin 5. a lot of thought... again 6. exported PG0 as gpio output, test with "echo 1 > ... echo 0 > ..." - everything worked, did the same with PI16 - nothing worked. system executed my commands without any effect in real. I wrote value "1", then read it - really "1", but real state of the pin was LOW. 7. a little thought 8. modified dts/dtb to define PG0 as w1_bus_master, connected sensor and..... BLISS!!!!! I finally found out the temperature in the room in fact i understood that must avoid using pins PIxx I have two proposals about this abnormality 1) it is a little bug in armbian (or, may be, an unknown to me feature) 2) hardware error, however my cubieboard is absolutely new I will be glad to hear any comments
  2. Hi all! I have Cubieboard, not Banana, but the problem is similar, so I read all the tips and try to do everything... If I understand correctly, PI15 is configured for 1-wire by default, so I need not to modify dtb/dts files According to documentation in https://linux-sunxi.org/1-Wire I check cat /sys/kernel/debug/pinctrl/1c20800.pinctrl/pinmux-pins |grep PI15 and receive output pin 271 (PI15): onewire@0 1c20800.pinctrl:271 function gpio_in group PI15 so I connected my sensor to PI15 with resistor 4k7, add sun4i-a10-w1-gpio in /boot/armbianEnv.txt and hope to see smth in /sys/bus/w1/devices w1_bus_master1 appears and several directories 00-хх000000000, but nothing like the correct sensor. what else do I need to do or check?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines