read efusA9 serial number

  • The application FSBoardConfig shows the serial number. I assume this is the serial number of the F&S board. How can I get the serial number from my program? (I'm using efusA9 and efusA9X).


    Best regards,
    Steffen

  • Hello,


    serial number is the MAC address of the first on board Ethernet adapter, under Windows CE it is located under [HKEY_LOCAL_MACHINE\Comm\<Adapter Name>\Parms].
    To be platform independed you may use OS funtions to retrieve this number (e.g. GetAdaptersInfo under c++) ... .
    Hope this helps.

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Hello,


    a better solution to get the "first" WCE MAC adddress (= serial number) is use of ndcucfg libraray. The library will by found in the tools-section of the download area. Advantage is, you do not need any information about adapters name or adapter registry path (=platform independent):


    Code
    1. #include "ndcucfg_lib.h"
    2. //link against ndcucfg_lib.lib
    3. ...
    4. PSD_TCPIP Data;
    5. memset( &Data, 0, sizeof(Data) );
    6. Data.dwSize = sizeof(PSD_TCPIP);
    7. NETWORK_TYPE type;
    8. DWORD flags;
    9. NDCUCFG_CmdBOOTGetConfigFlags(&flags, &Data, &type);
    10. ....

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.