Stjärnkopplat ger sämsta förutsättningarna enligt denna artikel:
http://www.maximintegrated.com/app-note ... mvp/id/148
Precautions with Star Topologies
Testing has shown that unswitched star-type network topologies (i.e., those with several branches diverging at the master) are the most difficult to make reliable. The junction of various branches presents highly mismatched impedances; reflections from the end of one branch can travel distances equal to nearly the weight of the network (rather than the radius) and cause data errors. For this reason, the unswitched star topology is not recommended, and no guarantees can be made about its performance.
...
Two simple terms describe measurements that are critical to 1-Wire network performance: radius and weight.
- The radius of a network is the wire distance from the master end to the most distant slave. It is measured in meters.
- The weight of a network is the total amount of connected wire in the network. It is also measured in meters.
...
Network weight is limited by the ability of the cable to be charged and discharged quickly enough to satisfy the 1-Wire protocol. A simple resistor pullup has a weight limitation of about 200m. Sophisticated 1-Wire master designs have overcome this limitation by using active pullups, that provide higher currents under logic control and have extended the maximum supportable weight to over 500m. See application note 244, "Advanced 1-Wire Network Driver."
15 st x 10 m = 150 m längd & 10 m radie vilket är 75% av dom 200 m man kan uppnå med vanlig "pullup". Du kör ju visserligen med aktiv pullup men jag tror att geometrin (stjärnformationen) är det som är spökar för dig.
Hur mycket som skiljer från den nämnda DS2480 till den busmaster din USB-pinne har (DS2490) vet jag inte; men skulle gissa att det inte rör sig om så mycket.
Utan att med säkerhet veta tror jag att du överskridit maxprestandan för vad din busmaster samt ditt nätverks fysiska konstruktion kan hantera.
Vad har du använt för kablage o terminering (skarvar)?
- Elsladd + "sockerbit" (sämre)
- 2x2 partvinnad alternativt vanlig ethernet CAT 5/5e/6 kabel samt RJ11/12/45 "Y-klykor", etc (bättre)
Alternativ:
- Uteslut problem med underspänning (en normal USB port levererar max 500mA, vissa hubbar kan ge mer*)
- Byt till bättre kabel eller typ av terminering
- Partitionera (dela upp) nätet med en eller fler 1-wire hubbar (tex
https://www.m.nu/hub-4-kanaler-p-562.html)
- Byt geometri från "stjärna" till "rak buss"
*) Enligt databladet skall aldrig mer än 58 mA förbrukas av stickan (dvs 10% av vad en normal USB port kan leverera)
Stickan kan dock i sig självt inte lämna mer än 42 mA (max) samt 25 mA (nominellt) till 1-wire nätets förbrukare.
Vad jag förstått drar en DS18x20x
nanoampere i viloläge samt upp emot c:a 1 mA vid läsning - så om det
går att läsa alla 15 givarna samtidigt borde det ju ändå rymmas inom stickans 25 mA budget.
/f