LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 02-05-2013, 07:21 AM   #1
B Akshay
Member
 
Registered: Sep 2012
Posts: 39

Rep: Reputation: Disabled
Passing AT commands to Phone through USB using Python


Hello,
I want to send AT commands to my mobile through USB using python(On windows7). Is it possible using USB??

which module should be used for it pyUSB, pySERIAL or pyVISA.

After searching a lot on net, i got confused and mixed one or more things in a single program. I just want to send the basic AT commands (on-off) to the mobile.


Thanks in Advance!!!
 
Old 02-05-2013, 07:49 AM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,926

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
First, you should test it with minicom or similar program.
 
Old 02-05-2013, 12:08 PM   #3
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,974

Rep: Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555
Er, are you sure your cellphone takes AT commands? Cellphones are not modems.

Last edited by dugan; 02-05-2013 at 12:11 PM.
 
Old 02-05-2013, 12:24 PM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,926

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
(No, but some of them have integrated modems.)
 
Old 02-05-2013, 12:39 PM   #5
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,974

Rep: Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555Reputation: 1555
This is for serial, not USB, but it's still relevant:

http://pypi.python.org/pypi/pygsm/0.1
 
Old 02-05-2013, 11:09 PM   #6
B Akshay
Member
 
Registered: Sep 2012
Posts: 39

Original Poster
Rep: Reputation: Disabled
1. The cell phone takes the AT commands.
2. Working fine with Hyper-terminal, but want to make work using python.

I am going through the links provided.
Do the above mentioned modules will be useful for the same??


Thanks for your time......
 
  


Reply


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
Passing Parameter from Bash to Python cleteb Programming 3 12-03-2012 08:13 PM
[SOLVED] Passing commands to a running daemon? yaplej Programming 6 05-11-2010 07:39 PM
Passing commands via ssh Comatose51 Linux - Security 1 04-13-2005 05:31 PM
Passing multiple commands to SU adamrad Linux - General 2 03-26-2004 11:53 AM
passing terminal commands joey Linux - General 3 03-21-2002 12:24 PM


All times are GMT -5. The time now is 04:09 PM.

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