Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
ScottVega
New Contributor

Huawei e398 3G Stick

Hi Everyone For the last 6 hours I' ve been trying to get a Huawei e398 3G Stick to work with my FortiGate 100a 4.0 MR3 Patch11. Even though, the stick is listed in the list of compatible devices, it isn' t recognized until i manually add it according to this thread: https://forum.fortinet.com/FindPost/76983 Unfortunately this didn' t help. now the modem seems to be detected:


FG100A2104400486 # diag sys modem external-modem
External modem vendor: Huawei
External modem model : E398
but when i start the diag command, I get this:

FG100A2104400486 # diag deb en

FG100A2104400486 # diag deb app modemd
modemd debug level is 255 (0xff)

FG100A2104400486 # exe mod dial

FG100A2104400486 # redails:0 isp:0 dev:/dev/ttyusb0 tel:*99#
mode=0, dial=2, autodial=1
modem state changed: 5(hw_err) -> 0(uninit)
modem state changed: 0(uninit) -> 1(inactive)
modem: Launch modem due to manual dial.
modem: unable to open modem device - check hardware.
modem state changed: 1(inactive) -> 5(hw_err)
scan_usb_dev():597
FG100A2104400486 #
Then I tried to install it on my computer. there it works just fine. so i guess it must have something to do with my configuration... here' s the config:

FG100A2104400486 (modem) # sh
config system modem
set status enable
set pin-init " at+cpin=7216"
set auto-dial enable
set phone1 " *99#"
set username1 " none"
set passwd1 ENC k0Qwbf15hb+HSIVhhPZEQCOB9VOFmOuEbHCfZ0S7pQi+Dza/o9zm30HLrlBs0XNJUFwiOgTJNeGc8FW/bwxuu9mENMqPEKxQz3zKVZcSDDlO6jmU
set extra-init1 " at+cgdcont=1,\" ip\" ,\" gprs.swisscom.ch\" "
end

FG100A2104400486 (modem) #

FG100A2104400486 # conf sys 3g-modem custom

FG100A2104400486 (custom) # sh
config system 3g-modem custom
edit 1
set vendor " Huawei"
set model " E398"
set vendor-id 12d1
set product-id 150a
set init-string " 55534243123456780000000000000011060000000000000000000000000000"
next
edit 2
set vendor " Huawei"
set model " E398"
set vendor-id 12d1
set product-id 1505
set init-string " 55534243123456780000000000000011060000000000000000000000000000"
next
edit 3
set vendor " Huawei"
set model " E398"
set vendor-id 12d1
set product-id 140c
set init-string " 55534243123456780000000000000011060000000000000000000000000000"
next
end

FG100A2104400486 (custom) #
I hope you can show me a way to get that thing working... cheers ScottVega

32 REPLIES 32
Carl_Wallmark
Valued Contributor

Hi, Try to change COM-port: config sys modem set wireless-port <0,1,2,3,4 and so on> end

FCNSA, FCNSP
---
FortiGate 200A/B, 224B, 110C, 100A/D, 80C/CM/Voice, 60B/C/CX/D, 50B, 40C, 30B
FortiAnalyzer 100B, 100C
FortiMail 100,100C
FortiManager VM
FortiAuthenticator VM
FortiToken
FortiAP 220B/221B, 11C

FCNSA, FCNSP---FortiGate 200A/B, 224B, 110C, 100A/D, 80C/CM/Voice, 60B/C/CX/D, 50B, 40C, 30BFortiAnalyzer 100B, 100CFortiMail 100,100CFortiManager VMFortiAuthenticator VMFortiTokenFortiAP 220B/221B, 11C
Carl_Wallmark
Valued Contributor

you can also use this command in CLI to find out the ports: fnsysctl cat /proc/bus/usb/devices

FCNSA, FCNSP
---
FortiGate 200A/B, 224B, 110C, 100A/D, 80C/CM/Voice, 60B/C/CX/D, 50B, 40C, 30B
FortiAnalyzer 100B, 100C
FortiMail 100,100C
FortiManager VM
FortiAuthenticator VM
FortiToken
FortiAP 220B/221B, 11C

FCNSA, FCNSP---FortiGate 200A/B, 224B, 110C, 100A/D, 80C/CM/Voice, 60B/C/CX/D, 50B, 40C, 30BFortiAnalyzer 100B, 100CFortiMail 100,100CFortiManager VMFortiAuthenticator VMFortiTokenFortiAP 220B/221B, 11C
ScottVega
New Contributor

Hi Selective Tried 0 to 40 so far to no avail... do i have to reboot every time i set the wireless port?
Carl_Wallmark
Valued Contributor

Hi Scott, No, only redial. I would also recommend to remove the PIN on the simcard, its one more thing that can cause problems. I had a Huawei E398 working some time ago, Im gonna look if I have the config somewhere.

