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
Dave_Hall
Honored Contributor

Google search says there is " something" out there, but nothing from the official manufacturer' s website. If this was Windows, I' d would check the hardware device ID (VEN & DEC) codes then google search for alternate/rebranded names the chipset/device may be known under.

NSE4/FMG-VM64/FortiAnalyzer-VM/6.0 (FWF30E/FW92D/FGT200D/FGT101E/FGT81E)/ FAP220B/221C

NSE4/FMG-VM64/FortiAnalyzer-VM/6.0 (FWF30E/FW92D/FGT200D/FGT101E/FGT81E)/ FAP220B/221C
ScottVega

Hi Dave Hall Hi Selective So I' ve been doing a lot of googleing but as far as i can tell, i already got the latest firmware. it seems like fortigate is using a linux tool called usb_modeswitch. on the developper page i found a windows tool to capture the communication between the stick and windows xp. unfortunately the output is way too much to post here (about 23 Megs). the other thing is, that i simply don' t know how to get the message string out of the dump. i' ve found some strings that seem to have the same form as the ones mentioned before. on this site it is explained how to find that string, but it seems that i am unable to perform this task as it is way out of my league of troubleshooting. another thing i got is this, after trying different strings, maybe this is helpful as well:
 #diag deb application modemd 255
 
 # diag deb en
 
 # scan_usb_dev():597
 scan_usb_dev():597
 scan_usb_dev():597
 scan_usb_dev():597
 scan_usb_dev():612
 got one: 12d1:1505:08
 _usb_detach_driver(' usb-storage' )
 act_msg(): ep=1, len=31
 scan_usb_dev():597
 scan_usb_dev():612
 scan_usb_dev():597
 scan_usb_dev():612
 got one: 12d1:150a:ff
 act_msg(): ep=1, len=31
 _usb_bulk_write(1) failed: could not get bound driver: No data available
 
i will edit this post, as soon as i uploaded the dump file. thank you for your help! Here' s the link to the file: USB Snoop.zip
ScottVega

Hi Everyone I thought i check if there is any progress on this topic... but it seems like i' m out of luck with my 3g stick. does anyone have suggestions on how to get to that correct init string so the right driver will be loaded? thanks for your help cheers ScottVega
Labels
Top Kudoed Authors