GSM module with beaglebone black

221 views
Skip to first unread message

Anuj Malviya

unread,
Dec 29, 2016, 1:25:33 AM12/29/16
to inside_linux
Hi 
I am trying to get GSM module connected to beagle bone black.
If any one has done it previously please pen down procedure for the same.

I have slight know how, that I have to get ppp daemon running, configure may be wvdial for this purpose.

Any document/sample code link will be of great help.

Br 
Anuj  

Anuj Malviya

unread,
Dec 29, 2016, 3:43:42 AM12/29/16
to inside_linux
Hi 
Just an observation, I have telit module If I connect this module via usb serial converter on my ubuntu laptop I get an interface as
ttyUSB0 in ubuntu machine.
But when I do the same in beaglebone the usb device get registered but I do not get anything on the serial port.
Anything which I might be missing. 
Br 
Anuj

abhilash h

unread,
Dec 29, 2016, 4:57:30 AM12/29/16
to inside...@googlegroups.com
Hi ,
How are you testing ?

On Thu, 29 Dec 2016 at 2:13 PM, Anuj Malviya <anuj.m...@gmail.com> wrote:
Hi 
Just an observation, I have telit module If I connect this module via usb serial converter on my ubuntu laptop I get an interface as
ttyUSB0 in ubuntu machine.
But when I do the same in beaglebone the usb device get registered but I do not get anything on the serial port.
Anything which I might be missing. 
Br 
Anuj

On 29 December 2016 at 11:55, Anuj Malviya <anuj.m...@gmail.com> wrote:
Hi 
I am trying to get GSM module connected to beagle bone black.
If any one has done it previously please pen down procedure for the same.

I have slight know how, that I have to get ppp daemon running, configure may be wvdial for this purpose.

Any document/sample code link will be of great help.

Br 
Anuj  











--


You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.


To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.


Anuj Malviya

unread,
Dec 29, 2016, 5:18:07 AM12/29/16
to inside_linux
HI Abhilash 
I did lsusb I see usb to serial converter getting detected.
Now I want to configure gsm module by sending messages via usb to gsm module.
When I do this on ubuntu lappy it gets detected i get ttyUSB0 but not on beagle board.
Tested the GSM module on my system usinig AT commands they work fine.

Br 
Anuj 

To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux+unsubscribe@googlegroups.com.



For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux+unsubscribe@googlegroups.com.

MishraDK

unread,
Dec 29, 2016, 9:12:53 AM12/29/16
to inside...@googlegroups.com
Hi Anuj,
Could you please verify if the USB to serial converter is working properly with BB by connecting TX to Rx and see if you are getting data back?
If that works fine then you need to configure your serial port for proper configuration as expected by the module and then send various commands.

Hope it helped..
Regards

MishraDK

unread,
Dec 29, 2016, 9:22:10 AM12/29/16
to inside...@googlegroups.com
Or you mean to say /Dev/tty* for this device is not getting created at all? What does dmesg say?
Regards

Anuj Malviya

unread,
Dec 29, 2016, 9:36:42 AM12/29/16
to inside_linux
I had two usb to serial converters one from laptop to bb and one from bb to gsm module, both r working fine I checked by interchanging them . I verified the connections also.
Br 
Anuj

Anuj Malviya

unread,
Dec 29, 2016, 9:37:16 AM12/29/16
to inside_linux
Need to check for dmesg I will pen it tmrw.
Anuj

abhilash h

unread,
Dec 29, 2016, 12:57:27 PM12/29/16
to inside...@googlegroups.com
Hi
You can connect UART from bbb  to gsm module if it is 3.3v ttl . 
Are you using minicom in bbb?
Try shorting tx and rx in usb serial converter and check if you getting echo .

To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.



For more options, visit https://groups.google.com/d/optout.










--


You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.


To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.



For more options, visit https://groups.google.com/d/optout.










--


You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.


To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.



For more options, visit https://groups.google.com/d/optout.










--


You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.


To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.



For more options, visit https://groups.google.com/d/optout.










--


You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.


To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.

Anil Kumar Pugalia

unread,
Dec 30, 2016, 12:17:31 AM12/30/16
to inside...@googlegroups.com

