FW: Application Signing Tool

 

 

From: Nordic ID Support <support@nordicid.com>
Sent: Thursday, October 31, 2019 8:55 PM
To: jin@intensecomp.com
Subject: RE: Application Signing Tool

 

Hello Jin,

 

You should receive normal Android keycodes:

 

172:Green

312:Yellow

158:Red

KEYCODE_PROG_GREEN

KEYCODE_PROG_YELLOW

KEYCODE_PROG_RED

 

https://developer.android.com/reference/android/view/KeyEvent

 

Regards,

Ari

 

From: Jin Chua <jin@intensecomp.com>
Sent: Thursday, October 31, 2019 1:52 PM
To: Nordic ID Support <support@nordicid.com>
Subject: Re: Application Signing Tool

 

Hi Ari,

Are we able to detect the 2 buttons RED and GREEN dot. Both situated on left and right of YELLOW button.

I know how to detect the both gun trigger and yellow button.

Regards,

Jin


From: Nordic ID Support <support@nordicid.com>
Sent: Thursday, October 31, 2019 7:36:37 PM
To: Jin Chua <jin@intensecomp.com>
Subject: RE: Application Signing Tool

 

Hi Jin,

 

In HH53, trigger button is only button firing IO events.

 

Regards,

Ari

 

From: Jin Chua <jin@intensecomp.com>
Sent: Thursday, October 31, 2019 12:16 PM
To: Nordic ID Support <support@nordicid.com>
Subject: Re: Application Signing Tool

 

Hi Ari,

 

Noted and thanks.

 

I've 1 more question related to HH53? In your Android sample source code I know how to capture the trigger button event. May I know where can I find the others button code? I need to detect button pressed event.

 

Regards,

Jin


From: Nordic ID Support <support@nordicid.com>
Sent: Thursday, October 31, 2019 5:52:20 PM
To: jin@intensecomp.com <jin@intensecomp.com>
Subject: RE: Application Signing Tool

 

Hello Jin,

 

Changing individual power level for antenna, use ModuleSetup member antPowerEx

 

NurApi.ModuleSetup setup = NurApi.GetModuleSetup();

 

setup.antPowerEx[0] = 255;            //Antenna 1 individual power level not in use (default)

setup.antPowerEx[1] = 10;            //Antenna 2 individual power level set (same  as TxLevel value)

 

Nurapi.setModuleSetup(SETUP_PERANTPOWER_EX,ref setup);

 

ClearTagsEx clear tag list from NurApi instance and from module so next inventory round fill empty table with new tags.

Otherwise, inventory round just update information for founded tags like rssi and timestamp and add new tags if not already in the list.

InventoryStreamEvent parameter gives a number of new tag found.

 

Regards,

Ari Pöyhönen  |  SW designer


Nordic ID Oyj | Salo IoT Campus | Joensuunkatu 7 | FI-24100 Salo | Finland
Mobile +358 40 557 3834

www.nordicid.com| Facebook | LinkedIn | Twitter | YouTube

 

 

Watch the inspiring Nordic ID HH83 video

Read more about the FUTUREPROOF Nordic ID HH83

 

The information transmitted by this email is intended only for the named addressee or entity to which it is addressed. This email may contain proprietary, business-confidential and/or privileged material. If you are not the named addressee of this message, be aware that any use, review, retransmission, distribution, reproduction or any action taken in reliance upon this message is strictly prohibited. If you received this message in error, please notify the sender and delete the material from all computers. E-mail transmission cannot be guaranteed to be secure or error-free and information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Nordic ID accepts no liability for any damage caused by any virus transmitted by this email or does not accept liability for any message sent by its employees which is not in compliance with Nordic ID corporate policy. In line with GDPR click here to read our Privacy Policy

 

 

 

 

From: jin@intensecomp.com <jin@intensecomp.com>
Sent: Wednesday, October 30, 2019 11:22 AM
To: Nordic ID Support <support@nordicid.com>
Subject: RE: Application Signing Tool

 

Hi Ari,

 

I've modify my source code to read multiple antennas at same time and the speed were faster now. I still haven't solve the http post issue. I would like to ask you it's practical to trigger

 

hNur.ClearTagsEx();

 

at the end of Inventory Stream cycle?

 

It's possible to point me where the antenna power setting source code in Nordic ID sample? I would like to set the power setting in my source code.

 

Regards,

Jin

 

From: Nordic ID Support <support@nordicid.com>
Sent: Tuesday, October 29, 2019 6:28 PM
To: jin@intensecomp.com
Subject: RE: Application Signing Tool

 

Hello Jin,

 

It should work as Turo suggested earlier. Just enable used antennas and let module select antennas automatically.

Its fastest possible operation. Adjust inventory Q and Round values as their affect also for reading speed. If need to read only few (tag <5) then use lower Q and round values like Q=4 , Round=2

 

When iterating Tags in InventoryStreamEvent, you can get antennaID who read the tag and also rssi values.

So you should get easily info about IN and OUT tags based on antennaID received with tag.

 

// Configure settings to the RFID module

        hNur.AntennaMaskEx = NurApi.ANTENNAMASK_1 | NurApi.ANTENNAMASK_2 | NurApi.ANTENNAMASK_3 | NurApi.ANTENNAMASK_4;

        hNur.SelectedAntenna = NurApi.ANTENNAID_AUTOSELECT;

 

 

About certificate problem. New AR82 OS version 1.3.9 includes certificate update which may help in this problem.

However, its not publish yet, meanwhile,  I suggest to disable certificates .

 

ServicePointManager.ServerCertificateValidationCallback = (sender, cert, chain, sslPolicyErrors) => { return true; };

 

Regards,

Ari Pöyhönen  |  SW designer


Nordic ID Oyj | Salo IoT Campus | Joensuunkatu 7 | FI-24100 Salo | Finland
Mobile +358 40 557 3834

www.nordicid.com| Facebook | LinkedIn | Twitter | YouTube

 

 

Watch the inspiring Nordic ID HH83 video

Read more about the FUTUREPROOF Nordic ID HH83

 

The information transmitted by this email is intended only for the named addressee or entity to which it is addressed. This email may contain proprietary, business-confidential and/or privileged material. If you are not the named addressee of this message, be aware that any use, review, retransmission, distribution, reproduction or any action taken in reliance upon this message is strictly prohibited. If you received this message in error, please notify the sender and delete the material from all computers. E-mail transmission cannot be guaranteed to be secure or error-free and information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Nordic ID accepts no liability for any damage caused by any virus transmitted by this email or does not accept liability for any message sent by its employees which is not in compliance with Nordic ID corporate policy. In line with GDPR click here to read our Privacy Policy

 

 

 

From: jin@intensecomp.com <jin@intensecomp.com>
Sent: Tuesday, October 29, 2019 11:51 AM
To: Nordic ID Support <support@nordicid.com>
Subject: RE: Application Signing Tool

 

Hi Ari,

 

I've another issue need your assistant. It's possible to read 4 antennas at the same time? I'm working on door access and I need to process 4 antennas result at the same period. We're connecting the I/O to turnstile. 2 IN and 2 OUT. Currently I'm using Inventory Stream and process the result in the callback event. I notice it will be delay since I've to wait for 1 antenna to finish processing before going to another antenna.

 

Regards,

Jin

 

From: Nordic ID Support <support@nordicid.com>
Sent: Tuesday, October 29, 2019 3:22 PM
To: jin@intensecomp.com
Subject: RE: Application Signing Tool

 

Hi Jin,

 

Not sure but this sound very similar as your issue:

https://github.com/restsharp/RestSharp/issues/728

Solved the issue. mono irc chat solved the issue. Without valid X509 certificate roots, the https requests will fail.
one needs to run "mozroots --import --machine --sync"
Only then will it work!

 

Other solution could be just ignore certificates which is not necessary recommended way..

https://stackoverflow.com/questions/39331434/https-post-get-not-working-on-mono

 

I hope this helps

Regards,

 

Ari Pöyhönen  |  SW designer


Nordic ID Oyj | Salo IoT Campus | Joensuunkatu 7 | FI-24100 Salo | Finland
Mobile +358 40 557 3834

