Hi, Should not be a problem, find out the " product-id" and " vendor-id" and then use: config system 3g-modem custom you might also need the " init-str" , google for " message content" for your model.
Should not be a problem, find out the " product-id" and " vendor-id" and then use: config system 3g-modem custom you might also need the " init-str" , google for " message content" for your model.
Hi Selective, could you give me a configuration example of any 3g modem? I' m new in CLI commands...
of course, im gonna present two examples, one pretty easy, and one more advanced: EASY: This one is for a ZTE MF820D 4G LTE, which is " unsupported" On this device i had to turn off the " USB flash" before plugging it in. config system modem set status enable set auto-dial enable set wireless-port 4 <------ The serial port which you can communicate with the modem, you need to find out which one you can use, you should be able to enter ATI and receive some information back. set phone1 " *99#" set extra-init1 " AT+CGDCONT=1,\" IP\" ,\" ONLINE.TELIA.SE\" " <---- Force the APN end config system 3g-modem custom <------ This tells the FortiGate what device its looking for edit 0 set vendor " ZTE" set model " MF820D 4G LTE" set vendor-id 19d2 set product-id 0167 next end ADVANCED: config system modem set status enable set auto-dial enable set wireless-port 1 <------ The serial port which you can communicate with the modem, you need to find out which one you can use, you should be able to enter ATI and receive some information back. set phone1 " *99#" set extra-init1 " AT+CGDCONT=1,\" IP\" ,\" ONLINE.TELIA.SE\" " <---- Force the APN 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 <--- This message content is used when you dont turn off the USB-flash on the device, this tells the device your drivers are installed and you want the device to flip to communication. The string is different for each device. next after the E398 has switched mode: config system 3g-modem custom edit 0 set vendor " Huawei" set model E398 set vendor-id 12d1 set product-id 120c end You also have an undocumented command to use to see your USB devices: fnsysctl cat /proc/bus/usb/devices Debugging: diagnose debug application modemd 255 diagnose debug enable diagnose sys modem ? execute modem trigger/dial/hangup For example, if your want to start an interactiv session with the device, you could type: diagnose sys modem com /dev/ttyusb0 <--- you might have to find out the right com-port, ttyusb0/ttyusb1 and so on, this is important when you set the " wireless-port" Hope this helps you and others, i have spent a few hours on this, as you can see
Hi, I have been able to activate a Huawei e367 usb modem, as custom and being detected. but when checking the debug output it halts at " send" as below , any ideas? FGT60C3G10022181 # redails:0 isp:0 dev:/dev/ttyusb0 tel:*99# mode=0, dial=2, autodial=1 modem state changed: 6(stopped) -> 0(uninit) modem state changed: 0(uninit) -> 1(inactive) modem: Launch modem due to manual dial. modem: Begin dialing: redials left = 99999 modem state changed: 1(inactive) -> 2(dialing) chat: abort on (BUSY) chat: abort on (NO DIAL TONE) chat: abort on (NO DIALTONE) chat: abort on (NO CARRIER) chat: abort on (NO ANSWER) chat: abort on (ERROR) chat: send (atz^M) chat: expect (OK) chat: atz^M^M chat: OK chat: -- got it chat: send (ath0^M) chat: expect (OK) chat: ^M chat: ath0^M^M chat: OK chat: -- got it chat: send (ats7=90^M) chat: timeout set to 90 seconds chat: expect (OK) chat: ^M chat: ats7=90^M^M chat: OK chat: -- got it chat: send (AT+CGDCONT=1," IP" ," bredband.tre.se" ^M) chat: expect (OK) chat: ^M chat: AT+CGDCONT=1," IP" ," bredband.tre.se" ^M^M chat: OK chat: -- got it chat: send (atdt*99#^M) chat: expect (CONNECT) chat: ^M chat: atdt*99#^M^M chat: CONNECT chat: -- got it chat: send (^M) -------HERE IT STOPS..-------------
Hi Mikael, Are you sure about /dev/ttyusb0 ? These devices can have several com-ports, and a few Of them can respond to AT commands, but only one is the right. Try to change the com-port and see what happens: Config sys modem Set wireless-port 1 (raise this with one each time) End
BUT! It connected to mobile network only after I has clicked on button "Dial", and only after I put comand ATI after command diagnose sys modem com /dev/ttyusb0:
FGT50B3G11605532 # diagnose sys modem com /dev/ttyusb0 Serial port: /dev/ttyusb0 Press Ctrl+W to exit.
atdt*99# 236800
If click ony on button Dial it doesn't connected, it is hanging in the state CONNECTING...