Author Topic: Simulator and host PC with wireless network  (Read 14436 times)

Offline Marc VDH

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • iMetaf Weather Station
Simulator and host PC with wireless network
« on: October 20, 2009, 07:40:39 PM »
I'm picking up the uTasker again after messing with Interniche/Coldfire Lite for some time.

While playing around with the simulator, I noticed that DHCP does not resolve when the host PC is connected to the network via WLAN. It does work when connected via the wired network interface though. I didn't forget to select the right physical interface in the simulator by the way.

I have noticed this on more than one PC, so it's probably not hardware related. Is this maybe a limitation of a wlan connection?

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3240
    • View Profile
    • uTasker
Re: Simulator and host PC with wireless network
« Reply #1 on: October 20, 2009, 08:02:43 PM »
Hi Marc

I don't think that the Ethernet interface (using WinPCap) works with wireless connections. This is possibly a general problem and not a DHCP problem (?).

If you do find that it does work with fixed IP settings (and Wireless NIC) it may be that your wireless interface can work with the simulator (not to be totally dismissed since I don't understand why it basically shouldn't...) there is one change that was very recently made to DHCP when experience was made with a DHCP server which was reporting that it was using "option overloading" - that it, it uses fields in the telegram defined for sending "file" or "sname" to carry extended options (in fact it was reporting this but not actually using it in that case) and so was not being accepted.
By simply removing the case
case DHCP_OPT_OVERLOAD:
in dhcp.c (occurs twice) causes this to be ignored (not of much use to an embedded system anyway) it then worked successfully.

Probably your issue is with the WinPCap capability and not the DHCP handling, but maybe the detail helps(?).

Regards

Mark

Offline Marc VDH

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • iMetaf Weather Station
Re: Simulator and host PC with wireless network
« Reply #2 on: October 21, 2009, 11:45:48 AM »
Thanks. I understand it's not a DHCP issue, but this is just the way I noticed that it isn't working.
So basically WinPCap is the limiting factor here?

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3240
    • View Profile
    • uTasker
Re: Simulator and host PC with wireless network
« Reply #3 on: October 21, 2009, 07:46:06 PM »
Hi Marc

I do believe that it is WinPCap not being able to work with Wireless NICs.

Personally I don't use wireless much but when I have done I didn't have any success with the simulator - I always have a USB powered board (such as a Luminary LM3S6965) on me when traveling so that I can power it up via USB and connect it to the Ethernet connector of the PC. This allows simulating Ethernet since the NIC's link is up. Of course it doesn't allow testing DHCP etc. but most other things are OK.

Regards

Mark