#Could not open port

3 messages · Page 1 of 1 (latest)

languid apex
#

I'll apologize now if this is a simple issue, but I haven't been able to find any resolutions so far. I'm setting up my first fpv drone, but I'm having an issue updating the receiver. As far as I can tell, the betaflight configuration is correct, but any time I try to flash the reciever using the confugurator, I get the error could not open port 'COM4': PermissionError(13, 'Access is denied.', None, 5) . I had the same issue when I tried updating my radio (radiomaster zorro), but I was able to get around it by using wifi.

I have the speedybee f7 v3 stack and I've hooked up the radiomaster rp3 elrs reciever. They've paired and betaflight shows signals from the radio, but I can't get the motors to actually move. I figured maybe it was a mismatch with the firmware, but that's when I ran into this issue. Here's the logs from the attempted flash:

  Trying to initialize COM4 @ 420000

Traceback (most recent call last):
  File "runpy.py", line 196, in _run_module_as_main
  File "runpy.py", line 86, in _run_code
  File "C:\Users\Colby\AppData\Roaming\ExpressLRS Configurator\firmwares\cloud\ExpressLRS\e051b89b23b5935b959ea9beddf685d857d03af9\firmware\flasher.pyz\__main__.py", line 3, in <module>
    if __name__ == '__main__':
  File "C:\Users\Colby\AppData\Roaming\ExpressLRS Configurator\firmwares\cloud\ExpressLRS\e051b89b23b5935b959ea9beddf685d857d03af9\firmware\flasher.pyz\_bootstrap\__init__.py", line 253, in bootstrap
  File "C:\Users\Colby\AppData\Roaming\ExpressLRS Configurator\firmwares\cloud\ExpressLRS\e051b89b23b5935b959ea9beddf685d857d03af9\firmware\flasher.pyz\_bootstrap\__init__.py", line 38, in run
  File "C:\Users\Colby\.shiv\flasher.pyz_24c8ee4b3e4fafa15bf18e5f5d76b2a15f6726b455829fe9ef84f534d078f803\site-packages\binary_configurator.py", line 413, in main

    return binary_flash.upload(options, args)
  File "C:\Users\Colby\.shiv\flasher.pyz_24c8ee4b3e4fafa15bf18e5f5d76b2a15f6726b455829fe9ef84f534d078f803\site-packages\binary_flash.py", line 165, in upload
    return upload_esp8266_bf(args, options)
  File "C:\Users\Colby\.shiv\flasher.pyz_24c8ee4b3e4fafa15bf18e5f5d76b2a15f6726b455829fe9ef84f534d078f803\site-packages\binary_flash.py", line 89, in upload_esp8266_bf
    retval = BFinitPassthrough.main(['-p', args.port, '-b', str(args.baud), '-r', options.firmware, '-a', mode, '--accept', args.accept])
  File "C:\Users\Colby\.shiv\flasher.pyz_24c8ee4b3e4fafa15bf18e5f5d76b2a15f6726b455829fe9ef84f534d078f803\site-packages\BFinitPassthrough.py", line 188, in main
    bf_passthrough_init(args.port, args.baud)
  File "C:\Users\Colby\.shiv\flasher.pyz_24c8ee4b3e4fafa15bf18e5f5d76b2a15f6726b455829fe9ef84f534d078f803\site-packages\BFinitPassthrough.py", line 45, in bf_passthrough_init
    s = serial.Serial(port=port, baudrate=115200,
  File "C:\Users\Colby\.shiv\flasher.pyz_24c8ee4b3e4fafa15bf18e5f5d76b2a15f6726b455829fe9ef84f534d078f803\site-packages\serial\serialwin32.py", line 33, in __init__
    super(Serial, self).__init__(*args, **kwargs)
  File "C:\Users\Colby\.shiv\flasher.pyz_24c8ee4b3e4fafa15bf18e5f5d76b2a15f6726b455829fe9ef84f534d078f803\site-packages\serial\serialutil.py", line 244, in __init__
    self.open()
  File "C:\Users\Colby\.shiv\flasher.pyz_24c8ee4b3e4fafa15bf18e5f5d76b2a15f6726b455829fe9ef84f534d078f803\site-packages\serial\serialwin32.py", line 64, in open
    raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port 'COM4': PermissionError(13, 'Access is denied.', None, 5)

I've running as admin, but it didn't make a difference. I'm not sure what I'm missing.

Thanks in advance for any help.

high belfry
#

What does the ELRS lua show on your radio? What is the receiver LED doing?

#

You need to close Betaflight and any other programs that are using the COM port (eg Cura) before flashing with ELRS Configurator. Unplug everything, close Betaflight, then plug in USB and flash. Follow the flashing guide: https://www.expresslrs.org/quick-start/receivers/radiomaster-rp-2400/

ExpressLRS aims to provide the best completely open, high refresh radio control link while maintaining a maximum achievable range at that rate with low latency. Vast support of hardware in both 900 MHz and 2.4 GHz frequencies.