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! :)

Parents
  • 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!!

  • Well, okay...
    I need to read a QR code (I do this with the uart) and for each QR code, I should associate the GPS information. So I should make these two applications work together in the same build.

    The problem is that the GPS works in the no-secure domain while uart works in the secure domain. I really don't know how to solve this problem.

    In each case, the aim of my project is to use the Arm trust zone technology and have at least the Qr code data isolated could be very cool.

    The goal that I want to achieve is that at the end I need to send this information encrypted to a server so maybe the ECC is not required. But about this how I can send all of this data to a specific server using the nb-IoT connection?

  • Gioele said:
    The problem is that the GPS works in the no-secure domain while uart works in the secure domain. I really don't know how to solve this problem.

    The GPS must be in the non-secure domain, because of limitation in the modem_lib. The UART can be in either domain, as long as the peripheral is configured to be in the same domain as the code. This configuration is done by the SPM or TF-M.

    Which UART are you using?

    Why do you want the QR code handling to be in the secure domain? What are you trying to protect, and against what?

    For now, it is probably easiest to have everything in the non-secure domain, until we have proper support for custom TF-M partitions in NCS.

    Gioele said:
    The goal that I want to achieve is that at the end I need to send this information encrypted to a server so maybe the ECC is not required. But about this how I can send all of this data to a specific server using the nb-IoT connection?

    What protocols are you planning to use to communicate with your server?

    The nRF9160 samples in NCS covers most of the supported protocols in NCS, and would be a good starting point to see how communication with a server can be done.

Reply
  • Gioele said:
    The problem is that the GPS works in the no-secure domain while uart works in the secure domain. I really don't know how to solve this problem.

    The GPS must be in the non-secure domain, because of limitation in the modem_lib. The UART can be in either domain, as long as the peripheral is configured to be in the same domain as the code. This configuration is done by the SPM or TF-M.

    Which UART are you using?

    Why do you want the QR code handling to be in the secure domain? What are you trying to protect, and against what?

    For now, it is probably easiest to have everything in the non-secure domain, until we have proper support for custom TF-M partitions in NCS.

    Gioele said:
    The goal that I want to achieve is that at the end I need to send this information encrypted to a server so maybe the ECC is not required. But about this how I can send all of this data to a specific server using the nb-IoT connection?

    What protocols are you planning to use to communicate with your server?

    The nRF9160 samples in NCS covers most of the supported protocols in NCS, and would be a good starting point to see how communication with a server can be done.

Children
No Data
Related