Coder Social home page Coder Social logo

nordicid / ar8x_samples Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 4.0 370.32 MB

Example applications for ar8x with installation packages

License: MIT License

C# 0.75% Shell 5.65% HTML 9.83% C++ 1.64% JavaScript 13.32% POV-Ray SDL 0.13% Python 13.44% CSS 7.45% Java 0.27% Batchfile 0.38% C 8.09% Roff 39.03% Makefile 0.01% BlitzBasic 0.01%

ar8x_samples's People

Contributors

jmunsin avatar mikkonid avatar turorantanen avatar tychus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ar8x_samples's Issues

Documentation on Java missing?

I can not manage to create the java app using this example. As soon as I compile the app under Windows the app fails to start. I tried java 11 and java 8

JavaMQTTSample@SampoS2K190600757:~$ ./run start
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

When I use the original zip folder, the app runs fine. Just a mere compilation without changing the source code makes it fail to start.

What version of javac exactly do I need to make this run?

Edit: Even trying to run java from the app fails.

JavaMQTTSample@SampoS2K190600757:$ java/bin/java
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object
JavaMQTTSample@SampoS2K190600757:
$ java/jre/bin/java
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object

Error while checking if provided path is a directory

Hi,
I've been tasked with some research about NUR SDK and AR85 and because of that I've been reading documentation and trying out different examples. When I was trying to sign a folder directly from this repository, as shown in the docs and batch scripts, I got an System.UnauthorizedAccessException. I tried different things, but finally I decided to look into the source code of the ar_signtool_cli. A quick debugging session showed that the culprit is the line

if (inputFi.Attributes == FileAttributes.Directory)
which doesn't allow for any other file attribute than Directory. It happens that i've cloned the repository into a compressed folder (builtin Windows compression). As such, the SignFolder method was never called, only the SignZipFile, which of course threw exception, as (I assume) it expects a single Zip file.
If the compression or other attributes are not allowed there should be a clean message about it. Otherwise this issue can be fixed replacing the check wit a code like

if (inputFi.Attributes.HasFlag(FileAttributes.Directory))

I would make a PR, but I cannot test if compression or this change cause problems, as I don't have the necessary hardware yet. Sorry.

Node JS sample "Message(4098): Transport not connected" error

I am running NodeJS sample application in Nordic ID web interface, but getting error when reading tags or getting invetory. Here is the error from sample error log.

Example app listening at http://:::10126
Fatal error: could not connect to localhost
Connection failed, code: 4098.
Message(4098): Transport not connected

If am using Norma LLRP sample application then it shows correcty the successful status:

Status
Last update: 09-02-19 15:17:00
Instance name: 127.0.0.1:4053
Reader active: true
Client connection status: Listening client at port 4053
Reader connection status: Connected
Last reader error: No errors
Last LLRP error: No errors

Web inteface -> services -> nur service: internal reader runs on 192.168.0.13:4053. RFID reader is configured(with RFID configurator) to use my home wifi.

I see in the nodeJs sample that some nurconrpi program is used to execute commands to get invetory. Probably this error come from there. My main purpose of this is to read RFID tags over the API, but currently the API(node sample) is broken or my network configuration is wrong. Can anyone give some hint what to explore next?

Multiple UriTemplate with same signature in WcfInterface

As I was trying to run some of the sample applications, I ran into an issue with 6. LLRP_sample.

In WcfInterface.cs file, there are two methods share the same UriTemplate and Method.

[OperationContract, WebInvoke(Method = WebRequestMethods.Http.Post,
UriTemplate = "/GetDeviceSetup",
RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)
]
DeviceStatusObject GetDeviceSetup(string deviceId);
[OperationContract, WebInvoke(Method = WebRequestMethods.Http.Post,
UriTemplate = "/GetDeviceSetup",
RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
NormaStatus GetDeviceStatus(string deviceId);

I believe the second method should be /GetDeviceStatus.
This results in runtime error below:
Error Message [In contract 'WcfInterface', there are multiple operations with Method 'POST' and a UriTemplate that is equivalent to '/GetDeviceSetup'. Each operation requires a unique combin ation of UriTemplate and Method to unambiguously dispatch messages. Use WebGetAttribute or WebI nvokeAttribute to alter the UriTemplate and Method values of an operation.]

How can I change ngnix certificate

Hello,
I am building an app for AR82 reader and I would like to change the default certificat for HTTPS in nginx configuration.
Thanks

AR8x sample for ASP.NET Core 3

Hello! I managed to deploy and run the ASP.NET Core 3 application, but failed to connect the NurApi library.
Could you create an example.

Antenna info in readTagByEpc request

Is it possible to read antenna info in readTagByEpc request: https://github.com/NordicID/ar8x_samples/blob/master/4.Node.JS_sample/zipcontents/bin/server.js#L35

What kind of values should be pass to request for parameters epc, bank, wordAddress and readByteCount? Or is there any other development needed to achieve it? I used some custom package(https://github.com/GeenenTijd/llrp-nodejs) and Norma(https://github.com/NordicID/ar8x_samples/tree/master/6.LLRP_sample) before and i got all information i needed but the llrp-nodejs package is not very reliable for bigger chunk of data so i gave up this.

I am appreiciated for any help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.