Check for which is the driver being used for the GSM modem on your Ubuntu system. That driver may not be available on BBB. If it is there, try loading it manually.

Regards
Anil
Passion: http://sysplay.in (Playing with Systems)

Anuj Malviya

unread,
Dec 30, 2016, 12:50:44 AM12/30/16
to inside_linux
Hello Anil 
When I did lsusb I got this?

Bus 001 Device 002: ID 8087:8001 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 007: ID 05c8:0374 Cheng Uei Precision Industry Co., Ltd (Foxlink) 
Bus 002 Device 006: ID 138a:003f Validity Sensors, Inc. VFS495 Fingerprint Reader
Bus 002 Device 005: ID 0bda:b001 Realtek Semiconductor Corp. 
Bus 002 Device 037: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 002 Device 002: ID 045e:07fd Microsoft Corp. Nano Transceiver 1.1
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Do I need to install uart bridge this on bbb. 
I am not sure about the USB modem.

I got following when I did lsmod 
rndis_wlan             57344  0 
rndis_host             16384  1 rndis_wlan
cdc_ether              16384  1 rndis_host
uas                    24576  0 
usbnet                 45056  3 rndis_host,rndis_wlan,cdc_ether
usb_storage            69632  1 uas
cdc_acm                36864  0 
nls_iso8859_1          16384  0 
mmc_block              36864  0 
drbg                   28672  1 
ansi_cprng             16384  0 
ctr                    16384  2 
ccm                    20480  2 
cmac                   16384  2 
bnep                   20480  2 
rfcomm                 69632  8 
binfmt_misc            20480  1 
snd_hda_codec_hdmi     53248  1 
uvcvideo               90112  0 
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
videobuf2_v4l2         28672  1 uvcvideo
videobuf2_core         36864  2 uvcvideo,videobuf2_v4l2
v4l2_common            16384  1 videobuf2_v4l2
videodev              180224  4 uvcvideo,v4l2_common,videobuf2_core,videobuf2_v4l2
ch341                  16384  0 
hp_wmi                 16384  0 
sparse_keymap          16384  1 hp_wmi
media                  24576  2 uvcvideo,videodev
cp210x                 24576  0 
intel_rapl             20480  0 
x86_pkg_temp_thermal    16384  0 
intel_powerclamp       16384  0 
coretemp               16384  0 
arc4                   16384  2 
rtl8723be             139264  0 
btcoexist             180224  1 rtl8723be
rtl_pci                40960  1 rtl8723be
rtlwifi                98304  3 btcoexist,rtl_pci,rtl8723be
i915                 1208320  8 
kvm                   536576  0 
btusb                  45056  0 
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                16384  1 btusb
bluetooth             516096  25 bnep,btbcm,btrtl,btusb,rfcomm,btintel
snd_hda_codec_realtek    86016  1 
mac80211              733184  3 rtl_pci,rtlwifi,rtl8723be
snd_hda_codec_generic    73728  1 snd_hda_codec_realtek
snd_hda_intel          36864  7 
snd_hda_codec         135168  4 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel
snd_hda_core           73728  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
snd_hwdep              16384  1 snd_hda_codec
drm_kms_helper        151552  1 i915
irqbypass              16384  1 kvm
crct10dif_pclmul       16384  0 
crc32_pclmul           16384  0 
cfg80211              557056  3 mac80211,rndis_wlan,rtlwifi
ghash_clmulni_intel    16384  0 
aesni_intel           167936  6 
snd_pcm               106496  5 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_core
drm                   360448  9 i915,drm_kms_helper
aes_x86_64             20480  1 aesni_intel
lrw                    16384  1 aesni_intel
gf128mul               16384  1 lrw
glue_helper            16384  1 aesni_intel
ablk_helper            16384  1 aesni_intel
cryptd                 20480  3 ghash_clmulni_intel,aesni_intel,ablk_helper
snd_seq_midi           16384  0 
snd_seq_midi_event     16384  1 snd_seq_midi
snd_rawmidi            32768  1 snd_seq_midi
joydev                 20480  0 
snd_seq                69632  2 snd_seq_midi_event,snd_seq_midi
input_leds             16384  0 
serio_raw              16384  0 
snd_seq_device         16384  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              32768  2 snd_pcm,snd_seq
snd                    81920  24 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device
rtsx_pci_ms            20480  0 
memstick               20480  1 rtsx_pci_ms
wmi                    20480  1 hp_wmi
8250_fintek            16384  0 
mei_me                 36864  0 
mei                    98304  1 mei_me
parport_pc             36864  0 
lpc_ich                24576  0 
i2c_algo_bit           16384  1 i915
fb_sys_fops            16384  1 drm_kms_helper
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
ppdev                  20480  0 
video                  40960  1 i915
usbserial              53248  2 ch341,cp210x
shpchp                 36864  0 
soundcore              16384  1 snd
mac_hid                16384  0 
intel_smartconnect     16384  0 
tpm_infineon           20480  0 
hp_wireless            16384  0 
hp_accel               28672  0 
lis3lv02d              20480  1 hp_accel
input_polldev          16384  1 lis3lv02d
lp                     20480  0 
parport                49152  3 lp,ppdev,parport_pc
hid_generic            16384  0 
usbhid                 49152  0 
hid                   118784  2 hid_generic,usbhid
rtsx_pci_sdmmc         24576  0 
psmouse               126976  0 
ahci                   36864  3 
r8169                  81920  0 
libahci                32768  1 ahci
rtsx_pci               53248  2 rtsx_pci_ms,rtsx_pci_sdmmc
mii                    16384  2 r8169,usbnet
fjes                   28672  0 

