This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

NRF9160 Board for Qr Code Project

I need to create an IoT QR code reader.

I decide to use the NRF9160 board because it integrates a lot of components that I need to use (LTE, GPS, Bluetooth) so the only mandatory device to buy was the QR Code Reader.

This project aims to prepare a message to be sent to a blockchain, and this message is composed of the QrcodeData read, the location GPS, the time, etc.

It does not seem to be so difficult. -.-

I tried to connect the device with the NRF Cloud but the LTE connection is not available in Italy

I connected the four pins (VCC, GND, RX, TX of the reader to 5V, GND, 0.10, 0,11 of the board) of the Qr code reader (https://www.amazon.it/Waveshare-Barcode-Scanning-Directly-Computer/dp/B07P3GD3XV) to the board and I tried the UART connection with no results.

Then I tried the GPS connection following the sample of the guide with no results, always "Searching device".

I think that I really can't realize the project with this board, so I have three solutions, or I try to set a way to program the NRF9160 with the Arduino IDE where I feel more comfortable, or someone, probably God, helps me, or I change the board.

So, there is a way to program with the Arduino IDE?

This is all folks!

Merry Christmas and happy new year! :)

  • Could you please attach logs showing what is happening on the device?

  • The QR code scanner with the lpuart example doesn't work. Please I need help. I need that this Qr code scanner runs and display data read on the monitor.

  • I discovered that I haven't the nb-IoT coverage required.

  • Okay now I solved a lot of issues:
    -the QR code reader is working
    -the GPS is working
    -I bought another sim that has nb-IoT coverage in my country.

    The next problems are:
    -I need to put in the same application 2 samples that I used (GPS and uart), there is a way?
    -Arm trust zone helps me to execute code in a secure environment. To do this I only need to switch the build from secure and no secure, right?
    -How I can build the samples one time in secure mode and one time in no secure mode? What should I change?
    -Is there a way to encrypt my data using the ECC (Elliptic-curve cryptography)?
    Thank you!!

  • Gioele said:
    Okay now I solved a lot of issues:

    That's great to hear!

    Gioele said:
    I need to put in the same application 2 samples that I used (GPS and uart), there is a way?

    We don't have any guides on how to merge two applications/samples in the nRF Connect SDK (NCS). However, the process is generally quite straight forward. But, at the same time, a lot of the details depends on how you want the merged application to work.

    But in general, in the new application, you will usually need the Kconfig options and devicetree changes from both the individual applications. The same goes for the CMakeLists.txt file. Then, you need to merge the code, in a manner appropriate for your use case.

    Gioele said:
    Arm trust zone helps me to execute code in a secure environment.

    Not quite. It lets you isolate your critical security software and private information from the rest of the application. It is the sepparation that is important, not what domain you are in.

    So benefiting from TrustZone is not as simple as flipping a switch, but requires more careful consideration of the design of your application.

    Currently, what we have of  "secure firmware" is the Secure Partition Manager (SPM) and secure_services.

    We have an old, but hopefully not completely outdated, blogpost describing how you can modify SPM to add more functionality: https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/using-a-custom-secure-partition-manager-wtih-your-application

    However, we are working on integrating Trusted Firmware-M (TF-M) into NCS. And if you plan on developing functionality which should run in the secure domain you should considering basing that work on TF-M rather than the SPM.

    Gioele said:
    Is there a way to encrypt my data using the ECC (Elliptic-curve cryptography)?

    What is the goal you want to achieve?

    If you want to encrypt the data while sending it to the server, using TLS should be sufficient, and you wouldn't need to encrypt the data yourself.

    If you need to encrypt the data yourself (rather than letting a protocol stack handle it), you should look at the Nordic Security Module.

Related