nRF52840 dongle serial hex for interaction with interactive pyaci

Hello developers,

Few months ago I started developing serial hex document for nRF52840 dongle which will be able to communicate with interactive pyaci so our company can provision and set the correct configurations in the mesh network of bluetooth lights sensors. After a long research I found out that I will have to update communication protocol between UART to USBD because many people on the forum were writing that dongle doesn't have an Segger chip that could understand the UART. That's why I found this documentation about USBD and I created the virtual port on the dongle and have sucessfully created so I recieve RX and TX from both devices. I had to update serial example and interactive pyaci script as well. Even if I have sucessfully created the virtual port and so both devices send the data to each other I can't create so the devices can understand each other for some reason I believe. I saw in the interactive pyaci that there is some kind of max bytes transmission on the UART but I don't know if this also should be applied on the different protocol such as USBD? In the interactive pyaci now I can sucessfully connect to dongle, get UUIDs and RSSI of the lights but when I try to provision then nothing happens. I will apply all the source code and the hex files so someone can deeply research my project because I can't find out what is wrong so the provisioning doesn't go through in the interactive pyaci.

I uploaded the hex of the dongle which I use and program it with programmer program and select the S140 softdevice once asked. After the upload of the hex was sucessfully flashed I run the interactive pyaci in the command prompt. Firsty change the directory to interactive-pyaci.py location and run the command "python interactive-pyaci.py -d COMx" or "python interactive-pyaci.py -d COMx -b 115200" where x is the port number which computer assigned you can check which port is used inside device manager. Once you are sucessfully inside interactive pyaci you can follow default commands such as in the pdf file I attached from one person who wrote it on the form, credits do not go to me for the pdf provided. On the provision thing the process get stuck because RX is being sent from the dongle but it seems like there is some kind of miss understanding between communication. Also please on the povision command use p.provision(uuid="HERE COMES THE UUID"). 

 

I have to stand out that our LED lights sensors use nR52832 chips but I don't believe this is the problem here.

Please let me know if you can open the files I uploaded or if not so I can assist you better. If the files that I uploaded can't be open please let me know the step-by-step tutorial on how to correctly send the zip file of all containing files and folders. If I missed anythng during the research please let me know.

I would really appriciate any help in advance.

Thanks,

zanluka

6445.interactive-pyaci.zip

2804.serial_nrf52840_xxAA_s140_7_2_0_archive.zip

7674.serial_nrf52840_xxAA_s140_7.2.0_hex.zip

0741.Mesh Demo - Generic DK.pdf

Related