www.nordicid.com| Facebook | LinkedIn | Twitter | YouTube

 

 

Watch the inspiring Nordic ID HH83 video

Read more about the FUTUREPROOF Nordic ID HH83

 

The information transmitted by this email is intended only for the named addressee or entity to which it is addressed. This email may contain proprietary, business-confidential and/or privileged material. If you are not the named addressee of this message, be aware that any use, review, retransmission, distribution, reproduction or any action taken in reliance upon this message is strictly prohibited. If you received this message in error, please notify the sender and delete the material from all computers. E-mail transmission cannot be guaranteed to be secure or error-free and information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Nordic ID accepts no liability for any damage caused by any virus transmitted by this email or does not accept liability for any message sent by its employees which is not in compliance with Nordic ID corporate policy. In line with GDPR click here to read our Privacy Policy

 

 

From: jin@intensecomp.com <jin@intensecomp.com>
Sent: Tuesday, October 29, 2019 8:13 AM
To: Nordic ID Support <support@nordicid.com>
Subject: RE: Application Signing Tool

 

Hi Turo,

 

Can you help me to check with your developer how to send Http POST command from Mono C# in AR82? I've no issue with HTTP but HTTPS the application throw exception?

 

I also want to check it's possible to read tags concurrently antenna by antenna. E.g. Antenna Id: 1, 2, 3 and 4. Currently I'm using Inventory Stream and encounter some delay when tags tap from different antennas at same period.

 

Regards,

Jin

 

From: Nordic ID Support <support@nordicid.com>
Sent: Friday, October 25, 2019 10:41 PM
To: jin@intensecomp.com
Subject: RE: Application Signing Tool

 

Hi, I'm not familiar with this so I forwarded your questions to our developers. Meanwhile you will try to find a solution by Googling something like the "SecurityProtocol raspbian" or "SecurityProtocol mono".

 

Best Regards,
Turo Rantanen

 

 

From: jin@intensecomp.com <jin@intensecomp.com>
Sent: Friday, October 25, 2019 5:33 PM
To: Nordic ID Support <support@nordicid.com>
Subject: RE: Application Signing Tool

 

Hi Turo,

 

In Windows environment adding the System.Net.ServicePointManager.SecurityProtocol… I'll able to access HTTPS but not in Mono C#. If anyone from your end able to assist me? We're deploying AR82 at client place now and need to connect to client server from AR82.

 

static void Main(string[] args)

        {

            try

            {

                System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;

 

                WebRequest request = WebRequest.Create("https://apps.sbstransit.com.sg/VMS_API_UAT");

                WebResponse response = request.GetResponse();

                Console.WriteLine(((HttpWebResponse)response).StatusDescription);

            }

            catch(Exception ex)

            {

                Console.WriteLine(ex.Message);

            }

 

            string s = Console.ReadLine();

        }

 

Regards,

Jin

 

From: Nordic ID Support <support@nordicid.com>
Sent: Friday, October 25, 2019 8:24 PM
To: Jin Chua <jin@intensecomp.com>
Subject: RE: Application Signing Tool

 

Hi, that's good to hear 👍

 

Best Regards,
Turo Rantanen

 

 

From: Jin Chua <jin@intensecomp.com>
Sent: Friday, October 25, 2019 3:22 PM
To: Nordic ID Support <support@nordicid.com>
Subject: Re: Application Signing Tool

 

Hi Turo,

 

I encountered this https issue in Android environment.  Adding TLS headers and manage to connect to the endpoint.

 

Regards,

Jin


From: Nordic ID Support <support@nordicid.com>
Sent: Friday, October 25, 2019 5:52:50 PM
To: jin@intensecomp.com <jin@intensecomp.com>
Subject: RE: Application Signing Tool

 

Hi, what kind of StatusDescription did you get?

 

Best Regards,
Turo Rantanen

 

 

 

From: jin@intensecomp.com <jin@intensecomp.com>
Sent: Friday, October 25, 2019 12:48 PM
To: Nordic ID Support <support@nordicid.com>
Subject: RE: Application Signing Tool

 

Hi Turo,

 

