mirror of
https://github.com/4IceG/luci-app-3ginfo-lite.git
synced 2026-04-25 11:25:50 +03:00
[GH-ISSUE #55] Add support for Foxconn T99W175 also known as Dell DW5930e #44
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/luci-app-3ginfo-lite#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @4IceG on GitHub (Dec 28, 2023).
Original GitHub issue: https://github.com/4IceG/luci-app-3ginfo-lite/issues/55
Would you like to add support for Foxconn T99W175 also known as Dell DW5930e?
Device connected to board with PCI MHI and AT port available at /dev/wwan0at0, MBIM at /dev/wwan0mbim0 and QCDM at /dev/wwan0qcdm0
AT Commands available here:
https://www.codico.com/media/productattach/m/v/mv31_w_atc_v00058_2111538_1.pdf
by now only this info are shown

Originally posted by @riccardoferti in https://github.com/4IceG/luci-app-3ginfo-lite/issues/28#issuecomment-1871015490
@4IceG commented on GitHub (Dec 28, 2023):
Hi @riccardoferti ,
I moved your post to a new thread. We can try to add support for this modem.
First, show the output of the commands:
@riccardoferti commented on GitHub (Dec 28, 2023):
@4IceG
No USB devices available, but:
cat /sys/kernel/debug/mhi/mhi0/devices
sms_tool -d /dev/wwan0at0 at "at^ca_info?"
sms_tool -d /dev/wwan0at0 at "at^debug?"
@4IceG commented on GitHub (Dec 29, 2023):
@obsy Cezary masz moze pomysl jak zidentyfikowac w systemie takie modemy, aby je potem przypisac do skryptow?
Same wyniki tez sa ciekawe, dwa pasma glowne.. 5G komplikuje znow skrypty.
@obsy commented on GitHub (Dec 29, 2023):
Kod nie jest przystosowany do innych urządzeń niż usb. Albo robisz nowe obejście tak jak zrobiłeś dla np. hilinka albo trzeba sporo zmodyfikować główny kod żeby wykrywał też urządzenia pci.
Przydał by się bezpośredni dostęp do takiego modemu.
@obsy commented on GitHub (Dec 29, 2023):
@riccardoferti
Could you show also
@riccardoferti commented on GitHub (Dec 29, 2023):
@obsy commented on GitHub (Dec 29, 2023):
And show us:
@riccardoferti commented on GitHub (Dec 29, 2023):
@obsy commented on GitHub (Dec 29, 2023):
Hmm, very sad that /dev/mhi_DIAG does not exist like in Quectel.
@riccardoferti commented on GitHub (Dec 29, 2023):
It should be /dev/wwan0qcdm0 but don't know if It works
@riccardoferti commented on GitHub (Dec 29, 2023):
what i see in device:
root@OpenWrt:/sys/devices/pci0000:00/0000:00:1c.5/0000:02:00.0/mhi0# ls
mhi0_DIAG mhi0_IP_HW0_MBIM mhi0_MBIM power subsystem wakeup
mhi0_DUN mhi0_LOOPBACK oem_pk_hash serial_number uevent wwan
@obsy commented on GitHub (Dec 29, 2023):
@riccardoferti commented on GitHub (Dec 29, 2023):
AT+CGMI DELLAT+CGMM T99W175AT+CGMR T99W175.F0.1.0.0.9.VF.008 1 [Jan 20 2023 12:00:00]AT+CGSN 3522801100xxxxxAT+ICCID ICCID: 8939104520038678xxxxx are for privacy
@obsy commented on GitHub (Dec 30, 2023):
I made the parser and it seems to work. But I'm still wondering how to create a framework to support PCI devices.
@riccardoferti commented on GitHub (Dec 30, 2023):
It's not simple to use AT port as device?
@obsy commented on GitHub (Dec 30, 2023):
Nope. It's a matter of discovering what is available and what script to use to process it. The script itself is simple.
@riccardoferti commented on GitHub (Jan 2, 2024):
On USB 2.0 debug mode, it shows AT console in /dev/ttyUSB3
@obsy commented on GitHub (Jan 2, 2024):
Show us
in this "usb 2.0 debug mode".
@riccardoferti commented on GitHub (Jan 2, 2024):
obtained assigning
echo "05c6 90d5 ff" > /sys/bus/usb-serial/drivers/option1/new_id@jfrogg commented on GitHub (Jan 3, 2024):
Let me share some thoughts on discovery process.
The user will enter or select the serial port in the configuration. No change here.
Knowing serial device like "/dev/wwan0at0" allows the parent device be discovered the same way as with USB, but in this case the result will be a PCI path/device. The code should be similar to what is currently used in https://github.com/4IceG/luci-app-3ginfo-lite/blob/main/luci-app-3ginfo-lite/root/usr/share/3ginfo-lite/3ginfo.sh#L151
Unfortunately, I do not have a suitable device to experiment with at the moment, so this is an example based on PCI Wi-Fi card:
It should be possible to find a path similar to "/sys/devices/platform/1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0" for "/dev/wwan0at0" from SysFS. In my example with net device "phy0-ap0" it was easy like that:
"vendor + product" combination is exactly what is currently used to select modem-specific scripts.
Hope it helps )
@riccardoferti commented on GitHub (Jan 3, 2024):
Clear, It Is as you said
@obsy commented on GitHub (Jan 4, 2024):
@riccardoferti
Show me
also install pciutils and show lspci -nn
@riccardoferti commented on GitHub (Jan 6, 2024):
@jfrogg commented on GitHub (Jan 6, 2024):
@riccardoferti please run when you have a chance:
readlink -f /sys/class/wwan/wwan0at0/deviceBTW, could you please share the details about the module you use - t99w175.?? version and whether it is Dell/HP/Lenovo branded.
@obsy commented on GitHub (Jan 6, 2024):
cat /sys/devices/pci0000:00/0000:00:1c.5/0000:02:00.0/vendor
cat /sys/devices/pci0000:00/0000:00:1c.5/0000:02:00.0/device
?
@riccardoferti commented on GitHub (Jan 6, 2024):
The device Is a Dell Prototype version, bought on AliExpress.
You can change the device vendor switching at^customer=x
1 Dell
0 Foxconn
4 Lenovo
6 HP (maybe)
Mine Is 0 actually, with latest Lenovo firmware installed. It's the latest in Building time.
@riccardoferti commented on GitHub (Jan 6, 2024):
0x105b
0xe0b0
@jfrogg commented on GitHub (Jan 6, 2024):
@riccardoferti I was mainly interested what is printed/engraved on the modem itself. Thank you.
@riccardoferti commented on GitHub (Jan 6, 2024):
Who wants can DM me on Telegram @nerdherd96
@obsy commented on GitHub (Jan 8, 2024):
@4IceG : zaimplementuj to u siebie:
github.com/obsy/packages@e1daf558d5Jeżeli będzie wszystko ok to trzeba rozważyć czy nie przenieść danych do oddzielnych podkatalogów pci/ i usb/
@4IceG commented on GitHub (Jan 8, 2024):
Ok, thx @obsy Cezary.
Jeżeli kod mnie nie zaskoczy to postaram się możliwie szybko go zaimplementować u siebie.
Co do modyfikacji podkatalogów myślę, że jest to wskazana, przyszłościowa koncepcja.
@obsy commented on GitHub (Jan 8, 2024):
Teraz do testów dodałem po prostu prefix "pci". Ale docelowo trzeba będzie to przerzuć, tym bardziej że modemy pci chyba raczej będą stanowić przyszłość.
@4IceG commented on GitHub (Jan 8, 2024):
@riccardoferti install package and check if it shows data ok.
I don't know yet what to do with the SINR parameter, we read SNR instead. (for test SINR=SNR).
luci-app-3ginfo-lite_1.0.62-20240108_all.zip
@riccardoferti commented on GitHub (Jan 8, 2024):
working also on pci mode?
@4IceG commented on GitHub (Jan 8, 2024):
Yes, it should work.
@riccardoferti commented on GitHub (Jan 8, 2024):
a little bit buggy but works
@obsy commented on GitHub (Jan 8, 2024):
Where?
@4IceG commented on GitHub (Jan 8, 2024):
@riccardoferti Copy extracted file to > /usr/share/3ginfo-lite/modem
I just fix scripts to make it faster.
pci105be0b0.zip
It should look better. I don't know yet what protocol the modem works on.
@riccardoferti commented on GitHub (Jan 8, 2024):
Should be MBIM
Tò have more info you can check ModemManager
@4IceG commented on GitHub (Jan 8, 2024):
pci105be0b0_last_fix.zip
Ok, protocol should now be visible.
// Edit: I also back to SINR=SNR.
@riccardoferti commented on GitHub (Jan 8, 2024):
It is slow to read and often it doesn't find modem
@riccardoferti commented on GitHub (Jan 8, 2024):
All seems good maybe need only to check this:
<html> 5G NSA \| B3 (1800 MHz) + B28 (700 MHz) / B7 (2600 MHz) / B1 (2100 MHz) / n78 (3500 MHz) --
</html>I advise to set only + or / symbol
@4IceG commented on GitHub (Jan 8, 2024):
Maybe other package is using modem at the same time?
@4IceG commented on GitHub (Jan 8, 2024):
I'll check it tomorrow.
@riccardoferti commented on GitHub (Jan 8, 2024):
Should be Modem Manager
@4IceG commented on GitHub (Jan 9, 2024):
So we have problem because MM and 3ginfo-lite cannot work together.
@riccardoferti commented on GitHub (Jan 10, 2024):
Oh ok, but T99w175 can't work without MM
@frauhottelmann commented on GitHub (Mar 14, 2024):
In what device are you running this card with OpenWrt?
@sp2003 commented on GitHub (Apr 19, 2024):
Can the package also be installed for USB2 version QMI protocol?
@obsy commented on GitHub (Apr 20, 2024):
It does not matter. Package requires a serial interface to talk to the modem.
@sp2003 commented on GitHub (Apr 20, 2024):
I installed the package luci-app-3ginfo-lite_1.0.62-20240108_all.ipk, I replaced pci105be0b0 with pci105be0b0_last_fix, then copied and renamed 1e2d00b7 in the folder /usr/share/3ginfo-lite/modem/usb, and this is the result. Some information on bands and ISPs is missing, and it is a bit slow in retrieving information. Is it possible to modify it to improve it?

