none
WEC7 dialup only works using IPV4V6 not IPV4 or IPV6 RRS feed

  • Question

  • Hello all, 

    We use WEC7 on a Toradex T30 with a Telit LE910 V2 modem (connected via USB, using CDCACM drivers) as part of the instruments we develop.   

    We recently updated our OS, we create our own image in platform builder 2008, based on a new BSP and OS Workspace from July 10, 2019.  I believe the last monthly (or quarterly) OS update is from March 2017.  I inherited this project.... 

    Now we cannot establish a dial up connection as we did before, we now must use  AT+cgdcont=1,"IPV4V6","internet.telekom" (instead of AT+cgdcont=1,"IP","internet.telekom" ) , for example, when we attach to our carrier or we see to see some uncaught exceptions in explorer, ping, tracert,....  That is, we see exceptions when use IP or IPV4... and we don't want to require our customers to provide a carrier that supports IPV4V6 for our instruments. 

    The problem does not seem to be happening because of our application software  that we use to call the RasDialer, that works on our older WEC7 OS just fine unchanged.  And the drivers for the LE910 V2 have not changed between the old and new OS version.  

    We have compiled ping.c from the public\common\oak\drivers\netsamp\ping\ samples and have seen that 

    in the ResolveTarget

    Function of ping.c at line 375 calling getaddrinfo produces an access violation (0xC0000005: Access violation reading location 0x00000000) 

    Thanks for reading all of this and any help you may offer us.

    Brad


    Tuesday, March 24, 2020 10:57 AM

Answers

  • We solved it!!  Or we should say that Toradex solved that problem with a patch they created with afd.dll ,

    but then removed on May 15 , 2018 https://developer.toradex.com/software/windows-embedded-compact/t20-t30-wec-software/release-details?view=all&key=WC-1623

    Here is an example of an Data Abort exception that had seen in explorer from this problem

    Exception 'Data Abort' (0x4): Thread-Id=08fb320a(pth=a2956270), Proc-Id=00400002(pprc=85a92a60) 'NK.EXE', VM-active=019800ba(pprc=a289b7d4) 'explorer.exe'

    5087046 PID:400002 TID:8fb320a PC=ef73b398(afd.dll+0x0002b398) RA=b3fdf1b0(???+0xb3fdf1b0) SP=b3fdf18c, BVA=00000000


    They, Toradex, had thought that Microsoft had fixed the problems that were found in AFD.dll but what happened, I guess Toradex didn't know was that there was a regression in RAS that was either introduced by Microsoft in their fix... or was already there and not fixed.

    All we had to do was put the fix that they had created back into our image.  

    Thanks for posting that!

    So I will mark this post as answered.  Thank christ we were able to find that 

    • Marked as answer by BradleyDSaph Friday, March 27, 2020 8:33 AM
    Friday, March 27, 2020 8:33 AM

