Linux - Embedded & Single-board computerThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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...
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.