onewire library doesn't work v15

the onewire library doesn't work in version 15 of the arduino software

in the mac version of the software

Jonathan

how doesn't it work? not compiling or not running? what errors do you get?

I use the library in a lock-sort-of application. It doesn't give any errors but the 64-bit adress that i use to check if the user is okay, doesn't make any sense at all.

Jonathan

can you post some code for what you're doing?

have you had your app working in previous versions of the IDE, if so which one?

what is the 1wire device you'r using it with? what arduino are you using(is it 328?)? Can you rule out H/W problems with these?

Sorry for all the questions but you haven't given us much to go on...

i’m using a ds1990a serial-only ibutton. This is the part where i retrieve the adress:
[edit]boolean read_serial(void){
// Vars
int i;
bool empty;

// Clear current serial
for(i=0; i<SERIAL_SIZE; i++) current_serial = 0;

  • // Get serial*

  • if(!ds.search(current_serial)){*

  • // Not found*

  • ds.reset_search();*

  • return false;*

  • }*

  • // Zero (empty) ?*

  • empty = true;*

  • for(i=0; i<SERIAL_SIZE; i++){*
    if(current_serial*!=0){
    _
    // Not zero: ok*_
    * empty = false;*
    * break;*
    * }*
    * }*
    * if(empty){*
    * // Empty, return false*
    * return false;*
    * }*

* // Show serial*
* show_serial(current_serial);*

* // OK*
* return true;*
}
[/edit]
and it worked with exactly the same hardware in version 13 of the arduino software. I’m using the mega 168 duemilanove.
it has to be in this part of the code. I did some debuging to examen that.

P.s. this is wahat i normaly retreive: [edit]Welcome! Cleverlock computer interface. Serial = DE 0 0 10 10 A3 B5 1 Serial = DE 0 0 10 10 A3 B5 1 Serial = A1 0 0 10 14 18 9E 1 [/edit] these are the adresse of 2 ibuttons and this is what i receive now: [edit]Welcome! Cleverlock computer interface. Serial = 80 0 0 0 0 0 0 0 Serial = 40 0 0 0 0 0 0 0 Serial = C0 0 0 0 0 0 0 0 Serial = 40 0 0 0 0 0 0 0 Serial = C0 0 0 0 0 0 0 0 [/edit] the 80.... part is every time i touch the probe withe a new button and when i hold it, it switches between the 40... part and the c0.... part

I think i will upload the code somewhere if it's finished. There are nearly no self build locking systems wtih ibuttons abd thats weird because it's such a cheap, easy-to-use and secure device.

Hey guys,

i believe i am having the same problem!

the exact same code that i have complies, uploads and runs ok under arduino 0013 alpha but when i use arduino 0015 alpha it doesn't appear to be working with the onewire library.

Rob.

Alas, I’m currently running v15 on Fedora 10 (Linux) with a
Arduino Decimiela (168), the example sketch for the OneWire
Library with two DS1820 (original, not B20’s or S20’s) and it’s
running just fine. It’s in the refrigerator right now “chilling out”. :wink:

I am running 5volts to the Vcc on the 1820 (ie. no parasitic power)
and modified the second argument to the OneWire::write() call
with the ‘T’ or “StartConversion” command accordingly. But with
DS1990’s I suppose that won’t help you any.

You did add the 4k7 resistor (4700-ohms) from +5V to the OneWire
data line, right?

As others have said, post your source – I’ll even take a look at it.
Hmmm… I might have a DS1990 around here somewhere.

-Rusty-

I have the same problem with v15 using three ds18b20s. The search rom command reports all zeros for the rom address (of the first one?). I then see looping failure with all zeros except the crc-8 code which flips between 40h, 80h, and C0h. The code works perfectly in v13 and v14.

My problem is resolved. I deleted the .o file from the OneWire library folder, started up v15, recompiled my code, and it now works as before.