All replies

  • You are not going to get an answer on these forums I'm afraid. You will have to open a support case with Microsoft to get this resolved. Sounds like a bug to me that will require an update to fix.

    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: https://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    NXP Gold Partner
    https://guruce.com
    Consultancy, training and development services.

    Interested in WEC on i.MX6?
    Get the only 100% stable and best performing i.MX6 BSP for WEC7 and WEC2013 here: https://guruce.com/imx6

    Tuesday, March 24, 2020 11:05 PM
    Moderator
  • Thanks for the reply!  We also would like to say that your website is great.

    It is puzzling, while not very suprising, that we get no feedback from the ras dialer that there will be a problem.  The dialer seems to give us almost feeback that there is some kind of problem, and maybe from it's point of view, there isn't one since we seem to attach to the carrier and receive an IP address. 

    Do you think that setting the APN  directly in the Ras configuration would make any kind of difference ? Currently we set the APN and attach the modem with the serial interface to the modem, then close the port and let RasDial do it's thing.

    Or are there any other properties to set in the RasEntry or with RasSetEntryProperties that might give us at least a hint?  Or what about the registry, can we enable any diagnostics that might?   I guess the issue might be with the dialer at all though.

    Also do you by chance have a link to where one might file a support case for this issue?

    Thanks

    Brad

    Wednesday, March 25, 2020 8:39 AM
    • Go here: https://support.microsoft.com/en-us
    • Scroll down, on the bottom left you will find a link "Support for business", click that.
    • Now click "Get started".
    • Select "Windows Embedded and IoT", then "Windows Embedded", then "Windows Embedded Compact 2013" (or the version you are using), and then select "Application Development" and "Other".
    • Click "Next".
    • Select the country and language and create a fitting issue title.
    • Type a detailed and concise description of the issue. Make sure to report the versions of CE where the issue exists, and on which versions it runs just fine (if it does).
    • Then choose the support plan (single incident is $499 USD). Microsoft used to not charge for bugs, but I guess that now that CE is out of mainstream support this is not the case anymore...

    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: https://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    NXP Gold Partner
    https://guruce.com
    Consultancy, training and development services.

    Interested in WEC on i.MX6?
    Get the only 100% stable and best performing i.MX6 BSP for WEC7 and WEC2013 here: https://guruce.com/imx6

    Wednesday, March 25, 2020 9:45 PM
    Moderator
  • We solved it!!  Or we should say that Toradex solved that problem with a patch they created with afd.dll ,

    but then removed on May 15 , 2018 https://developer.toradex.com/software/windows-embedded-compact/t20-t30-wec-software/release-details?view=all&key=WC-1623

    Here is an example of an Data Abort exception that had seen in explorer from this problem

    Exception 'Data Abort' (0x4): Thread-Id=08fb320a(pth=a2956270), Proc-Id=00400002(pprc=85a92a60) 'NK.EXE', VM-active=019800ba(pprc=a289b7d4) 'explorer.exe'

    5087046 PID:400002 TID:8fb320a PC=ef73b398(afd.dll+0x0002b398) RA=b3fdf1b0(???+0xb3fdf1b0) SP=b3fdf18c, BVA=00000000


    They, Toradex, had thought that Microsoft had fixed the problems that were found in AFD.dll but what happened, I guess Toradex didn't know was that there was a regression in RAS that was either introduced by Microsoft in their fix... or was already there and not fixed.

    All we had to do was put the fix that they had created back into our image.  

    Thanks for posting that!

    So I will mark this post as answered.  Thank christ we were able to find that 

    • Marked as answer by BradleyDSaph Friday, March 27, 2020 8:33 AM
    Friday, March 27, 2020 8:33 AM
  • Ah, if you wouldn't said something about afd.dll data aborting, it would've triggered my memory too:

    https://social.msdn.microsoft.com/Forums/en-US/2f1afbe8-64e1-47c4-9972-4189e7bb3679/compact-2013-wave-3-update-amp-data-aborts?forum=winembplatdev

    and

    https://social.msdn.microsoft.com/Forums/en-US/5e59adb6-0747-4f2a-991d-2f5f9e604b57/httpwebrequest-fails-on-getresponse-with-latest-2017m03-windows-embedded-ce-60-monthly-update?forum=winembmngdapp


    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: https://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    NXP Gold Partner
    https://guruce.com
    Consultancy, training and development services.

    Interested in WEC on i.MX6?
    Get the only 100% stable and best performing i.MX6 BSP for WEC7 and WEC2013 here: https://guruce.com/imx6

    Friday, March 27, 2020 8:38 AM
    Moderator
  • Was there ever a fix from Microsoft on this?  I only see posts about rolling back the update from 2017-04-10

    But I see no follow up.  Is Microsoft not fixing these issues anymore on extended support?  Because, given the history that Toradex has posted, it seems like they thought that MS had fixed the issue that they had patched (which I have no idea where they got the patched afd.dll from, I assume it was just the older working afd.dll before the NTP fix was applied? ) .  But it also looks like WEC2013 is plagued by the same issue. ...

    Thanks for the info.

    Brad

    Friday, March 27, 2020 9:32 AM
  • IIRC it was fixed in an update. I even tested that I think.

    Is your CE tree fully updated?


    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: https://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    NXP Gold Partner
    https://guruce.com
    Consultancy, training and development services.

    Interested in WEC on i.MX6?
    Get the only 100% stable and best performing i.MX6 BSP for WEC7 and WEC2013 here: https://guruce.com/imx6

    Friday, March 27, 2020 9:43 AM
    Moderator
  • Nope.  And that is a problem for us.  The Microsoft website makes it a severe challenge for us to find those, is there a seperate "embedded access" level? 

    I know that is a newb question and I inherited this project, and the last update to our CE tree was the offending March 2017 update I believe.  So it is possible that Toradex did the correct thing...assuming that there was a more recent fix than we have.

    We would really love to get the most recent updates... just need to know how.

    Thanks,

    Brad

      
    Friday, March 27, 2020 9:50 AM
  • Register on DPC and request "Indirect Embedded/IoT" access. You can then download all updates as ISOs.

    Or, you can use WEDU to update your tree (but that process is not smooth in most cases).

    Download our Getting Started Guide and read page 31 to understand how to update using WEDU.


    Good luck,

    Michel Verhagen, eMVP
    Check out my blog: https://guruce.com/blog

    GuruCE
    Microsoft Embedded Partner
    NXP Gold Partner
    https://guruce.com
    Consultancy, training and development services.

    Interested in WEC on i.MX6?
    Get the only 100% stable and best performing i.MX6 BSP for WEC7 and WEC2013 here: https://guruce.com/imx6

    Friday, March 27, 2020 9:55 AM
    Moderator