Did you happen to encounter issue related to HttpClient accessing https server?

 

WebRequest request = WebRequest.Create("https://apps.sbstransit.com.sg/VMS_API_UAT");

WebResponse response = request.GetResponse();

Console.WriteLine(((HttpWebResponse)response).StatusDescription);

 

Regards,

Jin

 

From: Nordic ID Support <support@nordicid.com>
Sent: Thursday, October 24, 2019 6:31 PM
To: jin@intensecomp.com
Subject: RE: Application Signing Tool

 

Hi,

 

It's as simple as following:

 

private static void HNur_ConnectedEvent(object sender, NurApi.NurEventArgs e)

{

    Console.WriteLine("Nur Connected");

    try

    {

        // Configure settings to the RFID module

        hNur.AntennaMaskEx = NurApi.ANTENNAMASK_1 | NurApi.ANTENNAMASK_2 | NurApi.ANTENNAMASK_3 | NurApi.ANTENNAMASK_4;

        hNur.SelectedAntenna = NurApi.ANTENNAID_AUTOSELECT;

        // Start InventoryStream

        hNur.StartInventoryStream();

    }

    catch (Exception ex)

    {

        Console.WriteLine("Could not start inventory stream [" + ex.Message + "]");

    }

}

 

Best Regards,
Turo Rantanen

 

 

From: jin@intensecomp.com <jin@intensecomp.com>
Sent: Thursday, October 24, 2019 1:26 PM
To: Nordic ID Support <support@nordicid.com>
Subject: RE: Application Signing Tool

 

Hi Turo,

 

Noted and thanks. It's possible to configure in the source code?

 

Regards,

Jin

 

From: Nordic ID Support <support@nordicid.com>
Sent: Thursday, October 24, 2019 6:19 PM
To: jin@intensecomp.com
Subject: RE: Application Signing Tool

 

Hi,

 

Make sure that Selected antenna is set to the AUTO mode:

 

 

Best Regards,
Turo Rantanen

 

 

From: jin@intensecomp.com <jin@intensecomp.com>
Sent: Thursday, October 24, 2019 1:13 PM
To: Nordic ID Support <support@nordicid.com>
Subject: RE: Application Signing Tool

 

Hi Turo,

 

I manage to get the source code running. I notice the sample application only read from 1 antenna. I already configure to read all antenna thru USB cable. Do I need to configure in the source code?

 

Regards,

Jin

 

From: Nordic ID Support <support@nordicid.com>
Sent: Thursday, October 24, 2019 5:40 PM
To: jin@intensecomp.com
Subject: RE: Application Signing Tool

 

Hi,

 

As the make.bat shows it:

 

https://github.com/NordicID/ar8x_samples/blob/master/5.CS_Nurapi_sample/make.bat

 

Best Regards,
Turo Rantanen

 

 

From: jin@intensecomp.com <jin@intensecomp.com>
Sent: Thursday, October 24, 2019 12:38 PM
To: Nordic ID Support <support@nordicid.com>
Subject: RE: Application Signing Tool

 

Hi Turo,

 

I've modify source code in 5. CS_Nurapi_sample. How should I use the cli and deploy to the AR82 reader. Thanks.

 

Regards,

Jin

 

From: Nordic ID Support <support@nordicid.com>
Sent: Thursday, October 24, 2019 5:30 PM
To: jin@intensecomp.com
Subject: RE: Application Signing Tool

 

Hi,

 

Perhaps this command-line tool works better as you can automate the signing process:

https://github.com/NordicID/ar8x_samples/tree/master/tools/ar_signtool_cli

 

Best Regards,
Turo Rantanen

 

 

From: jin@intensecomp.com <jin@intensecomp.com>
Sent: Thursday, October 24, 2019 12:27 PM
To: Nordic ID Support <support@nordicid.com>
Subject: Application Signing Tool

 

Hi Support,

 

I'm able to download the tool now.

 

I'm very sorry for the delay. Here you go:

https://www.nordicid.com/en/downloads/file-preview/downloads/sdks/nordicidapplicationsigningtool_v_1_0_3.zip

 

Regards,

Jin

Comments