Not able to find gsm modem driver. 
Br 
Anuj 

To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux+unsubscribe@googlegroups.com.



For more options, visit https://groups.google.com/d/optout.










--


You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.


To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux+unsubscribe@googlegroups.com.



For more options, visit https://groups.google.com/d/optout.










--


You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.


To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux+unsubscribe@googlegroups.com.



For more options, visit https://groups.google.com/d/optout.










--


You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.


To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux+unsubscribe@googlegroups.com.



For more options, visit https://groups.google.com/d/optout.










--


You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.


To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux+unsubscribe@googlegroups.com.



For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux+unsubscribe@googlegroups.com.

Anil Kumar Pugalia

unread,
Dec 30, 2016, 1:11:51 AM12/30/16
to inside...@googlegroups.com

The cp210x driver might be missing from the BBB. Copy & load the cross compiled one onto BBB - you may get the ttyUSB0.

Regards
Anil
Passion: http://sysplay.in (Playing with Systems)
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.

Anuj Malviya

unread,
Dec 30, 2016, 1:23:06 AM12/30/16
to inside_linux
Yes I thought so trying that.
Br 
Anuj 

Anuj Malviya

unread,
Dec 30, 2016, 5:23:17 AM12/30/16
to inside_linux
Hello Anil 

I cross compiled the driver for bbb.

cp210x.ko: ELF 32-bit LSB  relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=caecd9e3cc097e52a24adcdee04ae8ecc9f5dd04, not stripped

Now when I am trying to insert the module I am getting invalid module format.

I am getting the following error.
insmod /lib/modules/4.1.6/kernel/drivers/usb/cp210x.ko 
[  184.801499] cp210x: disagrees about version of symbol module_layout
insmod: can't insert '/lib/modules/4.1.6/kernel/drivers/usb/cp210x.ko': invalid module format


This is related with the kernel version which is used for compiling the code.
But I am using the 4.1.1 kernel currently and cross compiled the code for that only.

Br 
Anuj


Anil Kumar Pugalia

unread,
Dec 31, 2016, 12:20:11 AM12/31/16
to inside...@googlegroups.com

Apart from the kernel version, your kernel config also should be same.

Regards
Anil
Passion: http://sysplay.in (Playing with Systems)
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.

Anuj Malviya

unread,
Jan 2, 2017, 2:24:36 AM1/2/17
to inside_linux
Hello Anil 
Can u please elaborate ?
Br 
Anuj

Anil Kumar Pugalia

unread,
Jan 2, 2017, 4:28:12 AM1/2/17
to inside...@googlegroups.com
For building drivers, we use the kernel headers & .config - the .config should be matching the one used to build the running kernel. Otherwise, if you don't have that, you can build a kernel image with the current .config and replace the kernel image on the BBB.


Regards
Anil
Passion: http://sysplay.in (Playing with Systems)
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages