NordicID / nur_sdk

NUR SDK docs and libraries for various platforms
12 stars 19 forks source link

MissingMethodException in NurApiDotNetWCE when Connecting at Merlin Device #9

Open OrangeBlackSphere opened 5 years ago

OrangeBlackSphere commented 5 years ago

Hi,

with the current Version (1.9.8) of NurApiDotNetWCE I can't connect to the integrated reader, because of a missing method exception.

Errormessage:

Can't find an Entry Point 'NurApiGetLastNotificationStatus' in a PInvoke DLL 'NurApi.dll'.

Stacktrace:

at NurApiDotNet.NurApi.InternalNotificationCallback(IntPtr hApi, UInt32 timestamp, Int32 type, IntPtr data, Int32 dataLen)

I have following source code similar to your WindowsCE example: ` log.Debug("Connecting to reader");

  if (nur == null)
  {
    log.Debug("Creating new NurApi object");

    // Create NurApi object
    nur = new NurApi();

    // This gets called when module is connected
    nur.ConnectedEvent += new EventHandler<NurApi.NurEventArgs>(nur_ConnectedEvent);

    // This gets called when module is disconnected
    nur.DisconnectedEvent += new EventHandler<NurApi.NurEventArgs>(nur_DisconnectedEvent);

    // This gets called when new tags arrives
    nur.InventoryStreamEvent += new EventHandler<NurApi.InventoryStreamEventArgs>(nur_InventoryStreamEvent);

    nur.TraceTagEvent += new EventHandler<NurApi.TraceTagEventArgs>(nur_TraceTagEvent);
  }

  if (!nur.IsConnected())
  {
    log.Debug("Connect to reader ...");
    // Connect to integrated reader
    nur.ConnectIntegratedReader();
  }

`

I get the error when calling ConnectIntegratedReader(). I used the version 1.8.5 before and the error didn't appeared.

TuroRantanen commented 5 years ago

Hi,

Please let me know the Windows CE device that you are using? If it's Morphic, Merlin or Medea, then I'm quite sure that you have too old 100*NurDriver???.pak file on the device \Flash folder.

Regards, Turo

OrangeBlackSphere commented 5 years ago

Hi,

sorry, I thought I wrote the device. I use a Merlin device. I checked the folder, but there is no .pak file at all. Changing the folder options to show all hidden or protected files doesn't change what I see: No .pak file. Does the missing files mean that my device is too old?

TuroRantanen commented 5 years ago

Hi,

Sorry, my bad. Merlin was mentioned on the title so I need new glasses. I need also some details from your device so please, click Start -> Programs -> NordicID -> Version -> Packets... and email the generated Packet_Report.htm file to support@nordicid.com. You can find that file from the device root (\) folder.

pasayazici commented 5 years ago

i have same error. My .pak name is 100_MorphicNurDriver_117.pak how can i fix it. it has demo software DotNetApi: 1.7.0.0 NurApi:1.8.1 and this demo very good running but my windows ce application give me to "NurApiGetLastNotificationStatus" error. my windows ce application used last updated dll.

TuroRantanen commented 5 years ago

Hi pasay,

The latest NurApiDotNetWCE.dll version that works with 100_MorphicNurDriver_117.pak file is 1.9.5.0, and you will get it here, but I recommend that you update your OS image as well as all PAK files to the latest version.

Update + patch-up Morphic/Merlin/Medea

Here are instructions on how you can update + patch-up Morphic/Merlin/Medea.

Backup your device:

Backup all the files from the \\Flash folder before you continue further as the \\Flash folder may be reformated during the updating procedure if the current OS image version is too old.

Pre-requirements:

Download and install NordicID Auto Updater: https://www.nordicid.com/nordic_id_auto_updater_1_5_2/

Updating system firmware:

  1. Start NordicID Auto Updater tool
  2. Put the device into the cradle
  3. Click the START button on the NordicID Auto Updater tool
  4. The device will automatically restart after the update

Patchup system:

  1. Download all patch (PAK) files from the support page: Medea PAKs Merlin PAKs Morphic PAKs

  2. Copy all downloaded patch (PAK) files to device \\Flash folder

  3. Remove manually previous version from the outdated PAKs if exist (like 100_MorphicNurDriver_117.pak etc.)

  4. Restore factory defaults to the device by clicking the Start -> Programs -> NordicID -> Registry Backup -> Factory Default -> Defaults

Regards, Turo

pasayazici commented 5 years ago

Thx for answer. But this release not working.

i have same error: "Can't find an Entry Point 'NurApiGetLastNotificationStatus' in a PInvoke DLL 'NurApi.dll'."

TuroRantanen commented 5 years ago

May I get a Packet_Report.htm file from the device? Click Start -> Programs -> NordicID -> Version -> Packets... and you will find generated Packet_Report.htm file from the device root () folder. Email it to the support@nordicid.com and mention this thread.

pasayazici commented 5 years ago

This branch is running. Problem is sample code. I changed sample codes then it ran. Thanks.

flacohenao commented 5 years ago

Turo, can I email you about my device? Im having the same issue...

TuroRantanen commented 5 years ago

Hi flacohenao, yes, you can reach me by email at support@nordicid.com