Just written image, working ok
Pages: 1 2
Rick Murray (539) 13840 posts |
That’s just dandy. Be up front about it, and the people who don’t like it can simply not use it. For some, any way is better than no way at all… ;-) The rest? What Steve wrote. +1 |
Chris Mahoney (1684) 2165 posts |
I had a nosey at the EtherUSB source last night and it doesn’t appear to raise an event when the cable state changes. Hopefully the “generic” Ethernet code does; I didn’t get that far. Once we’ve found a way to detect the cable state change cleanly, it seems to be a simple matter of calling *DHCPExecute, so at least that part looks easy enough :) |
Steve Pampling (1551) 8170 posts |
Or at least the code for that that instruction. |
Andrew Conroy (370) 740 posts |
In order to see the SWI (DCI4) documentation I had to sign an NDA, so I can’t just release source code as that would reveal how the SWI works to people who haven’t signed an NDA!
You’re right, it doesn’t. Connection state is available from a SWI though, so it needs polling repeatedly.
You’d think so, wouldn’t you! I thought so too, initially! |
Chris Mahoney (1684) 2165 posts |
Well, that’s less than ideal!
Eep. |
Chris Mahoney (1684) 2165 posts |
It doesn’t, but if I’m reading correctly then it should. The documentation states that Service_InternetStatus 2 is issued “when an interface goes up or down”. However, this doesn’t seem to happen. I’ve made a quick and dirty module that just looks at everything in Service_InternetStatus but I’m not getting the results that I’d expect.
At no point do I see Service_InternetStatus 2. Am I interpreting the documentation incorrectly or does it simply not match reality? |
Pages: 1 2