Hello, 2.0.4, a version of latest chan-extra currently, is able to access GSM module as a virtual terminal. Below are the steps to teach you how to get it done.
[font=宋体]
[/font] Here are the steps:
[font=宋体]
[/font] 1> Downloadchan_extra-2.0.4 from www.chan-extra.org
[font=宋体]
[/font] 2> Untarchan-extra-2.0.4 package
[font=宋体]
[/font] 3> Modifyfiles chan_extra.c and opvxg4xx.h, because by default the virtual tty isdiable.
[font=宋体]
[/font] 4> Forward to../chan_extra-2.0.4/src/chan_extra/src/chan_extra.c, find line 247, pleaseremove the two slashes in front of this line to enable VIRTURAL TTY feature.
[font=宋体]
[/font] 5> Forward to../chan_extra-2.0.4/src/opvxg4xx/opvxg4xx.h, fine the line 22, please removethe two slashes as well.
[font=宋体]
[/font] 6> After both4 and 5 steps, you now be able to compile dahdi and asterisk by theinstallation script install.sh which locates in chan_extra-2.0.4 package.
[font=宋体]
[/font] 7> If all ofthem are done, duplicate files in ../chan_extra-2.0.4/src/chan_extra/config to/etc/asterisk/, edit /etc/asterisk/extra-channels.conf, and remove; in front of tty to use virtural TTY.
[font=宋体]
[/font] 8> Then,starting asterisk by asterisk –vvvvgc -d
[font=宋体]
[/font] 9> And thenext, install a minicom termination application, and configure it by minicom–s, then set up the serial port “serial device” to /dev/ttyGSM1. AndBps/Par/Bits to “115200 8N1”. Save as dfl and exit.
[font=宋体]
[/font] 10> At thistime, you will enter the virtual tty environment, then you can take the testyou want.
[font=宋体]
[/font] 11> Below is mytest sample:
[font=宋体]
[/font] 12> (See enclosure below)
[font=宋体]
[/font] And press Ctrl + A à Shit + Q to exit the Mincom.
[font=宋体]
[/font]
zimbra*CLI> gsm show spans
GSM span 1: Provisioned, Down, Active
GSM span 2: Provisioned, Down, Active
zimbra*CLI> gsm show span 1
D-channel: 2
Status: Provisioned, Down, Active
Type: CPE
Manufacturer:
Model Name:
Model IMEI:
Revision:
Network Name:
Network Status: Not registered
Signal Quality (0,31): -1
SIM IMSI:
Event:0
State:GSM STATE UP