Other OS

Need working configuration for 1 wire DS18b20

12 6036
Hi
I'm trying to get my  DS18B20 sensors to work on bananapi.
I have followed the discription on http://sunxi.org/1-Wire to modified the fex.

Everything i get is CRC error, sometimes the device disappears automagically.
I've used J12-P03 and other pins for data pin, with corresponding fex modification but nothing is working.
I have used the same sensors on raspberry pi without problem.
I'm using Raspbian_For_BananaPi 3.0
The sensors uses external power supply with 4,7k resistor, as described on the data sheet.

When i look in dmesg i can see the following entry:

[   2.896585] w1_master_driver w1_bus_master1: Family 28 for 28.00000444e355.20 is not registered.
[   2.896685] w1_master_driver w1_bus_master1: Family 28 for 28.00000444e555.20 is not registered.

What can i do to solve the problem?
Get the newest raspbian 3.1

It should work much better.

I have updated my system to rasbian 3.1.
Everything seems to work flawlessly so far.
Thanks for the tip.

alien  
You need to compile the kernel to get support for 1-wire? I'm a beginner

Everything is already integrated into the kernel.
No compile, no modual loading.

alien  
Where is it script.fex ?
http://sunxi.org/1-Wire

Unless you get something wrong.

Reply 6# alien

It is in the first partition of SD card. It is called script.bin. You need transform it into script.fen . http://forum.lemaker.org/viewthread.php?tid=221&highlight=script.bin

alien  
Post Last Edited by alien at 2014-8-15 10:15

Post Last Edited by alien at 2014-8-15 10:15

Thanks to the works. you only need to add it depends what you want to pin.
  1. [w1_para]
  2. gpio = 18
Copy the Code

Edited by hamspam76 at 2014-10-17 02:43

Here a little modification for everyone that needs more than one busmaster for one wire bus.
To use it replace linux-bananapi/drivers/w1/w1_sunxi.c with this https://dl.dropboxusercontent.co ... Bananapi/w1_sunxi.c.
Build the kernel

Mod the fex:
For 4 Master:
  1. [w1_para]
  2. gpio = pin number
  3. gpio1 = pin number
  4. gpio2 = pin number
  5. gpio3 = pin number
Copy the Code
For 3 Master:
  1. [w1_para]
  2. gpio = pin number
  3. gpio1 = pin number
  4. gpio2 = pin number
Copy the Code
For 2 Master:
  1. [w1_para]
  2. gpio = pin number
  3. gpio1 = pin number
Copy the Code
For 1 Master:
  1. [w1_para]
  2. gpio = pin number
Copy the Code
and have fun.

Koesel  
Could you please reupload the w1_sunxi.c file?
This would help a lot

You have to log in before you can reply Login | Sign Up

Points Rules