keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about G400/G410 Cards.

G400P - MiniCom access?

11 years 10 months ago #8092 by krzysioD
Any chance on getting the g4term as universal serial port emulator for minicom and tools like mass sms-send applications?
11 years 10 months ago #8093 by Joe.Yung
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]


i] Last edited by Joe.Yung at 2012-5-28 09:23 [/i

11 years 10 months ago #8094 by Joe.Yung
Hi,

Enclosure follows above post.

Attachments:
11 years 10 months ago #8098 by krzysioD
well, i see one bug:
minicom
minicom: cannot open /dev/ttyGSM0: Operation not permitted

strace yellds:
20645 open("/dev/ttyGSM0", O_RDWR|O_NOCTTY|O_NONBLOCK) = -1 EPERM (Operation not permitted)
20645 alarm(0) = 4

-l /dev/ttyGSM*
crwxrwxrwx 1 root asterisk 240, 0 May 29 15:49 /dev/ttyGSM0

zimbra:~# id
uid=0(root) gid=0(root) groups=0(root)

in dmesg:

[957195.492099] Enable tty model failed(1),open function
[957227.763741] Enable tty model failed(0),open function
11 years 10 months ago #8099 by krzysioD
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
11 years 10 months ago #8101 by Joe.Yung
Hello,

What version of chan_extra do you use?

Could I have your box's access permission ? Please send it to my e-mail box below.

Time to create page: 0.053 seconds
Powered by Kunena Forum