Windows 10: Batch Program that Sends Hex String to Serial Port

Discus and support Batch Program that Sends Hex String to Serial Port in Windows 10 Network and Sharing to solve the problem; Hello, I am trying to create a simple batch program that will send a hex code (0xF5 0x00 0x01 0x02 0x02 0x01 0x06) out of COM1 at 9600 baud 8 bits No... Discussion in 'Windows 10 Network and Sharing' started by aidancar, Sep 19, 2018.

  1. aidancar Win User

    Batch Program that Sends Hex String to Serial Port


    Hello, I am trying to create a simple batch program that will send a hex code (0xF5 0x00 0x01 0x02 0x02 0x01 0x06) out of COM1 at 9600 baud 8 bits No Parity 1 stop. I have tried to search up some methods already with no success. I have been able to send this code successfully using a terminal program I downloaded, however I need my computer to be able to automatically send it (by running the batch file). Does anybody have an idea of how I can get this to work? Here is one of the methods I have tried:

    mode com1:9600,N,8,1

    echo 0xF5 0x00 0x01 0x02 0x02 0x01 0x06 >com1

    I have also tried putting quotes around the hex string with no luck, as well as a method using Powershell with many errors. Any help would be appreciated, thanks!



    :)
     
    aidancar, Sep 19, 2018
    #1
  2. IggSter Win User

    How to factory reset Cisco 1700 Router

    Hopefully I can help you here....its a very common thing to happen.


    First, I take it you dont know the passwords for console access or telnet/ssh?

    I will assume that these devices belong to you.

    step 1. Plug a cisco console cable into a serial port on your pc
    step 2. Plug other end into Cisco console port
    step 3. Using hyperterm or putty or similar connect to the serial port
    step 4. boot router, and make sure you clearly can see the output (this confirms you have good serial comms)
    step 5. if this fails, adjust the comm port settings (9600, 8,1,n are the default)
    step 6. now you have to do the only hard part...send the break command:

    Break command list: Break Commands

    Go down the list and match your OS and SW and try the sequence suggested.

    If this fails several times do what I do: Install putty (free) and then to send a break so you can get into rommom just hit "ctrl-a b".
     
    IggSter, Sep 19, 2018
    #2
  3. Yellow ! next to Prolific USB-to-Serial Com Port (COM3)

    Hi John,



    Welcome to Microsoft Community and thank you for posting your query.



    Based on your description, the issue seems like HooToo USB port driver is outdated. Let’s try simple steps and check if this help.



    I recommend you to update the HooToo USB port driver and check if this helps. Follow the below steps.


    • Press Windows key + X and click on
      Device manager
      .

    • Click on Universal Serial Bus to expand and right click on the port device and click on
      Update.
    If the issue still persist, I suggest you to go to the USB manufacturer website and install the driver for Windows 10. If the available USB driver is not for Windows 10, try installing the driver in compatibly mode and check.

    HooToo Support Downloads




    • Right-click on the setup file of the driver and select Properties.

    • Select Compatibility tab.

    • Check Run this program in Compatibility mode.

    • Let the driver install and then check the functionality.
    Hope this helps. If you need further assistance with Windows, let us know and will be glad to help.
     
    Billion Debbarma, Sep 19, 2018
    #3
  4. Batch Program that Sends Hex String to Serial Port

    E60 Bluetooth Serial port profile not detected

    Hi,

    The Nokia site lists that E60 supports Serial port profile, but when I try to browse the phone services on my pc (with bluetooth adapter), it does not list Serial port profile! I would not blame the bluetooth adapter, because it finds serial port profile (SPP)
    on my wife's phone and all other services on my E60! Do I need to do something special to enable SPP on the E60?

    Anand
     
    kanandkumar, Sep 19, 2018
    #4
Thema:

Batch Program that Sends Hex String to Serial Port

Loading...
  1. Batch Program that Sends Hex String to Serial Port - Similar Threads - Batch Program Sends

  2. Serial Number for Win10 shows as "default string"?

    in Windows 10 Gaming
    Serial Number for Win10 shows as "default string"?: I am replacing the ssd of my machine, it is inoperable at this time so I am not able to boot it to access the number. When I log in here, it shows the device registered but the serial number just say default string. How do I get windows installed on my new ssd if I don't have...
  3. Serial Number for Win10 shows as "default string"?

    in Windows 10 Updates and Activation
    Serial Number for Win10 shows as "default string"?: I am replacing the ssd of my machine, it is inoperable at this time so I am not able to boot it to access the number. When I log in here, it shows the device registered but the serial number just say default string. How do I get windows installed on my new ssd if I don't have...
  4. Serial port data transmission and communication using batch file.

    in Windows 10 Gaming
    Serial port data transmission and communication using batch file.: Hello,I have been working on an Arduino project which involves sending data of a sensor to my PC via a serial port. The ideal goal is to achieve this using a batch file that can read the data coming from the serial port and record them in a .txt file. In addition to that, I...
  5. Serial port data transmission and communication using batch file.

    in Windows 10 Software and Apps
    Serial port data transmission and communication using batch file.: Hello,I have been working on an Arduino project which involves sending data of a sensor to my PC via a serial port. The ideal goal is to achieve this using a batch file that can read the data coming from the serial port and record them in a .txt file. In addition to that, I...
  6. Serial Port Driver

    in Windows 10 Drivers and Hardware
    Serial Port Driver: I need to install a serial port driver. Where can I find such a driver? https://answers.microsoft.com/en-us/windows/forum/all/serial-port-driver/4a31f06a-0c90-4c1d-9379-6e1b6d982898
  7. Serial com ports.

    in Windows 10 Drivers and Hardware
    Serial com ports.: I am trying to use a USB-RS232 lead on my laptop. I cannot create any COM ports and none are there by default. If I try this on my desktop it works perfectly. When trying to create a COM port I get an invalid parameter error and the creation fails Windows 10 Home...
  8. BSOD serial-port

    in Windows 10 BSOD Crashes and Debugging
    BSOD serial-port: BSOD when the program Siemens STARTER using the serial-port. 77830
  9. String with spaces in set /p (batch file)

    in Windows 10 Software and Apps
    String with spaces in set /p (batch file): Hi! I would like to let a user type in things with spaces in set /p. This is the code I currently have that does not work: Code: :newdoc2 cls echo What do you want to say? set saynew=%randomnum% set /p saynew= if %saynew% == %randomnum% goto newdoc2 echo "%saynew%"...
  10. Are Serial Ports Available ?

    in Windows 10 Drivers and Hardware
    Are Serial Ports Available ?: I have a Shuttle (SH67) Computer running WIN10, 64 bit, for an O/S. Are there cards available to give me Serial Ports ? A Google search was useless !! Thanks, Richard S. 31197

Users found this page by searching for:

  1. how to send hex with batch to com

    ,
  2. windows batch send string to com port