FCNSA, FCNSP
---
FortiGate 200A/B, 224B, 110C, 100A/D, 80C/CM/Voice, 60B/C/CX/D, 50B, 40C, 30B
FortiAnalyzer 100B, 100C
FortiMail 100,100C
FortiManager VM
FortiAuthenticator VM
FortiToken
FortiAP 220B/221B, 11C

FCNSA, FCNSP---FortiGate 200A/B, 224B, 110C, 100A/D, 80C/CM/Voice, 60B/C/CX/D, 50B, 40C, 30BFortiAnalyzer 100B, 100CFortiMail 100,100CFortiManager VMFortiAuthenticator VMFortiTokenFortiAP 220B/221B, 11C
Carl_Wallmark
Valued Contributor

I found this: config sys modem Set status enable Set extra-init1 AT&FE0V1X1&D2&C1S0=0 Set extra-init2 ‘AT+CGDCONT=1,”IP”,”internet.telenor.se”’ End config system 3g-modem custom edit 0 Set vendor Huawei Set model E398 Set vendor-id 12d1 Set product-id 1505 Set init-str 55534243123456780000000000000011060000000000000000000000000000 Next edit 0 set vendor Huawei set model E398 set vendor-id 12d1 set product-id 140c end

FCNSA, FCNSP
---
FortiGate 200A/B, 224B, 110C, 100A/D, 80C/CM/Voice, 60B/C/CX/D, 50B, 40C, 30B
FortiAnalyzer 100B, 100C
FortiMail 100,100C
FortiManager VM
FortiAuthenticator VM
FortiToken
FortiAP 220B/221B, 11C

FCNSA, FCNSP---FortiGate 200A/B, 224B, 110C, 100A/D, 80C/CM/Voice, 60B/C/CX/D, 50B, 40C, 30BFortiAnalyzer 100B, 100CFortiMail 100,100CFortiManager VMFortiAuthenticator VMFortiTokenFortiAP 220B/221B, 11C
ScottVega
New Contributor

Hi Selective This seems to be the same thing as in the thread i mentioned. adding the extra ini strings didn' t help it either. i got this out of the usb config, so it seems my stick has a different product id...
 Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
 D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
 P:  Vendor=12d1 ProdID=150a Rev= 0.00
 S:  Manufacturer=Huawei Technologies
 S:  Product=HUAWEI Mobile
 S:  SerialNumber=1234567890ABCDEF
 C:* #Ifs= 6 Cfg#= 1 Atr=c0 MxPwr=500mA
 I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=01 Prot=10 Driver=(none)
 E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=5ms
 E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
 E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
 I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=12 Driver=(none)
 E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
 E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
 I:  If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=13 Driver=(none)
 E:  Ad=84(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
 E:  Ad=03(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
 I:  If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=01 Prot=11 Driver=(none)
 E:  Ad=85(I) Atr=03(Int.) MxPS=  64 Ivl=5ms
 E:  Ad=86(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
 E:  Ad=04(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
 I:  If#= 4 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
 E:  Ad=87(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
 E:  Ad=05(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
 I:  If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
 E:  Ad=06(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
 E:  Ad=88(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
does this help in any way? also im getting
scan_usb_dev():597
 
as long as i have diag deb app modemd 255 enabled...
Carl_Wallmark
Valued Contributor

Yes, it does, What I can see the FortiGate have not loaded the " modem" driver. This lines should contain " serial" Driver=(none) So thats why your modem is not working

FCNSA, FCNSP
---
FortiGate 200A/B, 224B, 110C, 100A/D, 80C/CM/Voice, 60B/C/CX/D, 50B, 40C, 30B
FortiAnalyzer 100B, 100C
FortiMail 100,100C
FortiManager VM
FortiAuthenticator VM
FortiToken
FortiAP 220B/221B, 11C

FCNSA, FCNSP---FortiGate 200A/B, 224B, 110C, 100A/D, 80C/CM/Voice, 60B/C/CX/D, 50B, 40C, 30BFortiAnalyzer 100B, 100CFortiMail 100,100CFortiManager VMFortiAuthenticator VMFortiTokenFortiAP 220B/221B, 11C
ScottVega
New Contributor

so, how do i get the modem driver loaded?
Carl_Wallmark
Valued Contributor

Try this string instead: 55534243123456780000000000000011062000000100000000000000000000 for 12d1 150a

FCNSA, FCNSP
---
FortiGate 200A/B, 224B, 110C, 100A/D, 80C/CM/Voice, 60B/C/CX/D, 50B, 40C, 30B
FortiAnalyzer 100B, 100C
FortiMail 100,100C
FortiManager VM
FortiAuthenticator VM
FortiToken
FortiAP 220B/221B, 11C

FCNSA, FCNSP---FortiGate 200A/B, 224B, 110C, 100A/D, 80C/CM/Voice, 60B/C/CX/D, 50B, 40C, 30BFortiAnalyzer 100B, 100CFortiMail 100,100CFortiManager VMFortiAuthenticator VMFortiTokenFortiAP 220B/221B, 11C
Labels
Top Kudoed Authors