i'm using simcom 800h cellular module beaglebone black similar popular simcom 900. want 2 main things simcom module
- use @ commands configure settings , send , receive messages
- use ppp enable internet access on bbb through gprs.
now obvious problem cannot both @ same time. did web search , found following posts
the 2nd link has been particularly useful 1 of user has used code on repository.
the common theme has been use n_gsm
module. tried load module using modprobe n_gsm
, failed. user mentioned bbb doesn't include n_gsm module default had go , build new kernel n_gsm added module. i'm having issues including n_gsm
module. here steps followed
- i followed this tutorial , downloaded right linux headers bbb.
i tried compile module linux lkm (loadable kernel module) follows
i downloaded n_gsm.c here
- the
n_gsm.c
file had includes missing in bbb. downloaded them. - i created makefile. directory had
n_gsm.c
,makefile
makefile
obj-m += n_gsm.o all: make -c /lib/modules/$(shell uname -r)/build m=$(pwd) modules clean: make -c /lib/modules/$(shell uname -r)/build m=$(pwd) clean
this generated errors shown in figure
i able load different module shown in this (the hello world of kernel modules). dont understand why need recompile entire linux kernel create lkm.
i feel i'm making obvious errors looks people able load module successfully.
is right way load module ,
n_gsm
. there isn't document/tutorial on this.is there simpler way multiplexing in case thisdoes not workout? idea of @ commands sms , ppp gprs (instead of @ commands both).
any tips , suggestions helpful!
edit1 : details bbb
- kernel - linux beaglebone 3.8.13-bone79
- distro - debian 7.9 (wheezy)
edit 2 : added details gsm module
- this gsm breakout board i'm using.
- it uses this module , can checkout command manual , multiplexing application note.
update 1
- thanks @serge, able build
n_gsm
module , add without re-compiling kernel. however, still haven't been able gsm module mux mode. at+cmux=?
,at+cmux?
,at+cmux=
geneated error on sim800h module.- here's de-bugging have done
- played around hardware/software , no flow. didnt work in mode.
- set te-ta fixed local rate
at+ipr
auto, 115200 , stillat+cmux
generates error - tested
at+cmux?
on sim900 module , works.
any idea why not work sim800h?
the make issue in question has been solved downloading n_gsm.c beaglebone's kernel source repository kernel version in use.