본문 바로가기

카테고리 없음

Opening A Serial Port

I am having the same issue that started this post. Although the solution posted is not appropriate for what is going on. The Photon is COM3 on my Win 7 machine. I flash and test the Photon and use puTTY to obtain debug information. Then I update the firmware, re-flash the Photon, and start a new puTTY session. Since the Photon will disconnect and reconnect COM3 when it reboots after flashing, I close the puTTY session and start another.

Open Serial Port Ubuntu

Opening

But I can’t start another debug session because I get the same “Unable to open connection to COM3 Unable to open serial port”.message. I have to reboot the Win 7 machine to start another debug session which certainly takes forever. Can’t do many debug runs if you have to reboot the main computer each time. I attempted to disable and enable the COM3 port using the device manager on Windows. But it just hung trying to disable COM3. Although aborting the process and trying again did show COM3 as disabled. Enabling the port also hung and stopping and starting the manager once again, showed the device enabled again.

But it still would not allow access to COM3.Any suggestions on what else to try? I am not sure where the COM3 driver for the Photon is coming from.

Maybe there is another driver to use that might not cause COM3 to hang up like it is now. Could someone please help me with a similar issue? Using Windows 10 and Putty. All worked fine and then I noticed I was using a different com port to get things working. Then no com port worked. I changed PC and all fine again until the com port changes, then it doesn’t work at all.

I have tried restarting both PCs. With my photon connected via USB, I see nothing in Device manager. When I click View/Show Hidden Devices, I see Ports 4 and 5 associated with the photon but both greyed out. I have tried uploading the driver but my PC confirms I am using the most recent.

C# open serial port

How can I get this working again please? I use putty as my output window to understand what the code is doing so this has effectively stopped my development. Best regards, James.