keywords: ip pbx voip gateway gsm gateway

× Questions about G400/G410 Cards.

Unable to access /dev/ttyGSMx on G400: Operation not permitted

8 years 2 months ago #9221 by czo
Hi,
I have some trouble with accessing /dev/GSMx on my CentOS 6.3/x86_64 box.
[[email protected] ~]# ln -s /dev/ttyGSM0 /dev/modem[[email protected] ~]# minicomminicom: WARNING: configuration file not found, using defaultsminicom: cannot open /dev/modem: Operation not permitted

strace:
rt_sigaction(SIGALRM, {0x4199e0, [ALRM], SA_RESTORER|SA_RESTART, 0x7f75fba3b960}, {SIG_DFL, [], 0}, 8) = 0alarm(4)                                = 0open("/dev/modem", O_RDWR|O_NOCTTY|O_NONBLOCK) = -1 EPERM (Operation not permitted)alarm(0)                                = 4rt_sigaction(SIGALRM, {SIG_IGN, [ALRM], SA_RESTORER|SA_RESTART, 0x7f75fba3b960}, {0x4199e0, [ALRM], SA_RESTORER|SA_RESTART, 0x7f75fba3b960}, 8) = 0

Tested with chan_extra-2.0.7.tar.gz, chan_extra-2.0.6.tar.gz, chan_extra-2.0.5.tar.gz
Kernel version: Linux version 2.6.32-358.23.2.el6.x86_64 (This email address is being protected from spambots. You need JavaScript enabled to view it.) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Wed Oct 16 18:37:12 UTC 2013
Installation method:
1. Enable virtual TTY in install.sh,
2. Source code install,
3. Download and install dahdi-linux-complete-2.6.1+2.6.1.tar.gz [Default installation],
4. Asterisk: Skip the step

dmesg:
dahdi: Telephony Interface Registered on major 196dahdi: Version: 2.5.0opvxg4xx 0000:03:00.0: PCI INT A -> GSI 24 (level, low) -> IRQ 24Found an OpenVox G400P: Version 1.1card 0 opvxg4xx: slot 0 is Installedcard 0 opvxg4xx: slot 1 is Installedcard 0 opvxg4xx: slot 2 is Installedcard 0 opvxg4xx: slot 3 is Emptyopvxg4xx: card 0 slot 0 is ttymodeopvxg4xx: card 0 slot 1 is ttymodeopvxg4xx: card 0 slot 2 is ttymodeopvxg4xx: card 0 Powering up all spans...GSM tty install

dmesg when try to open /dev/GSMx
Enable tty model failed(0),open functionEnable tty model failed(1),open functionEnable tty model failed(2),open function
8 years 2 months ago #9225 by tim.june
Can you prepare remote access for checking? Contact me via IM below.

Email: This email address is being protected from spambots. You need JavaScript enabled to view it.
Skype: tim.jjune
7 years 4 months ago #9968 by psiriders2
I have the same problem:
socat - /dev/ttyGSM0
2014/09/23 17:49:33 socat[2240] E open("/dev/ttyGSM0", 02002, 0666): Operation not permitted

Dmesg shows:
Found an OpenVox G400P: Version 1.1
card 0 opvxg4xx: slot 0 is Installed
card 0 opvxg4xx: slot 1 is Empty
card 0 opvxg4xx: slot 2 is Empty
card 0 opvxg4xx: slot 3 is Empty
opvxg4xx: card 0 slot 0 is ttymode
opvxg4xx: card 0 Powering up all spans...
/proc/gsm_module_power_key-0 is created
GSM tty install
alloc irq_desc for 18 on node -1
alloc kstat_irqs on node -1
alloc irq_2_iommu on node -1
[..]
Enable tty model failed(0),open function

uname -a
Linux bialy-1 2.6.32-431.29.2.el6.x86_64

dahdi-linux-complete-2.9.2+2.9.2
chan_extra-2.0.7


; Span 1: opvxg4xx/0/1 "OpenVox G400P PCI Card 0" (MASTER) AMI/CCS
group=0,11
context=from-gsm
signalling = gsm
smscodec=utf-8
debugat=on
;tty=off
tty=on
;pin = 1234
channel => 1
context = default

gsm show spans
GSM span 1: Power on, Provisioned, Up, Active, Standard
7 years 4 months ago #9969 by lindali
Hi,

Please prepare remote ssh for checking. And please add my skype to your contact list. My contact info is shown as below. I'll contact you tomorrow as soon as-8 I get work at 9:00 O'clock UTF-8.

email: This email address is being protected from spambots. You need JavaScript enabled to view it.
skype: linda.li258

Best regards
7 years 3 months ago - 7 years 3 months ago #9976 by psiriders2
I got help from Tim June and with the newest 2.0.8 after 2 days everything worked. I've reinstalled the machine - and now - still the same...

still E open("/dev/ttyGSM0", 02002, 0666): Operation not permitted

chan_extra-2.0.8
dahdi-linux-complete-2.9.2+2.9.2
and asterisk 11
Mon Sep 29 16:20:45 CEST 2014 : Please select ttymode: 2
Mon Sep 29 16:20:45 CEST 2014 : Choose spans for MUX tty mode ...
Mon Sep 29 16:20:47 CEST 2014 : Please input span ids for MUX ttymode: 1
and now again in dmesg:


Sep 29 17:00:59 kernel: dahdi: Version: 2.9.2
Sep 29 17:00:59 kernel: dahdi: Telephony Interface Registered on major 196
Sep 29 17:00:59 'dahdi_handle_device'[1901]: D: Running '/usr/share/dahdi/handle_device.d/10-span-types'
Sep 29 17:00:59 'dahdi_handle_device'[1901]: D: Running '/usr/share/dahdi/handle_device.d/20-span-assignments'
Sep 29 17:00:59 kernel: dahdi_transcode: Loaded.
Sep 29 17:00:59 kernel: xpp: Unknown symbol dahdi_get_auto_assign_spans
Sep 29 17:00:59 kernel: opvxg4xx 0000:02:00.0: enabling device (0000 -> 0002)
Sep 29 17:00:59 kernel: opvxg4xx 0000:02:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Sep 29 17:00:59 kernel: Found an OpenVox G400P: Version 1.1
Sep 29 17:00:59 kernel: card 0 opvxg4xx: slot 0 is Installed
Sep 29 17:00:59 kernel: card 0 opvxg4xx: slot 1 is Empty
Sep 29 17:00:59 kernel: card 0 opvxg4xx: slot 2 is Empty
Sep 29 17:00:59 kernel: card 0 opvxg4xx: slot 3 is Empty
Sep 29 17:00:59 kernel: opvxg4xx: card 0 slot 0 is ttymode(gsm0710)
Sep 29 17:00:59 kernel: dahdi: Warning: Span opvxg4xx/0/1 didn't specify a spantype. Please fix driver!
Sep 29 17:00:59 kernel: opvxg4xx: card 0 Powering up all spans...
Sep 29 17:00:59 'dahdi_handle_device'[1928]: add: /devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:00.0/pci:0000:02:00.0
Sep 29 17:00:59 'dahdi_handle_device'[1931]: auto_assign_spans=1. Skip /devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:00.0/pci:0000:02:00.0
Sep 29 17:00:59 'dahdi_span_config'[1939]: add: /devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:00.0/pci:0000:02:00.0/span-1
Sep 29 17:00:59 'dahdi_span_config'[1941]: auto_assign_spans=1. Skip /devices/pci0000:00/0000:00:01.0/0000:01:00.0/0000:02:00.0/pci:0000:02:00.0/span-1
Sep 29 17:01:09 kernel: GSM tty install
Sep 29 17:01:09 kernel: dahdi_devices pci:0000:02:00.0: local span 1 is already assigned span 1
Sep 29 17:01:17 kernel: Enable tty model failed(0),open function
Sep 29 17:02:22 kernel: dahdi_echocan_mg2: Registered echo canceler 'MG2'
Sep 29 17:03:15 kernel: Enable tty model failed(0),open function
Sep 29 17:03:15 kernel: Enable tty model failed(0),open function
Sep 29 17:03:16 kernel: Enable tty model failed(0),open function
Sep 29 17:03:16 kernel: Enable tty model failed(0),open function
Sep 29 17:03:16 kernel: Enable tty model failed(0),open function
Sep 29 17:03:16 kernel: Enable tty model failed(0),open function
Sep 29 17:03:17 kernel: Enable tty model failed(0),open function
Sep 29 17:03:17 kernel: Enable tty model failed(0),open function
Sep 29 17:03:17 kernel: Enable tty model failed(0),open function
Sep 29 17:03:17 kernel: Enable tty model failed(0),open function
Sep 29 17:03:18 kernel: Enable tty model failed(0),open function
Sep 29 17:10:26 kernel: Enable tty model failed(0),open function
7 years 3 months ago #9977 by psiriders2
OK. I've removed everything once again manually (asterisk, dahdi modules etc) and made it working... You should have options like in asterisk (make uninstall-all)....
Time to create page: 0.035 seconds
Powered by Kunena Forum