How to send AT Commands to device connected through USB Port

A

Amit Kumar Garg

Hi,

I am having a Windows mobile 5.0 smartphone and it connects with the
computer through a USB port. I want to send AT commands to this device
but Hyper terminal seems to be supporting only serialport
communication. I want to make an application in .net that can do this
for me. How to send AT commands through USB port.



Thanks

Amit
 
C

chris-s

You might find that on connecting the device a 'virtual' serial port
is mapped to the USB device. Try using this 'virtual' serial port.

Chris
 
D

Dick Grier

Hi,

You can only send such commands to a device that implements a virtal serial
port, via its device driver. ActiveSync the connection mechanism between a
WM5 device and the PC. This does NOT implement a virtal serial port.
Also... you would have to have software on the WM5 device to receive and
interpret those commands. What software might that be?

Some smartphones may be uses as modems, though this normally is done using a
Bluetooth connection, and it for some models this might be possible though
an ActiveSync connection (though this would use networking APIs, not serial
APIs). For information on this sort of thing, you might want to look at:
http://msmobiles.com/news.php/2457.html

Google may give you some additional leads.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 
G

Guest

Amit,
You can easily write a TCPClient application for the device using the
default Active Sync TCP address. I think the default address is
169.254.2.193 (I once found this in a MSDN article). You would then connect
to a server component. I used the TCPListener class to asynchronously listen
for connections on the desktop. You then send the data to the client. The
device uses the stream capabilities of the TCPClient to receive and then
interprets the data, and then it send the AT commands to your hardware device.

Rick D.
Contractor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top