@4IceG commented on GitHub (Apr 20, 2024):
Hi @sp2003 ,
Replace file as in this thread https://github.com/4IceG/luci-app-3ginfo-lite/issues/71#issuecomment-2066809912 to fix the missing operator bug.
The command result is needed to diagnose remaining bugs.
sh -x /usr/share/3ginfo-lite/3ginfo.sh
If you use MM to connect, the data will be read slower or stupid values will be displayed. This happens when two packages communicate with modem at the same time.
@sp2003 commented on GitHub (Apr 20, 2024):
it's long report.
I'll attach a file to you
3ginfo.txt
@4IceG commented on GitHub (Apr 20, 2024):
@sp2003 install the latest available version of package and then replace the files and check how it works.
@sp2003 commented on GitHub (Apr 20, 2024):
done, but we made the situation worse


@4IceG commented on GitHub (Apr 20, 2024):
@sp2003 Install this version (contains current fixes) luci-app-3ginfo-lite_1.0.66-20240420_all.zip.
If there are errors, show the command results:
sh -x /usr/share/3ginfo-lite/3ginfo.sh@sp2003 commented on GitHub (Apr 20, 2024):
it' perfect!
Thank you!!!

@4IceG commented on GitHub (Apr 20, 2024):
@sp2003 Show me the result of the commands:
Currently, there is no location, no temperature and there is an bug with the TAC hex value.
@sp2003 commented on GitHub (Apr 20, 2024):
of corse!
3ginfo.txt
@sp2003 commented on GitHub (Apr 20, 2024):
For information, this modem can change communication protocol from QMI to MBIM with an AT command.
In this case, the modem becomes
so if you want you can also add this mode.
@4IceG commented on GitHub (Apr 20, 2024):
@sp2003 Uninstall package and install this version luci-app-3ginfo-lite_1.0.66-20240420_all.zip.
P.S.
I also added mbim support.
@sp2003 commented on GitHub (Apr 20, 2024):
in MBIM on ROOter VM installation it does not work

3ginfo.txt
@4IceG commented on GitHub (Apr 20, 2024):
@sp2003 Does the qmi version work? If you can, check mbim on a version other than ROOTer.
@sp2003 commented on GitHub (Apr 21, 2024):
tested on a different version, it's works!!!!
again, great job!
@leleargo commented on GitHub (Apr 24, 2024):
Hi, I've a Dell T99W175 (DW5930e) and I am using it in a openwrt x86 PC with modemmanager in PCIe mode. I've tried the latest version of this package, but it doesn't seem to work as @riccardoferti.
This is my vendor and device:
The device is e0b1, instead of e0b0. I've tried changing the name of the script in pci folder but it didn't work.
Moreover, I've tried this command, but the modem doesn't answer:
@obsy commented on GitHub (Apr 24, 2024):
@leleargo commented on GitHub (Apr 24, 2024):
@riccardoferti has DW5930e with device e0b0 and he is using this package with ModemManager. He just said that is a little bit slow
@4IceG commented on GitHub (Apr 24, 2024):
Hi @SuperMitic ,
Could you show result of the command:
ls -al /dev/*
From pure curiosity..
@leleargo commented on GitHub (Apr 24, 2024):
I am not at home right now, but it is the same as riccardo. I have wwan0at0, wwan0mbim0, wwan0qcdm0
I have discovered the difference between riccardoferti module and mine. He has the e-sim version (e0b0), I have the non e-sim version (e0b1)
@leleargo commented on GitHub (Apr 27, 2024):
@4IceG commented on GitHub (Apr 27, 2024):
@SuperMitic
I don't use MM, so I may be wrong.
Doesn't MM create its interface using hotplug..? I don't know if it's possible to "unplug" this interface from MM.
By removing
/etc/hotplug.d/tty/25-modemmanager-ttyor a similar file..You've probably already tried methods from net.
How to enable AT commands of Foxconn T99W175 5G WWAN
Snapdragon X55 / T99W175 discussion
Modem Qualcomm X55 T99W175 5G)
@leleargo commented on GitHub (Apr 30, 2024):
The problem is that ModemManager take the wwan0at0 port for itself. qmicli and mbimcli are able to contact the modem using --device-open-proxy. I don't know if you can implement a similar feature in sms_tool