Pyaci script issue communicating with serial example connected to serial port changing ports frequently

Hello,

I am using serial example in nrf52840_DK connected to serial port in raspberry pi . trying to run commands in raspberry pi terminal but frequently its getting disconnected to serial port and may be changes the port number and cannot communicate to each other and that i can just know by running this command "send(cmd.Echo("hello world"))"  whether its still connected to serial example or not. ( I am using V.5.0.0 of pyaci script commands and this directory https://github.com/NordicSemiconductor/nRF5-SDK-for-Mesh for script )

will be grateful to get some help here. something required very urgent

Best Regards

Parents
  • Hi Sai, 

    We need to break down the issue by testing with simple application, especially on why the board stop responding after a while. 
    Please clarify: 

    - When you test a simple UART example (not the mesh one) from the nRF5 SDK with Windows, do you see any problem keeping the application running or you also have occasionally crash from the board ? 

    If that doesn't crash, please try the same UART example on RPi and let me know the result. 

  • - When you test a simple UART example (not the mesh one) from the nRF5 SDK with Windows, do you see any problem keeping the application running or you also have occasionally crash from the board ? 

    It doesnot crash even when i build and flash many times

    If that doesn't crash, please try the same UART example on RPi and let me know the result. 

    How can i check in RPI? I dont have any tools like vscode or segger embedded studio to build and flash as we have less memory in RPI

Reply
  • - When you test a simple UART example (not the mesh one) from the nRF5 SDK with Windows, do you see any problem keeping the application running or you also have occasionally crash from the board ? 

    It doesnot crash even when i build and flash many times

    If that doesn't crash, please try the same UART example on RPi and let me know the result. 

    How can i check in RPI? I dont have any tools like vscode or segger embedded studio to build and flash as we have less memory in RPI

Children
  • Hi Sai, 

    SaSu said:
    How can i check in RPI? I dont have any tools like vscode or segger embedded studio to build and flash as we have less memory in RPI

    What I meant is that if the board with UART firmware works fine on Windows, you can just plug the board on the RPi and check if it works the same or it occasionally crash as you mentioned with the mesh example. 

    If it crash you may want to debug and check if the application is asserted. There could be a challenge to debug the board when it's connected to RPi, as you may not have a debugger running on the RPi. 

    If you have an extra DK, you can connect the DUT (Device Under Test) 's UART pins to the extra DK UART pins (P0.05 RTS, P0.06 TXD, P0.07 CTS, P0.08 RXD) , and connect this extra DK to the RPi. This way you still can connect the DUT to the Windows machine and then can debug it. So only UART is connected to RPi, SWD debugging interface is still connected to Windows. 

Related