moiji-mobile / diag-parser

DIAG parser and to GSMTAP converter
https://moiji-mobile.com
GNU General Public License v3.0
63 stars 32 forks source link

Sierra Wireless MC7354 #9

Open Pablini opened 6 years ago

Pablini commented 6 years ago

Hi,

I understand that Quectel uses the same Qualcomm sims as Sierra Wireless. I will like to test this in MC7354 and EM7565 Modems.

I cant see anything in UDP/4729 in Wireshark, Im getting this output in the MC7354 modem: ppratsc@QUARKS-V:~/apps/em7565/diag-parser$ sudo ./diag_parser -g localhost -i /dev/ttyUSB0 PARSER_OK Got 4 for 1 4 Got 4 for 1 4 Got 4 for 1 4 Got 4 for 1 4 Got 4 for 1 4 Got 5 for 1 6 Got 276 for 1 548 Got 310 for 1 616 Got 152 for 1 300 Got 383 for 1 762 Got 134 for 1 264 Got 85 for 1 166 Got 84 for 1 164 Got 404 for 1 802 Got 40 for 1 74 Got 44 for 1 82 Got 49 for 1 90 Got 72 for 1 138 Got 56 for 1 106 Got 120 for 1 234 Got 68 for 1 130 Got 132 for 1 258 Got 80 for 1 154 Got 336 for 1 666 Got 100 for 1 194 Got 28 for 1 50 Got 60 for 1 114 Got 20 for 1 34 Got 16 for 1 26 Got 108 for 1 210 Got 48 for 1 90 Got 52 for 1 98 Got 56 for 1 106 Got 32 for 1 58 Got 16 for 1 26 Got 112 for 1 218 Got 5 for 1 6

cheers!

Pablini commented 6 years ago

Exactly the same problem with EC20-A Linux QUARKS-V 4.13.0-39-generic #44-Ubuntu SMP Thu Apr 5 14:25:01 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

NAME="Ubuntu" VERSION="17.10 (Artful Aardvark)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 17.10" VERSION_ID="17.10" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=artful UBUNTU_CODENAME=artful

zecke commented 6 years ago
Got 276 for 1 548
Got 310 for 1 616
Got 152 for 1 300

In diag_init.c:WRITE could you log "len" instead of "sizeof(esc)/sizeof(esc[0])"? Also the tty (e.g. use the stty application to dump it) config for /dev/ttyUSB0 would be interesting and make sure you are on a diag UART?

Pablini commented 6 years ago

Thank you Zecke for the quick answer.

This is how dmesg detect the EC20-A: [33991.530462] usb 1-1: new high-speed USB device number 10 using xhci_hcd [33991.672872] usb 1-1: New USB device found, idVendor=05c6, idProduct=9215 [33991.672880] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [33991.672885] usb 1-1: Product: Quectel LTE Module [33991.672890] usb 1-1: Manufacturer: Quectel [33991.698078] qcserial 1-1:1.0: Qualcomm USB modem converter detected [33991.698549] usb 1-1: Qualcomm USB modem converter now attached to ttyUSB0 [33991.700450] qcserial 1-1:1.1: Qualcomm USB modem converter detected [33991.700763] usb 1-1: Qualcomm USB modem converter now attached to ttyUSB1 [33991.701735] qcserial 1-1:1.2: Qualcomm USB modem converter detected [33991.701985] usb 1-1: Qualcomm USB modem converter now attached to ttyUSB2 [33991.703049] qcserial 1-1:1.3: Qualcomm USB modem converter detected [33991.703349] usb 1-1: Qualcomm USB modem converter now attached to ttyUSB3 [33991.704412] qmi_wwan 1-1:1.4: cdc-wdm0: USB WDM device [33991.704804] qmi_wwan 1-1:1.4 wwan0: register 'qmi_wwan' at usb-0000:00:14.0-1, WWAN/QMI device, ee:3a:b0:d2:40:f3 [33991.723480] qmi_wwan 1-1:1.4 wwp0s20f0u1i4: renamed from wwan0 ------------------------END-----------------

Also I understand that /dev/ttyUSB0 is the DIAG port.

I will dump tty and diag_init....

regarding the Diag UART, how can I be sure?? is there any hardware change I need to make?

regards,

Pablini

walkersc commented 5 years ago

Hi Pablini,

Were you able to find a solution to your problem? I am finding I am having a similar issue.

Thanks!!