Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have the script interactively ask for the correct FTDI device #5

Open
r3v0lv3rz opened this issue Jan 6, 2023 · 6 comments
Open

Have the script interactively ask for the correct FTDI device #5

r3v0lv3rz opened this issue Jan 6, 2023 · 6 comments

Comments

@r3v0lv3rz
Copy link

I know you have the script abort when there is more than one device but I just tried it on my Mac and I only had one device connected and it still says there are multiple devices. Is there any way to have the script prompt to select the correct device?

@rmull
Copy link
Owner

rmull commented Jan 11, 2023

To get you unstuck, you can explicitly set a device by setting COM_OVERRIDE to the name of your preferred device near the top of tinkup.py (line 11 at the moment). This will prevent the automatic device enumeration from occurring and always attempt to use the device you prefer.

An interactive selector could be a nice-to-have feature so I'll take a look at some point.

Thanks for the feedback.

@blackmajik2049
Copy link

@rmull I am also having this issue. I have tried every possible name for my device but I can not get it to work. Do you have more details on how to use COM_OVERRIDE?

here's the info on my device:

FT232R USB UART:

Product ID: 0x6001
Vendor ID: 0x0403 (Future Technology Devices International Limited)
Version: 6.00
Serial Number: AB0NLFM4
Speed: Up to 12 Mb/s
Manufacturer: FTDI
Location ID: 0x01100000 / 1
Current Available (mA): 500
Current Required (mA): 90
Extra Operating Current (mA): 0

which piece should I use for the "device name"?

@rmull
Copy link
Owner

rmull commented Oct 18, 2023

@rmull I am also having this issue. I have tried every possible name for my device but I can not get it to work. Do you have more details on how to use COM_OVERRIDE?

If you open a terminal and run:

python -m serial.tools.list_ports

It should print a list of all of the serial ports currently recognized by your OS. You will need to identify which one belongs to your RetroTINK - try running the command with and without the device plugged in to see what changes. Set COM_OVERRIDE equal to that serial port name wrapped in single quotes.

@blackmajik2049
Copy link

@rmull

upon running python -m serial.tools.list_ports I get:

/dev/cu.Bluetooth-Incoming-Port
/dev/cu.usbserial-2
/dev/cu.usbserial-AB0NLFM4
3 ports found

I tried adding "AB0NLFM4" to the python script but then I got an error "Could not open device at AB0NLFM4"

@blackmajik2049
Copy link

@rmull

I just got it to work by adding "/dev/cu.usbserial-AB0NLFM4" to the python script. thank you so much! I have been struggling with this forever!

@rmull
Copy link
Owner

rmull commented Oct 18, 2023

Happy to help, glad to hear it's working now.

Repository owner deleted a comment from renato71amorim Mar 4, 2024
Repository owner deleted a comment from renato71amorim Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants