TSHOT modułów GSM

Wszystkie rozmowy związane z problemem z hardwarem, supportowanymi funkcjonalnościami, wydajnością urządzeń itp.
Wiadomość
Autor
Awatar użytkownika
M1siek
member
member
Posty: 49
Rejestracja: 01 lut 2011, 01:17
Lokalizacja: Wrocław

TSHOT modułów GSM

#1

#1 Post autor: M1siek »

Witam,
mam problemy z modułami GSM na routerze Cisco 881G, 2800 oraz 2811. I tutaj prośba do kogoś kto coś może doradzić.
Problem jest większy niektórym modułom pomógł restart routera, innym zaktualizowanie firmware, inne poszły na wymianę do Cisco (nie posiadały firmware i nie można było aktualizować), natomiast mam tutaj moduły które teoretycznie działają, ale nie mogą nawiązać połączenia z siecią (nie dostają adresu IP).
Karty SIM na pewno są w porządku, interfejs cellular i dialer jest skonfigurowany na pewno poprawnie (działa na innych routerach).

wynik polecenia sh ip int brie
sh ip int brie
Interface IP-Address OK? Method Status Protocol
Cellular0 unassigned YES NVRAM down down
Dialer1 unassigned YES NVRAM up up
Dane z modułu
Hardware Information
====================
Modem Firmware Version = K2_0_7_35AP C:/WS/F
Modem Firmware built = 03/04/10
Hardware Version = 1.0
International Mobile Subscriber Identity (IMSI) = 260322995014955
International Mobile Equipment Identity (IMEI) = 353223046367570
Integrated Circuit Card ID (ICCID) = 8948031122950149556
Mobile Subscriber International Subscriber
IDentity Number (MSISDN) =
Factory Serial Number (FSN) = C9E334109641007
Modem Status = Online
Current Modem Temperature = 34 deg C, State = Normal
PRI SKU ID = 9993559, SKU Rev. = 1.2

Profile Information
====================
Profile password Encryption level: 7

Profile 1 = INACTIVE*
--------
PDP Type = IPv4
Access Point Name (APN) = internet
Authentication = PAP
Username: internet, Password: 000D1D12014905031B

* - Default profile

Data Connection Information
===========================
Data Transmitted = 0 bytes, Received = 0 bytes
Profile 1, Packet Session Status = INACTIVE
Inactivity Reason = Normal inactivate state
Profile 2, Packet Session Status = INACTIVE
Inactivity Reason = Normal inactivate state
Profile 3, Packet Session Status = INACTIVE
Inactivity Reason = Normal inactivate state
Profile 4, Packet Session Status = INACTIVE
Inactivity Reason = Normal inactivate state
Profile 5, Packet Session Status = INACTIVE
Inactivity Reason = Normal inactivate state
Profile 6, Packet Session Status = INACTIVE
Inactivity Reason = Normal inactivate state
Profile 7, Packet Session Status = INACTIVE
Inactivity Reason = Normal inactivate state
Profile 8, Packet Session Status = INACTIVE
Inactivity Reason = Normal inactivate state
Profile 9, Packet Session Status = INACTIVE
Inactivity Reason = Normal inactivate state
Profile 10, Packet Session Status = INACTIVE
Inactivity Reason = Normal inactivate state
Profile 11, Packet Session Status = INACTIVE
Inactivity Reason = Normal inactivate state
Profile 12, Packet Session Status = INACTIVE
Inactivity Reason = Normal inactivate state
Profile 13, Packet Session Status = INACTIVE
Inactivity Reason = Normal inactivate state
Profile 14, Packet Session Status = INACTIVE
Inactivity Reason = Normal inactivate state
Profile 15, Packet Session Status = INACTIVE
Inactivity Reason = Normal inactivate state
Profile 16, Packet Session Status = INACTIVE
Inactivity Reason = Normal inactivate state

Network Information
===================
Current Service Status = Emergency Only, Service Error = None
Current Service = Invalid
Packet Service = None
Packet Session Status = Inactive
Current Roaming Status = Home
Network Selection Mode = Automatic
Country = POL, Network = PLUS
Mobile Country Code (MCC) = 260
Mobile Network Code (MNC) = 1
Location Area Code (LAC) = 32052
Routing Area Code (RAC) = 23
Cell ID = 42681
Primary Scrambling Code = 0
PLMN Selection = Automatic
Available PLMNs:
PLMN Name = Plus (PLUS)
MCC = 260, MNC = 1
Status = Forbidden,Supports GPRS, Network = GSM


Radio Information
=================
Radio power mode = ON
Current Band = GSM 900, Channel Number = 39
Current RSSI = -69 dBm
Band Selected = Auto
Number of nearby cells = 1
Cell 1
Primary Scrambling Code = 0x2C
RSCP = -106 dBm, ECIO = -15 dBm


Modem Security Information
==========================
Card Holder Verification (CHV1) = Disabled
SIM Status = OK
SIM User Operation Required = None
Number of Retries remaining = 3
Dobrego Inżyniera ogranicza tylko wyobraźnia.

W drodze do CCIE... :)
LinkedIn

Awatar użytkownika
grze
wannabe
wannabe
Posty: 419
Rejestracja: 09 cze 2008, 23:15
Lokalizacja: Warsaw

#2

#2 Post autor: grze »

Pokaz wycinek konfiguracji Cellular, Dialer i chat script oraz sekcje line.



Pzdr,
G
It doesn't matter how many certs you've got... it's really all about the pure knowledge behind them...

Awatar użytkownika
M1siek
member
member
Posty: 49
Rejestracja: 01 lut 2011, 01:17
Lokalizacja: Wrocław

#3

#3 Post autor: M1siek »

Sh cell:
no ip address
no ip redirects
no ip unreachables
no ip proxy-arp
ip mtu 1492
encapsulation ppp
load-interval 60
dialer in-band
dialer pool-member 1
async mode interactive
no fair-queue
end
sh dialer:
description Interface 3G/GSM
bandwidth 1024
ip address negotiated
no ip redirects
no ip unreachables
encapsulation ppp
dialer pool 10
dialer idle-timeout 0
dialer string Inet
no fair-queue
no cdp enable
ppp authentication pap callin
ppp chap refuse
crypto map XXX
end
Sh script:
chat-script Inet "" "ATD*99***1#" TIMEOUT 30 CONNECT
dialer string Inet
script dialer Inet

Potem:

line 0
exec-timeout 15 0
script dialer Inet
login authentication local_auth
modem InOut
no exec
transport input all
Dobrego Inżyniera ogranicza tylko wyobraźnia.

W drodze do CCIE... :)
LinkedIn

seth
fresh
fresh
Posty: 8
Rejestracja: 13 wrz 2007, 22:35

#4

#4 Post autor: seth »

W konfiguracji interfejsu Dialer powinno być:
dialer script Inet
zamiast
dialer string Inet
Dodatkowo Cellular ma
dialer pool-member 1
A Dialer:
dialer pool 10

Awatar użytkownika
M1siek
member
member
Posty: 49
Rejestracja: 01 lut 2011, 01:17
Lokalizacja: Wrocław

#5

#5 Post autor: M1siek »

nie mogę wpisać polecenia:
dialer script Inet
jedyne propzycje jakie pokazuje mi router to:
(config-if)#dialer s?
snapshot string
Błąd w dialer pool wynikał z skopiowania konfiga z innego routera.
Dobrego Inżyniera ogranicza tylko wyobraźnia.

W drodze do CCIE... :)
LinkedIn

seth
fresh
fresh
Posty: 8
Rejestracja: 13 wrz 2007, 22:35

#6

#6 Post autor: seth »

Faktycznie, tam powinno być jednak "dialer string", pamięć jest jednak zawodna :)

W konfiguracji Dialera jest co prawda:
dialer idle-timeout 0
Ale nie ma:
dialer persistent
- pierwsza komenda jest dodawana niejawnie po wpisaniu "dialer persistent"

Skoro nie ma ani "dialer persistent" ani "dialer-group", w jaki sposób dialer był wyzwalany w oryginalnej konfiguracji?

Zauważyłem jeszcze w statusie modułu:

Network Information
===================
Current Service Status = Emergency Only, Service Error = None
Current Service = Invalid
Packet Service = None
...
PLMN Name = Plus (PLUS)
MCC = 260, MNC = 1
Status = Forbidden,Supports GPRS, Network = GSM


W przypadku aktywnej karty, działającej w T-Mobile, wygląda to tak:
Network Information
===================
Current Service Status = Normal, Service Error = None
Current Service = Combined
Packet Service = EDGE (Attached)
Packet Session Status = Active
...
Registered PLMN = , Abbreviated =
Service Provider = T-Mobile.pl

Czy karta SIM jest na pewno w porządku? Działa np. w telefonie?

Awatar użytkownika
M1siek
member
member
Posty: 49
Rejestracja: 01 lut 2011, 01:17
Lokalizacja: Wrocław

#7

#7 Post autor: M1siek »

Tak, karty SIM działają, wprowadziłem zmiany, i nadal moduł nie pozyskuje IP.
Teraz network information wygląda tak:
Network Information
===================
Current Service Status = Normal, Service Error = None
Current Service = Combined
Packet Service = HSDPA (Attached)
Packet Session Status = Inactive
Current Roaming Status = Home
Network Selection Mode = Automatic
Country = POL, Network = Orange
Mobile Country Code (MCC) = 260
Mobile Network Code (MNC) = 3
Location Area Code (LAC) = 27000
Routing Area Code (RAC) = 1
Cell ID = 55320
Primary Scrambling Code = 485
PLMN Selection = Automatic
Registered PLMN = Orange , Abbreviated = Orange
Service Provider = Orange
Dobrego Inżyniera ogranicza tylko wyobraźnia.

