The solution to "OpenMV suddenly cannot connect to the computer"


foreword

This article explains the sudden connection problem and solution process of OpenMV of Xingtong Technology

1. Problems encountered

After OpenMV finished running the serial port communication code, there was a connection problem when it was used on a different computer.
Details are as follows:

  • OpenMV will connect for a second after connecting to the computer, and then it will not connect. Re-plug the data cable is also the above situation
  • The moment the power is turned on, the green light (indicator) will be on

2. The solution process

1. It may be that the data line is in poor contact

My device has changed three data cables, but the problem is still not resolved.

2. It may be a problem with the USB port of the computer

I changed the USB port and the computer, but still can’t connect

3. Next is a wrong way: Use another OpenMV to burn a lighting program, store it in an SD card, insert the SD card into the problematic OpenMV, and use battery power to see if the program can run.

In fact, OpenMV can only store the program on its own board, and cannot use SD card to run offline. Of course, this statement is only based on my personal experience. The following describes the offline operation of OpenMV.
OpenMV offline operation
The specific steps are as follows:

  • Write a lighting program, then click "Tools"
    insert image description here
  • Click on the following location
    insert image description here
  • Click Yes
    insert image description here
  • When the red light is on, it means that it is saving, and when the red light is off, it means that it has been saved, and the code can be run directly after power on again

4. Erase the storage of OpenMV. It is possible that the .py file that has been solidified before may conflict with the debugging of the IDE.

Specific steps are as follows:

  • Don't connect to OpenMV, just click connect
    insert image description here

  • The following interface appears, click OK
    insert image description here

  • Click "Yes"
    insert image description here

  • Choose a model
    insert image description here

  • Insert the board when the progress bar is scrolling, and then wait for a period of time to connect, then re-register, and it can be used normally without registration. So far the problem is solved.

Guess you like

Origin blog.csdn.net/light_wxy0319/article/details/123556832