wahid.majri
Posts: 3
Joined: Thu Feb 20, 2020 2:55 pm

How to change port? From /dev/ttyACM0 to /dev/ttyUSB0

Sat Jul 25, 2020 8:35 pm

How to change port? From /dev/ttyACM0 to /dev/ttyUSB0 in raspberry pi4

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: How to change port? From /dev/ttyACM0 to /dev/ttyUSB0

Sat Jul 25, 2020 10:17 pm

wahid.majri wrote:
Sat Jul 25, 2020 8:35 pm
How to change port? From /dev/ttyACM0 to /dev/ttyUSB0 in raspberry pi4

Context?

What Operating System is running on your RPi4 board?


In what application, tool, utility or programming language do you want to make this change?

User avatar
scruss
Posts: 3212
Joined: Sat Jun 09, 2012 12:25 pm
Location: Toronto, ON
Contact: Website

Re: How to change port? From /dev/ttyACM0 to /dev/ttyUSB0

Sun Jul 26, 2020 12:25 am

You can't - or at least, not easily.

If a serial device identifies as a Abstract Control Model (ACM) device, the kernel has assigned the name before you can do anything with it. There might be a udev rule you can apply, possibly, to fix the name.

Do you have an application that will only work with /dev/ttyUSB* devices? Because /dev/ttyACM* should behave the same way.
‘Remember the Golden Rule of Selling: “Do not resort to violence.”’ — McGlashan.
Pronouns: he/him

wahid.majri
Posts: 3
Joined: Thu Feb 20, 2020 2:55 pm

Re: How to change port? From /dev/ttyACM0 to /dev/ttyUSB0

Sun Jul 26, 2020 5:32 pm

B.Goode wrote:
Sat Jul 25, 2020 10:17 pm
wahid.majri wrote:
Sat Jul 25, 2020 8:35 pm
How to change port? From /dev/ttyACM0 to /dev/ttyUSB0 in raspberry pi4

Context?

What Operating System is running on your RPi4 board?
Raspbian OS

In what application, tool, utility or programming language do you want to make this change?
python3

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: How to change port? From /dev/ttyACM0 to /dev/ttyUSB0

Sun Jul 26, 2020 5:49 pm

wahid.majri wrote:
Sun Jul 26, 2020 5:32 pm
B.Goode wrote:
Sat Jul 25, 2020 10:17 pm
wahid.majri wrote:
Sat Jul 25, 2020 8:35 pm
How to change port? From /dev/ttyACM0 to /dev/ttyUSB0 in raspberry pi4

Context?

What Operating System is running on your RPi4 board?
Raspbian OS

In what application, tool, utility or programming language do you want to make this change?
python3


With so little information, the only possible answer has to be something vague like "change that string in the script you are using."

Return to “General discussion”