W drodze do CCIE... :)
LinkedIn

m4rc0
wannabe
wannabe
Posty: 138
Rejestracja: 26 maja 2007, 09:09

#8

#8 Post autor: m4rc0 »

sproboj dodac ponizsza komende na interface dialera

Kod: Zaznacz cały

ppp ipcp dns request
Jaka masz default route skonfigurowana ? Mozesz sprobowac:

Kod: Zaznacz cały

ip route 0.0.0.0 0.0.0.0 Dialer1 

czasem musisz wymusic traffic zwyklym pingiem z tego urzadzenia aby zadzialalo[/code]

Awatar użytkownika
M1siek
member
member
Posty: 49
Rejestracja: 01 lut 2011, 01:17
Lokalizacja: Wrocław

#9

#9 Post autor: M1siek »

Trasę na dialera mam, i jest wymuszane, przez keepalive dla tuneli które mają wskazanie na interfejs dialerowy.
Dobrego Inżyniera ogranicza tylko wyobraźnia.

W drodze do CCIE... :)
LinkedIn

Awatar użytkownika
M1siek
member
member
Posty: 49
Rejestracja: 01 lut 2011, 01:17
Lokalizacja: Wrocław

#10

#10 Post autor: M1siek »

Rozwiązałem problem, znaczy jest rozwiązanie.
Zauważyłem że części cellularów pomagał restart, diagnozowałem problem co się dzieje i zauważyłem że nawet routerki orange czy plusa co jakiś czas zrywały połączenie i nawiązywały je na nowo. Dlatego stworzyłem skrypt który restartuje cellular jak utraci icmp dla adresu który jest dostępny przez cellular. Rozwiązanie to działa już stabilnie od dawna dlatego się nim podzielę.

Skrypt:

ip sla 2
icmp-echo 8.8.8.8 // adres IP dostępny przez cellular
timeout 6000
frequency 30

ip sla schedule 2 start-time now life forever

track 10 ip sla 2 reachability
default-state up
delay down 120

event manager applet GSM_Reload
event tag ICMP_DOWN track 10 state down
trigger
correlate event ICMP_DOWN
action 1.0 cli command "enable"
action 2.0 cli command "configure terminal"
action 3.0 cli command "service internal"
action 4.0 cli command "end"
action 5.0 cli command "test cellular 0/0/0 modem-power-cycle"
action 6.0 wait 15
action 7.0 puts "Cellular modem power cycled."
action 8.0 exit

-----
inna wersja, dla routera gdzie nie mamy "service internal", w moim przypadku są to routery serii 881

action 1.0 cli command "enable"
action 2.0 cli command "configure terminal"
action 3.0 cli command "int cellular 0"
action 4.0 cli command "shut"
action 5.0 wait 3
action 6.0 cli command "no shut"
action 7.0 cli command "end"
action 8.0 wait 15
action 9.0 puts "Cellular modem power cycled."
action 9.1 exit


Oczywiście można wpisać service internal na sztywno w configu i ograniczyć się do "test cellular 0/0/0 modem-power-cycle" kto jak woli. 8)
Dobrego Inżyniera ogranicza tylko wyobraźnia.

W drodze do CCIE... :)
LinkedIn

Awatar użytkownika
lxs
wannabe
wannabe
Posty: 177
Rejestracja: 08 sty 2014, 16:27
Lokalizacja: 52.182098, 21.005445

#11

#11 Post autor: lxs »

Jako inżynier po tej drugiej stronie (operator mobilny) mogę dodać, że to dobra metoda. Chodzi o to, by modem próbował na nowo nawiązać sesję z nowym GGSNem, bo w sieci dzieje się dużo (chociażby upgrade NE). Sesje są zrzucane i wiele terminali po prostu nadal trzyma sesje, gdy druga strona już ją zerwała.

Awatar użytkownika
M1siek
member
member
Posty: 49
Rejestracja: 01 lut 2011, 01:17
Lokalizacja: Wrocław

#12

#12 Post autor: M1siek »

Dobrze wiedzieć, z GSM za dużo do czynienia nie miałem, tyle co sucha teoria na studiach.

Ta metoda rozwiązała moje bolączki GSMowe, więc naprawdę szczerze polecam! :)
Dobrego Inżyniera ogranicza tylko wyobraźnia.

W drodze do CCIE... :)
LinkedIn

ODPOWIEDZ