Writing on Serial COM Port through CMD - Permission Denied?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I am trying to flash the Micropython Firmware on my ESP32 via USB via the CMD (admin mode) on Windows 8.
This is what im getting:



C:UsersAdministratorDownloads>esptool.py --port COM3  --baud 460800 write_flash --flash_size=detect 0 esp32-20190207-v1.10-54-g43a894fb4.bin
esptool.py v2.6
Serial port COM3
Traceback (most recent call last):
File "C:Program FilesPython36Scriptsesptool.py-script.py", line 11, in <module>
load_entry_point('esptool==2.6', 'console_scripts', 'esptool.py')()
File "c:program filespython36libsite-packagesesptool.py", line 2952, in _main
main()
File "c:program filespython36libsite-packagesesptool.py", line 2646, in main
esp = ESPLoader.detect_chip(each_port, initial_baud, args.before, args.trace)
File "c:program filespython36libsite-packagesesptool.py", line 258, in detect_chip
detect_port = ESPLoader(port, baud, trace_enabled=trace_enabled)
File "c:program filespython36libsite-packagesesptool.py", line 222, in __init__
self._port = serial.serial_for_url(port)
File "c:program filespython36libsite-packagesserial__init__.py", line 88, in serial_for_url
instance.open()
File "c:program filespython36libsite-packagesserialserialwin32.py", line 62, in open
raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port 'COM3': PermissionError(13, 'Zugriff verweigert*', None, 5)



  • Zugriff verweigert == Permission denied


What can i do here? Im not sure if this is an error on the OS side or on the script - i dont know what could possibly deny me permission when im using admin CMD?




  • i read through this: https://stackoverflow.com/questions/6105182/error-while-opening-port-in-python
    but turning the COM port off and on did not help.










share|improve this question























  • Is the port perhaps in use by another program? Though the error message would probably be different, hm.

    – Daniel B
    Feb 8 at 9:26











  • oh, i had upycraft open, but i thought it would be "disconnected" by deactivating and reactivating the port in device manager. thanks, i didnt think of that

    – Flying Thunder
    Feb 8 at 12:06











  • So is it working now? In that case I’ll add a proper answer.

    – Daniel B
    Feb 8 at 12:32


















0















I am trying to flash the Micropython Firmware on my ESP32 via USB via the CMD (admin mode) on Windows 8.
This is what im getting:



C:UsersAdministratorDownloads>esptool.py --port COM3  --baud 460800 write_flash --flash_size=detect 0 esp32-20190207-v1.10-54-g43a894fb4.bin
esptool.py v2.6
Serial port COM3
Traceback (most recent call last):
File "C:Program FilesPython36Scriptsesptool.py-script.py", line 11, in <module>
load_entry_point('esptool==2.6', 'console_scripts', 'esptool.py')()
File "c:program filespython36libsite-packagesesptool.py", line 2952, in _main
main()
File "c:program filespython36libsite-packagesesptool.py", line 2646, in main
esp = ESPLoader.detect_chip(each_port, initial_baud, args.before, args.trace)
File "c:program filespython36libsite-packagesesptool.py", line 258, in detect_chip
detect_port = ESPLoader(port, baud, trace_enabled=trace_enabled)
File "c:program filespython36libsite-packagesesptool.py", line 222, in __init__
self._port = serial.serial_for_url(port)
File "c:program filespython36libsite-packagesserial__init__.py", line 88, in serial_for_url
instance.open()
File "c:program filespython36libsite-packagesserialserialwin32.py", line 62, in open
raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port 'COM3': PermissionError(13, 'Zugriff verweigert*', None, 5)



  • Zugriff verweigert == Permission denied


What can i do here? Im not sure if this is an error on the OS side or on the script - i dont know what could possibly deny me permission when im using admin CMD?




  • i read through this: https://stackoverflow.com/questions/6105182/error-while-opening-port-in-python
    but turning the COM port off and on did not help.










share|improve this question























  • Is the port perhaps in use by another program? Though the error message would probably be different, hm.

    – Daniel B
    Feb 8 at 9:26











  • oh, i had upycraft open, but i thought it would be "disconnected" by deactivating and reactivating the port in device manager. thanks, i didnt think of that

    – Flying Thunder
    Feb 8 at 12:06











  • So is it working now? In that case I’ll add a proper answer.

    – Daniel B
    Feb 8 at 12:32














0












0








0








I am trying to flash the Micropython Firmware on my ESP32 via USB via the CMD (admin mode) on Windows 8.
This is what im getting:



C:UsersAdministratorDownloads>esptool.py --port COM3  --baud 460800 write_flash --flash_size=detect 0 esp32-20190207-v1.10-54-g43a894fb4.bin
esptool.py v2.6
Serial port COM3
Traceback (most recent call last):
File "C:Program FilesPython36Scriptsesptool.py-script.py", line 11, in <module>
load_entry_point('esptool==2.6', 'console_scripts', 'esptool.py')()
File "c:program filespython36libsite-packagesesptool.py", line 2952, in _main
main()
File "c:program filespython36libsite-packagesesptool.py", line 2646, in main
esp = ESPLoader.detect_chip(each_port, initial_baud, args.before, args.trace)
File "c:program filespython36libsite-packagesesptool.py", line 258, in detect_chip
detect_port = ESPLoader(port, baud, trace_enabled=trace_enabled)
File "c:program filespython36libsite-packagesesptool.py", line 222, in __init__
self._port = serial.serial_for_url(port)
File "c:program filespython36libsite-packagesserial__init__.py", line 88, in serial_for_url
instance.open()
File "c:program filespython36libsite-packagesserialserialwin32.py", line 62, in open
raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port 'COM3': PermissionError(13, 'Zugriff verweigert*', None, 5)



  • Zugriff verweigert == Permission denied


What can i do here? Im not sure if this is an error on the OS side or on the script - i dont know what could possibly deny me permission when im using admin CMD?




  • i read through this: https://stackoverflow.com/questions/6105182/error-while-opening-port-in-python
    but turning the COM port off and on did not help.










share|improve this question














I am trying to flash the Micropython Firmware on my ESP32 via USB via the CMD (admin mode) on Windows 8.
This is what im getting:



C:UsersAdministratorDownloads>esptool.py --port COM3  --baud 460800 write_flash --flash_size=detect 0 esp32-20190207-v1.10-54-g43a894fb4.bin
esptool.py v2.6
Serial port COM3
Traceback (most recent call last):
File "C:Program FilesPython36Scriptsesptool.py-script.py", line 11, in <module>
load_entry_point('esptool==2.6', 'console_scripts', 'esptool.py')()
File "c:program filespython36libsite-packagesesptool.py", line 2952, in _main
main()
File "c:program filespython36libsite-packagesesptool.py", line 2646, in main
esp = ESPLoader.detect_chip(each_port, initial_baud, args.before, args.trace)
File "c:program filespython36libsite-packagesesptool.py", line 258, in detect_chip
detect_port = ESPLoader(port, baud, trace_enabled=trace_enabled)
File "c:program filespython36libsite-packagesesptool.py", line 222, in __init__
self._port = serial.serial_for_url(port)
File "c:program filespython36libsite-packagesserial__init__.py", line 88, in serial_for_url
instance.open()
File "c:program filespython36libsite-packagesserialserialwin32.py", line 62, in open
raise SerialException("could not open port {!r}: {!r}".format(self.portstr, ctypes.WinError()))
serial.serialutil.SerialException: could not open port 'COM3': PermissionError(13, 'Zugriff verweigert*', None, 5)



  • Zugriff verweigert == Permission denied


What can i do here? Im not sure if this is an error on the OS side or on the script - i dont know what could possibly deny me permission when im using admin CMD?




  • i read through this: https://stackoverflow.com/questions/6105182/error-while-opening-port-in-python
    but turning the COM port off and on did not help.







windows usb permissions cmd.exe com






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 8 at 9:19









Flying ThunderFlying Thunder

1105




1105













  • Is the port perhaps in use by another program? Though the error message would probably be different, hm.

    – Daniel B
    Feb 8 at 9:26











  • oh, i had upycraft open, but i thought it would be "disconnected" by deactivating and reactivating the port in device manager. thanks, i didnt think of that

    – Flying Thunder
    Feb 8 at 12:06











  • So is it working now? In that case I’ll add a proper answer.

    – Daniel B
    Feb 8 at 12:32



















  • Is the port perhaps in use by another program? Though the error message would probably be different, hm.

    – Daniel B
    Feb 8 at 9:26











  • oh, i had upycraft open, but i thought it would be "disconnected" by deactivating and reactivating the port in device manager. thanks, i didnt think of that

    – Flying Thunder
    Feb 8 at 12:06











  • So is it working now? In that case I’ll add a proper answer.

    – Daniel B
    Feb 8 at 12:32

















Is the port perhaps in use by another program? Though the error message would probably be different, hm.

– Daniel B
Feb 8 at 9:26





Is the port perhaps in use by another program? Though the error message would probably be different, hm.

– Daniel B
Feb 8 at 9:26













oh, i had upycraft open, but i thought it would be "disconnected" by deactivating and reactivating the port in device manager. thanks, i didnt think of that

– Flying Thunder
Feb 8 at 12:06





oh, i had upycraft open, but i thought it would be "disconnected" by deactivating and reactivating the port in device manager. thanks, i didnt think of that

– Flying Thunder
Feb 8 at 12:06













So is it working now? In that case I’ll add a proper answer.

– Daniel B
Feb 8 at 12:32





So is it working now? In that case I’ll add a proper answer.

– Daniel B
Feb 8 at 12:32










0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1403461%2fwriting-on-serial-com-port-through-cmd-permission-denied%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1403461%2fwriting-on-serial-com-port-through-cmd-permission-denied%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Plaza Victoria

Puebla de Zaragoza

Musa