No one using the emulator ? Or trying/wanting to do OneWire ?
Little would I know how difficult this would be. One obvious answer as to why there is no 1-wire in the emulator is because of timing issues. The bus requires transitions with pulsewidths 15µs or less. Also, since there is no synchronization possibilities between the emulator and the NetMF code running, we are stuck. Or are we ?
I wanted to try it, see if it could be done; so I embarked on an interesting and fantastic voyage.
The sources for the 1-wire master is in the NetMF sources, and examples can also be found at the Maxims integrated site. What's missing is sources for an emulated client. Since the protocol is well documented (http://www.maximinte...ndex.mvp/id/126) it should be relatively to implement a client.
There are some emulated 1-wire slave implementations for PIC chips and Arduino, one good example implementation can be found at
http://www.fabiszews...t/1-wire-slave/, and I have used this as the base for my 1-write slave implementation.
In short, I've managed to simulate this somehow, but it is really sloooow. It takes some seconds to send/receive a byte, so this might better serve as a proof of concept rather than a usable component. Anyway. So far the master can reset the bus, and issue a search command; and my emulated DS18B20 slave respond with a (fake) serial number. I'm not there yet, but I believe I should be capable of sending temperatures back to my Netduino program through the emulator really soon.
If anyone wants this I can make the sourcecode available when it is finished.
Kjetil