Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2812

How can i activate AT Command in wsl

$
0
0

I HAVE PROPLEM IN WSL < AFTER I WROTE CODE ITS CANT GIVE ME COMMAND ATand its give not found, need some help.iam testing my code and be alright is the proplem in driver or my code

#!/bin/bash# Define the serial device (update with your device name)SERIAL_DEVICE=/dev/ttyUSB0  # Adjust based on your device# Open the serial deviceexec 3<> $SERIAL_DEVICE# Send AT commandsecho -e "AT\r" >&3sleep 1echo -e "ATI\r" >&3  # Example command to get modem informationsleep 1# Read responsecat <&3# Close the serial deviceexec 3>&-exec 3<&-

Viewing all articles
Browse latest Browse all 2812

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>