Skip to content

Do not get all the correct device #2

@Tamanar

Description

@Tamanar

This is directly linked to my previous issue #1
The library does give me 3 different devices. But it gives me the same device twice.

Image

It detects twice the DS18B20 and only 1 of the 2 DS2408.

Does the problem come from the research protocol?

I tried with 3 different cards, and I got the same issue on all the cards.

Here's a snippet of my code

    ow_init_t ow_init_struct;
    ow_init_struct.tim_handle = &htim2;
    ow_init_struct.gpio = ONE_WIRE_GPIO_Port;
    ow_init_struct.pin = ONE_WIRE_Pin;
    ow_init_struct.tim_cb = one_wire_timer_callback;
    ow_init_struct.done_cb = NULL;   // Optional: callback when transfer is done, or can use NULL
    ow_init_struct.rom_id_filter = 0;        // 0 = Accept All, or use a value. (Available if OW_MAX_DEVICE > 1) 

    ow_init(&one_wire_handle, &ow_init_struct);

    ow_update_rom_id(&one_wire_handle);
    while (ow_is_busy(&one_wire_handle));
    osDelay(pdMS_TO_TICKS(10));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions