Hi, Iam testing the new Onewire class 4.2, but it doesn’t work.
public static void Main()
{
OutputPort port = new OutputPort(EMX.Pin.IO27, false);
OneWire onewire = new OneWire(port);
ArrayList list = onewire.FindAllDevices();
Debug.Print("Count: " + list.Count);
foreach (string s in list)
{
Debug.Print(s);
}
System.Threading.Thread.Sleep(int.MaxValue);
}
Thats my demo code, but all the time I get 0 devices found. But there are still 2 connected.
As you can see, the data pin is on IO27, is there any requirement on the pin?
With my multimeter I have seen, that the data pin is high when its idle.
Iam using DS18S20 sensors.
Hope someone give me a feedback why this code doesn’t work.
Yes Iam using EMX, but is it possible to install the GHI 4.1 Sdk side by side with the 4.2?
I while a go I have tested it with 4.1 and it works perfect, now I wanted to port the code, but it can’t find any sensor. After that I started with the demo, to see if in the code is any error.
Yeah a few hours is a little quick to expect verification.
The reason I asked you to test 4.1 was so we could quickly eliminate something you’re doing at a hardware level. You’ve helped eliminate a variable and now GHI can do more tests.
So you have 11 devices on your one wire bus, correct?
4.1 works fine but 4.2 do not detect any or detects 2?
What devices you have tested this on?
What sensor are you using?
Are the devices powered from power or from the data bus?
What value are you using for master pull up resistor?