Windows 10: Auto-Execute python code when a USB serial cable is plugged in

Discus and support Auto-Execute python code when a USB serial cable is plugged in in Windows 10 Drivers and Hardware to solve the problem; I am writing a python code to communicate with Arduino Uno through a USB serial port and I want to run the python code automatically when I plug the... Discussion in 'Windows 10 Drivers and Hardware' started by mo99x, Dec 29, 2022.

  1. mo99x Win User

    Auto-Execute python code when a USB serial cable is plugged in


    I am writing a python code to communicate with Arduino Uno through a USB serial port and I want to run the python code automatically when I plug the serial cable in order to record the data automatically. Is there a way ????

    :)
     
    mo99x, Dec 29, 2022
    #1

  2. Prolific USB-Serial


    Thanks.

    Have now got things working in a rather 'round-about' way.

    I have 2 USB - Serial Interface cables.


    1. The older which used to previously work on Windows 10 still works OK on a Windows XP Laptop proving that the interface is still functional.
    2. The newer interface cables when connected to Windows 10 automatically installs the drivers & works on Windows 10, but will not work on Windows XP (I don't have a driver disk for this cable but it is CH340 v3.4.2014.8)
    3. If I uninstall all relevant drivers, then install my original Vista Driver v3.2.0. & plug in the interface cable, Windows 10 will then update drivers BUT with Code 10 error. If I now update drivers back to v3.2.0.0 it works & I have a singe interface cable that works on both Windows 10 & Windows XP


      Auto-Execute python code when a USB serial cable is plugged in [​IMG]


      However, when I unplug the cable & re-insert, Windows 10 will automatically update the drivers to the NON-Working ones & I have to then re-select the v3.2.0.0 ones every time.

      Is there a way to stop Windows 10 from updating these drivers every time the cable is inserted?
      I've tried changes the System settings for updates but without success.

    Auto-Execute python code when a USB serial cable is plugged in [​IMG]
     
    WightWalker, Dec 29, 2022
    #2
  3. Brink Win User
    Python in Visual Studio Code - January 2019 Release


    Read more: Python in Visual Studio Code Python at Microsoft
     
    Brink, Dec 29, 2022
    #3
  4. Brink Win User

    Auto-Execute python code when a USB serial cable is plugged in

    Python in Visual Studio Code - January 2019 Release

    Read more: Python in Visual Studio Code Python at Microsoft
     
    Brink, Dec 29, 2022
    #4
Thema:

Auto-Execute python code when a USB serial cable is plugged in

Loading...
  1. Auto-Execute python code when a USB serial cable is plugged in - Similar Threads - Auto Execute python

  2. Auto-Execute EXE in Window When USB Plugged In

    in Windows 10 Gaming
    Auto-Execute EXE in Window When USB Plugged In: Hi,Is there c# code snippet or any way to execute exe program in window when USB is plugged in?Thanks, https://answers.microsoft.com/en-us/windows/forum/all/auto-execute-exe-in-window-when-usb-plugged-in/4c5fb3fb-45c7-4317-95ea-7f9faaf2f398
  3. Auto-Execute EXE in Window When USB Plugged In

    in Windows 10 Software and Apps
    Auto-Execute EXE in Window When USB Plugged In: Hi,Is there c# code snippet or any way to execute exe program in window when USB is plugged in?Thanks, https://answers.microsoft.com/en-us/windows/forum/all/auto-execute-exe-in-window-when-usb-plugged-in/4c5fb3fb-45c7-4317-95ea-7f9faaf2f398
  4. Auto-Execute EXE in Window When USB Plugged In

    in Windows 10 Network and Sharing
    Auto-Execute EXE in Window When USB Plugged In: Hi,Is there c# code snippet or any way to execute exe program in window when USB is plugged in?Thanks, https://answers.microsoft.com/en-us/windows/forum/all/auto-execute-exe-in-window-when-usb-plugged-in/4c5fb3fb-45c7-4317-95ea-7f9faaf2f398
  5. Auto-Execute python code when a USB serial cable is plugged in

    in Windows 10 Gaming
    Auto-Execute python code when a USB serial cable is plugged in: I am writing a python code to communicate with Arduino Uno through a USB serial port and I want to run the python code automatically when I plug the serial cable in order to record the data automatically. Is there a way ????...
  6. Auto-Execute python code when a USB serial cable is plugged in

    in Windows 10 Software and Apps
    Auto-Execute python code when a USB serial cable is plugged in: I am writing a python code to communicate with Arduino Uno through a USB serial port and I want to run the python code automatically when I plug the serial cable in order to record the data automatically. Is there a way ????...
  7. USB to Serial Cable Not Working after update

    in Windows 10 Gaming
    USB to Serial Cable Not Working after update: Hello everyone,My PC runs a gate software named DoorKing. I have a USB to Serial cable that talks to the box. It has worked for well over a year now. Sometime in the last week or so they stopped talking.What I have done: checked usb port with other plug and play devices and...
  8. USB to Serial Cable Not Working after update

    in Windows 10 Software and Apps
    USB to Serial Cable Not Working after update: Hello everyone,My PC runs a gate software named DoorKing. I have a USB to Serial cable that talks to the box. It has worked for well over a year now. Sometime in the last week or so they stopped talking.What I have done: checked usb port with other plug and play devices and...
  9. Auto-Execute EXE When USB Plugged In

    in Windows 10 Network and Sharing
    Auto-Execute EXE When USB Plugged In: Is there any way to auto-execute an exe program without using any 3rd party software?I want to execute a Software when a USB device is plugged in.As soon as I plugin the USB the exe should execute and will show a Welcome Screen GUI.The application is developed in .NET Core...
  10. BSOD when plugging in USB serial adapter

    in Windows 10 Drivers and Hardware
    BSOD when plugging in USB serial adapter: This is the error I see: Stop Code: WDF_VIOLATION what failed: UDE.sys This happens whenever I plug in a usb->serial adapter. This device works fine on all of my other PCs. How can I resolve this?...