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, 

    I'm not very familiar with the RPi so not much I can help on that side. But could you clarify that when the RPi is working properly (the serial port is not changed) you have managed to send the Echo command and get the response back ?

    Have you managed to do any other task (for example doing provisioning etc)  ? 

  • Hello Hung

    Firstly Thank You for your support. I could do everything like provisioning and yes i can get the response back with echo command but i dont know suddenly it stops working then i need to check with echo command if its connected then i get "Time out waiting for event" then i have to off and on the dk kit then it changes the port number so i have to start again from first command.

    Regards

  • Hi Sai, 
    If you connect the DK to PC and do the same thing do you have the same issue that the DK stopped responding ? 

    If you connect the DK to RPi and simply test with an UART hardware example (not the mesh example) in NRF5 SDK, do you have the same issue ? 

  • If you connect the DK to PC and do the same thing do you have the same issue that the DK stopped responding ? 

    I did not check with PC also did not install any packages for pyaci stuff in PC just flashed serial example with segger to dk from PC and i want to do it in raspberry pi only

    If you connect the DK to RPi and simply test with an UART hardware example (not the mesh example) in NRF5 SDK, do you have the same issue ? 

    Yes with any example it is like that also i am trying to write a program to get output in thonny editor i.e running terminal in background and getting the output from background terminal to thonny ide output terminal it is also not successful because the ports are keep on changing when i directly type commands in terminal and then run the program same issue also with only terminal i.e running commands only in terminal frequently its stops connecting TBH i did not even complete the provisioning in middle it stops connecting of and on works and want to continue.

Reply
  • If you connect the DK to PC and do the same thing do you have the same issue that the DK stopped responding ? 

    I did not check with PC also did not install any packages for pyaci stuff in PC just flashed serial example with segger to dk from PC and i want to do it in raspberry pi only

    If you connect the DK to RPi and simply test with an UART hardware example (not the mesh example) in NRF5 SDK, do you have the same issue ? 

    Yes with any example it is like that also i am trying to write a program to get output in thonny editor i.e running terminal in background and getting the output from background terminal to thonny ide output terminal it is also not successful because the ports are keep on changing when i directly type commands in terminal and then run the program same issue also with only terminal i.e running commands only in terminal frequently its stops connecting TBH i did not even complete the provisioning in middle it stops connecting of and on works and want to continue.

Children
Related