Author Topic: Scan Bus A 1-wire : Invalid 1-wire code found!  (Read 17970 times)

OZ1AXG

  • Newbie
  • *
  • Posts: 24
    • View Profile
Scan Bus A 1-wire : Invalid 1-wire code found!
« on: 2013-07-03, 22:31:27 »
Hi

I put together 4 temp sensores on 1-wire connected to BUS-A.

When scanning for new devices i get a error message:  Invalid 1-wire code found!

how can i fix this ?

PS: When going back to my "old" setup with one temperature sensor... theres no problem the device gets registered and can measure the temperature.

Im using :

Company   : Microbit
Product   : 1216H WebSwitch
Software  : 2.3
Hardware  : 2
Bootloader: 1.10
Build     : Feb 10 2012 13:27:32
S/N       : 1939
PID       : 4
Uptime    : 87980
=========================
Max available memory = 16301 bytes

OZ1AXG

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Scan Bus A 1-wire : Invalid 1-wire code found!
« Reply #1 on: 2013-07-04, 22:34:57 »
Hi

I updated firmware to newest version and Im stil getting the "Invalid 1-wire code found!" error message when scanning BUS-A

Company   : Microbit
Product   : 1216H WebSwitch
Model     : Standard 1216L-4 or older
Software  : 3.3
Hardware  : 2
Bootloader: 1.10
Build     : Jun 12 2013 12:18:31

ON4AOI

  • Sr. Member
  • ****
  • Posts: 295
    • View Profile
    • Email
Re: Scan Bus A 1-wire : Invalid 1-wire code found!
« Reply #2 on: 2013-07-08, 19:49:58 »
I thought there could be only 2 temp sensores connected,
1 on BUS-A and 1 on BUS-B since they don't have a unique code
to separate them from each other.

Guy ON4OI

OZ1AXG

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Scan Bus A 1-wire : Invalid 1-wire code found!
« Reply #3 on: 2013-07-08, 22:33:21 »
Hi

According to the product specs :
http://www.remoterig.com/wp/?page_id=166

Options    :
Inputs for up to 25 temperature sensors (single wire bus DS18B20)
2 x Digital Inputs

I read this as the web switch can handle up to 25 DS18B20 on a single wire.
Perhaps someone from Microbit can veryfy this ?

« Last Edit: 2013-07-09, 09:12:12 by OZ1AXG »

Tytn

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Scan Bus A 1-wire : Invalid 1-wire code found!
« Reply #4 on: 2013-07-12, 08:48:28 »
Hi

I had the same problem just the other day.
I used only one sensor.
The cause was a mistake on my part were i had attached the sensor cables to the wrong port. The solution was to just switch the cable placement.

I think you have to scan and save a device at a time. You could probably not scan and save multiple (previously never attached and scanned) sensors to the webswitch.
Try attatching them one at a time, scan then submit them. After that you attach the chain of sensors and check if you get any temperature data.

I hope this helps you.
/Tytn

Jan (Microbit)

  • Software Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
    • View Profile
    • Email
Re: Scan Bus A 1-wire : Invalid 1-wire code found!
« Reply #5 on: 2013-07-12, 08:56:46 »
Every 1-wire device has an unique ID. The Webswitch can handle up to a total of 25 1-wire devices(sum of Bus A and B). Adding one at a time is a good suggestion.
Always include type of hard/software and version when asking for support.

OZ1AXG

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Scan Bus A 1-wire : Invalid 1-wire code found!
« Reply #6 on: 2013-07-12, 10:05:03 »
Easyer said than done  :( They are all soldered directly onto a single cable - so not so easy to take a part again ...

The error message im getting - what does it mean ?

Flam

Tytn

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Scan Bus A 1-wire : Invalid 1-wire code found!
« Reply #7 on: 2013-07-12, 14:14:09 »
Though luck  :-\

I guess the error message is coupled to the way the 1-Wire protocol works. Like Jan said, every 1-wire device has a unique id used as a identifier during communications. When the bus master (webswitch) searches for a new (that has a unknown ID) slave device, is limited to only registering one device at a time by its search algorithm.
But this is all speculation on my part.

How does your network topology (structure) look?
There are some that are not suitable for use with 1-wire, due to signal reflections and signal cancellations, like:
     (S)  (S)
       \   /
(M)---¤---(S)  Or  (M)------(S)------¤--------¤------(S)
       /   \                                       |           |
    (S)   (S)                       [long cable]     [long cable]
                                                    |           |
                                                  (S)        (S)
Optimally the slaves should be linked in a linear fashion, like: (M)---(S)---(S)---(S)---(S).

/Tytn

Jan (Microbit)

  • Software Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
    • View Profile
    • Email
Re: Scan Bus A 1-wire : Invalid 1-wire code found!
« Reply #8 on: 2013-07-12, 17:56:40 »
I only suggested to add one 1-wire device at a time in order to debug what is causing the error you see. Normally it should be possible to scan and find multiple devices simultaneously.

The error message you get is due to that the WS gets an invalid answer/code from some of the devices on the bus.
Always include type of hard/software and version when asking for support.

OZ1AXG

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Scan Bus A 1-wire : Invalid 1-wire code found!
« Reply #9 on: 2013-07-12, 18:47:55 »
im using this config:
(M)---(S)---(S)---(S)---(S)

4 identical type Devices (4x temp sensor).

I guess i can put connectors on it but nice to know that WS is capable of scanning more than one new device connect at the time.


Tytn

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Scan Bus A 1-wire : Invalid 1-wire code found!
« Reply #10 on: 2013-07-15, 08:18:49 »
Okej good to hear that i was wrong  :)

/Tytn

OZ1AXG

  • Newbie
  • *
  • Posts: 24
    • View Profile
Re: Scan Bus A 1-wire : Invalid 1-wire code found!
« Reply #11 on: 2013-08-10, 17:16:49 »
Epilog

After some error/fault finding - it turned out that one of the sensors didnt work. Not sure excately why i get the invalid device error with this one ? The soldering and wireing is correct and there are no short circuits detected.

Once the faulty one was removed, there was no problem detecting multiple sensores in one scan.
 

Jan (Microbit)

  • Software Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
    • View Profile
    • Email
Re: Scan Bus A 1-wire : Invalid 1-wire code found!
« Reply #12 on: 2013-08-13, 16:33:32 »
Excellent!  ;D
Always include type of hard/software and version when asking for support.