Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-07-2013, 01:34 PM   #1
LQ Newbie
Registered: Jan 2013
Posts: 3

Rep: Reputation: Disabled
Sniffing AT Commands over COM port redirector

So I have this project I'm looking to do. I'd like to monitor the AT Commands sent to a phone while running a PST like CDMA Workshop, QPST, DFS CDMA Tool, etc.

I would like to learn what commands are sent while using the program. My goal would be to learn proprietary modem commands to manually flash phones, and maybe write my own PST.

I'm still undecided on how to go about this. Currently I'm considering redirecting the serial port over TCP and sniffing the packets. I'm not sure if this would be practical. I would run Windows in a virtual machine on Linux or Mac OSX and use com2tcp and ser2net.

Alternatively, I'd like to know if I can fork the virtual serial connection to echo the AT Commands sent, so I can avoid sniffing packets.

Or is a COM port redirector even necessary? I tried API Monitor and couldn't figure it out.

A tutorial would be nice, but a simple general overview would be appreciated.

Thanks, and Mahalo!

Last edited by chuckecheese; 01-07-2013 at 03:53 PM.
Old 01-07-2013, 03:44 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Not quite a software-only system, but have a look at serlook

--- rod
Old 01-07-2013, 03:53 PM   #3
LQ Newbie
Registered: Jan 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
THANKYOU!!!! This definitely looks like what I want. I'll chime back in with the results at a later date. Marking this [SOLVED].
Old 02-05-2013, 10:10 PM   #4
LQ Newbie
Registered: Jan 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Alright, success! I used socat and com2tcp on two boxes (vms), Windows and Debian.

I'm actually doing this on a mac (Mountain Lion 10.8.2). On the mac I'm running two guest operating systems with VirtualBox, Windows XP and Debian. The phone (sch-u460) is plugged in and hooked to the Windows guest. It shows as COM7 in Device Manager.

COM2TCP and TCP2COM are both open on my Windows guest, ready to connect. COM2TCP is pointing to my Debian guest, port 6666, and creates a COM10 port. TCP2COM is hooked to COM7 (my phone) and listening on port 5555.

On my Debian guest, I type:

socat -x -v tcp-l:6666 tcp: being my Windows host. Then I connect to CDMA Workshop on COM10 and walah! Socat dumps the communication in hex and ascii.

Last edited by chuckecheese; 02-05-2013 at 10:12 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Packet Redirector on Server dreamer2000 Linux - Server 0 09-04-2010 12:30 PM
squid redirector nkhetia Linux - Server 2 06-12-2008 01:33 AM
Squid+Clam+Redirector depam Linux - Software 1 02-16-2006 04:57 AM
Squidclam redirector problem piyush Linux - Security 2 02-16-2006 01:05 AM
Snort sniffing specific port and network protocol Palula Linux - Software 1 01-06-2006 02:33 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration