AmirHmZz/mpbridge

Add auto port detection feature

Opened this issue · 5 comments

Accept auto keyword as port in all commands and detect port automatically. This might need to iterate over serial ports and try them one by one.

This may not be a very urgently needed feature. 😄

It's worth mentioning that despite the overlap, the mpremote connect list functionality to list all available ports is necessary.

It's worth mentioning that despite the overlap, the mpremote connect list functionality to list all available ports is necessary.

I agree, I will be working on it ...

I think this automatic connection device function may lead to some bad situations.

For example, someone has connected other serial devices to the computer before connecting the micropython device.

Many serial communication devices not only send information to the host computer, but also receive instructions from the host computer. So far, I don’t know any way to distinguish this device from the micropython device, even if you try one by one. .

The mpremote connect auto command already has this functionality, if you want to keep having the same functionality, just copy it.

Perhaps most people will only connect a micropython device to their computer, and using the automatic connection function is an easy choice.

After #16 I think this feature is not much needed anymore. I will let this open so maybe we decide to implement it one day.