Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am writing device driver and i am completely new to this concept. My Driver functionality is when i connect modem to usb my driver should detect Connected modem and get display the signal strength. How can i do that using AT commands. Modem is CDMA modem. Help Me please

share|improve this question

1 Answer 1

In general the standard command to get the signal quality is AT+CSQ?

How you dialogue with your modem really depends on your specific modem. Usually the modem would be seen as a "normal" serial port if an internal usb to serial is present (so you would have something like /dev/ttyUSB0 or /dev/ttyUSBx) or eventually as a CDC device (so you would see a /dev/ttyACM0 or /dev/ttyACMx). You should open this serial device (with correct bauding and so on) and send the AT commands there and read the responses.

To know what (and even if) the modem device to use it I could suggest to do a "dmesg" after plugging the modem and you should hopefully see some messages pointing at the detected device.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.