Configuring a HUAWEI EM770W for gsmopen
Hello I'm new to freeswitch, and I would like to try and use a HUAWEI EM770W with gsmopen. The module is unlocked, and voice is enabled. Voice dialing has been tested and works : using MobilePartner on a windows XP running on virtualbox, I can dial a number, and hear the audio. However, from linux I just don't understand where the voice flux can be obtained or how to configure gsmopen. From http://wiki.freeswitch.org/wiki/GSMopen#Configuration_File I thought it would be some ttyUSB device, but I saw nothing. Here's what I did: - disconnected the usb device from virtualbox menu (so that it would be properly initialized with the at commands, etc) - started minicom, typed atd number followed by a semicolon (for voice mode) - monitored /dev/ttyUSB[1-5] : only ttyUSB2 showed some activity : ^CONF:1 ^CONN:1,0 ^CEND:1,69,29,16 MODE:3,3 - checked with AT+CPAS that the communication was active +CPAS: 4 - hanged up with AT+CHUP - checked with AT+CPAS that the communication was no longer active +CPAS: 0 AT+CFUN indicates a proper registration, AT+CSQ returns a proper signal, and no PIN has been configured - I just don't understand how to get the audio or how to configure May I please ask for some help? I will be happy to update the wiki explaining how to use a EM770W (they're cheap!) if it can be made to work. (Also, I have a problem compiling on a debian sid - first error being in bootstrap.sh: automake is not found while 1.14.1 is installed and in the $PATH) Here are the current settings : AT&V &C: 1; &D: 2; &F: 0; E: 1; L: 0; M: 0; Q: 0; V: 1; X: 1; Z: 0; S0: 0; S2: 43; S3: 13; S4: 10; S5: 8; S6: 2; S7: 50; S8: 2; S9: 6; S10: 14; S11: 95; S30: 0; S103: 1; S104: 1; +FCLASS: 0; +ICF: 3,3; +IFC: 2,2; +IPR: 115200; +DR: 0; +DS: 0,0,2048,6; +WS46: 12; +CBST: 0,0,1; +CRLP: (61,61,48,6,0),(61,61,48,6,1),(240,240,52,6,2); +CV120: 1,1,1,0,0,0; +CHSN: 0,0,0,0; +CSSN: 1,1; +CREG: 1; +CGREG: 1; +CFUN:; +CSCS: "IRA"; +CSTA: 129; +CR: 0; +CRC: 0; +CMEE: 1; +CGDCONT: (1,"IP","mm) ; +CGDSCONT: ; +CGTFT: ; +CGEQREQ: (1,2,0,0,0,0,2,0,"0E0","0E0",3,0,0),(2,2,0,0,0,) ; +CGEQMIN: ; +CGQREQ: ; +CGQMIN: ; ; +CGEREP: 0,0; +CGCLASS: "A"; +CGSMS: 3; +CSMS: 0; +CMGF: 0; +CSAS: 0; +CRES: 0; +CSCA: "+13123149810",145; +CSMP: ,,0,0; +CSDH: 0; +CSCB: 0,"",""; +FDD: 0; +FAR: 0; +FCL: 0; +FIT: 0,0; +ES: ,,; +ESA: 0,,,,0,0,255,; +CMOD: 0; +CVHU: 1; ; +CPIN: ��������,��������; +CMEC: 0,0,0; +CKPD: 1,1; +CIND: 0,1,1,1,0,0,1,0; +CMER: 0,0,0,0,0; +CGATT: 1; +CGACT: 0; +CPBS: "ON"; +CPMS: "SM","SM","SM"; +CNMI: 2,1,2,2,0; +CMMS: 2; +FTS: 0; +FRS: 0; +FTH: 3; +FRH: 3; +FTM: 96; +FRM: 96; +CCUG: 0,0,0; +COPS: 1,2,""; +CUSD: 0; +CAOC: 1; +CCWA: 1; +CCLK: ""; +CLVL: 4; +CMUT: 0; +CPOL: 0,2,"",0,0,0; +CPLS: 0; +CTZR: 0; +CTZU: 0; +CLIP: 1; +COLP: 0; +CDIP: 0; +CLIR: 0; ^PORTSEL: 0; ^CPIN: ��������,��������; ^ATRECORD: 0; ^FREQLOCK: 13723540,0; ^GLASTERR: 1; ^CVOICE: 0; ^DDSETEX: 0; ^CMSR: 0; ; ^AUTHDATA: 1,0,"",""; ^CRPN: 0,""; ^WPDST: 1; ^WPDOM: 0; ^WPDFR: 65536,1; ^WPQOS: 255,50; ^WNICT: 0; ; Thanks Charles
Hello I found some answers for my problems: - For the bootstrap.sh problems on a debian/sid : unset PERL5LIB (to avoid automake problems with a bad environment variable) apt-get install libtool-bin - To get the audio stream: For some reason, you can't do that from ttyUSB0. You must be connected on TTYUSB2 @9600 bauds, and then AT^DDSETEX=2 should send that audio stream to ttyUSB1 - It did work, but only once AT+COPS=? show only 1 network (which I'm not a client of) so I guess I just have a weak signal But at least it's going forward and the EM770 might work :-)
You're very observative, but you should have started by looking at the mod_gsmopen code. It uses the audio_device handle from the config file to get the GSM stream as you have noticed. On the given circumstances, i think just properly configuring the device will run it on gsmopen. On Fri, Nov 14, 2014 at 1:26 AM, Charles Devereaux <freeswitch@guylhem.net> wrote:
Hello
I found some answers for my problems:
- For the bootstrap.sh problems on a debian/sid : unset PERL5LIB (to avoid automake problems with a bad environment variable) apt-get install libtool-bin
- To get the audio stream:
For some reason, you can't do that from ttyUSB0. You must be connected on TTYUSB2 @9600 bauds, and then AT^DDSETEX=2 should send that audio stream to ttyUSB1
- It did work, but only once AT+COPS=? show only 1 network (which I'm not a client of) so I guess I just have a weak signal
But at least it's going forward and the EM770 might work :-)
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hello On Fri, Nov 14, 2014 at 7:50 AM, Daniel Ivanov <sertys@gmail.com> wrote:
you should have started by looking at the mod_gsmopen code
Initially I was worried the EM770 would not be compatbile and I wanted to see how and where I could get the audio flux, but yes that would have been more efficient. Newbie mistake, which I'll avoid reiterating by asking for suggestions first. Besides http://wiki.freeswitch.org/wiki/Getting_Started_Guide, is there a tutorial for people who are new to freeswitch, just to get say gsmopen running and expose it for tests? (I would like to run more tests and check if the audio is working, as playing the capture I made from ttyUSB1 with sox only gives me static one 1 of the 3 files, with 2 refusing to play with "error during GSM decode: Numerical result out of range") Based on what I read, I though about using a sip client and sofia to call 9195 (five second delay echo test) would be the best idea, but maybe there are simpler ways. I've read about sipjs for example ( http://sipjs.com/guides/server-configuration/freeswitch/)
On the given circumstances, i think just properly configuring the device will run it on gsmopen.
Indeed, it is very promising. I got 2 such cards for $15 (about 10 Eur) including delivery, and there was no need for any unlocking. I believe it's the cheapest option to play with gsmopen! Charles
participants (2)
-
Charles Devereaux
-
Daniel Ivanov