Giter Site home page Giter Site logo

atdriver's Introduction

========
atdriver
========

atdriver is a linux kernel driver and tty line discipline that sends and
receives sms over AT commands.

XXX : This is still in development, so to be used with caution

Build
=====

Simply run :
$ make

The resulting objects can be find in ./build :
	- ./build/attest/attest is a test application
	- ./build/simulAT/simulAT is a AT command device simulator for sending
	  and receiving sms
	- ./build/atdriver/at.ko is the actual device driver

Compilation Configuration
=========================

All config for compilation can be found in Conf/ directory. You can make a
config file here for your target, for example <target>.mk, then to compile
it you have to run :

$ make CONF=<target>

Configuration var :
-------------------

- CC is the compiler used to make objects
- CFLAGS are compiler flags
- LD is the linker used to link objects
- LDFLAGS are linker flags
- MAKE is the make binary
- DESTDIR is the directory where objects are compiled
- KFLAGS these are compiler flags passed when building in the kernel
- KMFLAGS are flags passed to the kernel makefiles


at.ko
=====

at.ko should be built in ./build/atdriver/at.ko this is the proper kernel
module. This provides line discipline to send sms.

To use it you simply have to londe the kernel module :

$ insmod at.ko

attest
======

Should be built in ./build/attest/attest. This provides unitary tests for at.ko
kernel tty line discipline. You should run it this way :

$ ./attest <tty>

Where <tty> is the gsm device (can be a gsm simulator such as the one provided
with these sources named simulAT).


simulAT
=======

This is a sms gsm device simulator, this will create a virtual tty through where
you can send very basic AT commands.

This is often used with attest to test the at line discipline. Run it this way

$ ./simulAT

This should print the created virtual tty number. Then you can use
./attest <the_previous_tty_nb> in order to test the at.ko driver.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.