LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 10-04-2007, 05:37 AM   #1
lavanya.ks
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Rep: Reputation: 0
Unhappy where to find API for modems


Hi all, As I am new to embedded linux, i want some tutorial links on "how to write APIs for different types of modems". So please help me by posting the links.
 
Old 10-05-2007, 03:54 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
What kind of modem do you mean and what direction (network to device or device to user)?
 
Old 10-05-2007, 11:56 PM   #3
lavanya.ks
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
communication modems

I want APIs for communication modems such as GSM/GPRS modem, PLCC modem and for PSTN.
 
Old 10-06-2007, 04:41 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
So you're going for AT commands (Hayes)? The sets are different from one network type to another, but you an start from the GSM/GPRS ones, which are on the 3gpp site. You may start from 7.07 here: http://www.3gpp.org/ftp/Specs/html-info/0707.htm (get the latest version). Note that nearly every vendor adds some extra commands...
 
Old 10-08-2007, 12:37 AM   #5
lavanya.ks
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Implimentation of AT commands

I have the AT command set. Actually i wanted to know about how to impliment them in Application program APIs and in kernel to make data transfer.
 
Old 10-08-2007, 03:28 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
First, you do not transfer data using AT commands. You only use them to estabilish connection of some kind. Then, using an external application you build an TCP/IP (or other) connection to transfer your data. Can be done using standard tools available in the system (pppd, especially).

If you plan only data transfers you probably don't need any special management of the commands, so they may be simply passed to the port when something requests a connection. If you plan to use a wider set, it becomes more complicated (waiting for one command to finish, breaking commands and so on).

Second thing: it's hard for me to imagine a situation when you need at commands in the kernel. It's application level and that's the way it is usually (99.9%) designed.
 
Old 10-08-2007, 11:59 PM   #7
lavanya.ks
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
I thought of using AT+CMGS command to send data to other host. Will it work? or any other suggestion on the same?
 
Old 10-09-2007, 01:58 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
at+cmgs sends and SMS. If you want to transfer your data this way, you can do it, but only if you plan small transfers. When they're bigger, you need to build partial SMSes on your own.
 
  


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
kppp will not find my modems mikeymouse Mandriva 2 06-23-2006 04:10 AM
Need to find an API for programming NetBEUI under Window paulsm4 Programming 3 03-07-2006 08:23 AM
Where can i find documentation abt Mozilla API???? tuxfood Programming 1 12-21-2005 11:55 PM
Cannot find API docs for libdvdnav and libdvdread LANLocked Programming 3 10-04-2004 10:12 AM
Which PCI modems do you find actually work with Linux? masinick Linux - Hardware 12 01-20-2003 08:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 04:56 AM.

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
Open Source Consulting | Domain Registration