Jump to content

Sending AT commands to device connected to USB

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
susotest

susotest

    Newbie

  • Members
  • Pip
  • 2 posts
Hi All,

I want to send AT commands to device( I am using Sony erricson Mobile phone) connected to USB port. I am planing an application which sends me message monitoring system performance.

Eg- Monitoring disk space and if it exceeds a limit I need to get a message from the mobile phone connected to the system.

I know the AT commands to achieve this,but sending AT commands from a C program is new to me.

Thanks to you all in advance for the help.

SO

#2
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
You need to figure out which com port it is using and send the commands to that com port via C++. Are you using ANSI C++?

#3
susotest

susotest

    Newbie

  • Members
  • Pip
  • 2 posts
Hi Lop,

Thanks a lot.
I would like to clarify on this.
You ment to say the outportb() fucntion to send the commands?
Eg outportb(0x3XY,AT);

kind of sequence?

Apologies I am not much sure whether AT commands are interpreted by the device or the application we use ( Hyper terminal mostly) that makes me confused.

Appreciate if you can explain a little more on this.

I am Borland Turbo C++.

Thanks again
SO

#4
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,720 posts
Try linking to the phone's device driver (should be a .dll) and interfacing through that.