1

like this command: *342*55*225*5#

I installed Ubuntu and minicom on it. I tried to follow the guide written in this article, but I was blocked because when I entered AT and clicked enter, it did not respond...

On python I was following up a method but when I entered this command

comport = serial.Serial('ttyUSB4')

I got this error :

self.fd = os.open(self.portstr, os.O_RDWR|os.O_NOCTTY|os.O_NONBLOCK)
OSError: [Errno 2] No such file or directory: 'ttyUSB4'
tumultous_rooster
  • 12,150
  • 32
  • 92
  • 149

1 Answers1

0

Try to provide full path to device:

comport = serial.Serial('/dev/ttyUSB4')

But prefer udev paths, they will not change if you plug in devices in other order:

comport = serial.Serial('/dev/serial/by-id/<nameofyourdevice>')
Arpegius
  • 5,817
  • 38
  • 53