NordicID / nur_sdk

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

NUR API error 1: Invalid command sent to module #15

Open eduardAltenhof opened 4 years ago

eduardAltenhof commented 4 years ago

Hi, I'm trying to set the UserMemory to untraceable mode by using the following params:

NurUntraceableParam params = new NurUntraceableParam(); params.epcWordLen = 13; //EPC length in words 13 = 26Byte = 208 Bit; params.hideEPC=false; //Don'T hide epc params.hideUser=true; // hide usermemory params.rxAttn = false; // No receiver attenuation when waiting for the operation response; params.setU =true; params.tidPolicy = NurApi.TID_HIDE_NONE; params.rangePolicy = NurApi.UTRACE_RANGE_NORMAL;; // Read range is normal not reduced api.gen2v2UntraceableByEpc(password,targetEpc, params);

Access password is already set and locked (SECURED_LOCK)

But I'm always getting the exception: com.nordicid.nurapi.NurApiException: NUR API error 1: Invalid command sent to module at com.nordicid.nurapi.NurApi.exchangeCommand(NurApi.java:3125) at com.nordicid.nurapi.NurApi.exchangeCommand(NurApi.java:3133) at com.nordicid.nurapi.NurApi.gen2v2UntraceableByEpc(NurApi.java:10574) at com.utsch.project.srilanka.client.service.NurApiService.setUserMemoryInUntraceableMode(NurApiService.java:394) at com.utsch.project.srilanka.client.service.NurApiService.access$11(NurApiService.java:382) at com.utsch.project.srilanka.client.service.NurApiService$7.run(NurApiService.java:209) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

Can someone help?

Many thans in advance!