IceG napisał/a:

Tu jest zestaw poleceń co wklepać:

AT+QMBNCFG="AutoSel",0
AT+QMBNCFG="Deactivate"
AT+QMBNCFG="Select","ROW_Commercial"
AT+CFUN=1,1
Terminal ready
AT
OK
AT+QMBNCFG="AutoSel",0
OK
AT+QMBNCFG="Deactivate"
ERROR
AT+QMBNCFG="Select","ROW_Commercial"
OK
AT+CFUN=1,1
OK

zakładam, że error jest, bo już wcześniej to wykonałem. czy powinienem zrobić power-cycle modemu teraz?

no to mamy tak:

root@perun:~# picocom -b 115200 /dev/ttyUSB2
picocom v3.1

port is        : /dev/ttyUSB2
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
stopbits are   : 1
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
hangup is      : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv -E
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,
logfile is     : none
initstring     : none
exit_after is  : not set
exit is        : no

!! Settings mismatch !! Type [C-a] [C-v] to see actual port settings
Type [C-a] [C-h] to see available commands
Terminal ready
AT
OK
AT+QMBNCFG="List",
ERROR
AT+QMBNCFG="List"
+QMBNCFG: "List",0,1,1,"Commercial-DT-VOLTE",0x0A011F1F,202212061
+QMBNCFG: "List",1,0,0,"ROW_Commercial",0x0A010809,202306011
+QMBNCFG: "List",2,0,0,"Rogers_Canada",0x0A014800,202303141
+QMBNCFG: "List",3,0,0,"Bell_Canada",0x0A014700,202111051
+QMBNCFG: "List",4,0,0,"Telus_Canada",0x0A014900,202112271
+QMBNCFG: "List",5,0,0,"Commercial-Sprint",0x0A010204,202111051
+QMBNCFG: "List",6,0,0,"Commercial-TMO",0x0A01050F,202303091
+QMBNCFG: "List",7,0,0,"VoLTE-ATT",0x0A010335,202206171
+QMBNCFG: "List",8,0,0,"CDMAless-Verizon",0x0A010126,202304251
+QMBNCFG: "List",9,0,0,"Telia_Sweden",0x0A012400,202111051
+QMBNCFG: "List",10,0,0,"TIM_Italy_Commercial",0x0A012B00,202111051
+QMBNCFG: "List",11,0,0,"France-Commercial-Orange",0x0A010B21,202111051
+QMBNCFG: "List",12,0,0,"Germany-VoLTE-Vodafone",0x0A010449,202111051
+QMBNCFG: "List",13,0,0,"UK-VoLTE-Vodafone",0x0A010426,202111051
+QMBNCFG: "List",14,0,0,"Commercial-EE",0x0A01220B,202111051
+QMBNCFG: "List",15,0,0,"Optus_Australia_Commercial",0x0A014400,202111051
+QMBNCFG: "List",16,0,0,"Telstra_Australia_Commercial",0x0A010F00,202304251
+QMBNCFG: "List",17,0,0,"Commercial-LGU",0x0A012608,202111051
+QMBNCFG: "List",18,0,0,"Commercial-KT",0x0A01280B,202304191
+QMBNCFG: "List",19,0,0,"Commercial-SKT",0x0A01270A,202111051
+QMBNCFG: "List",20,0,0,"Commercial-Reliance",0x0A011B0C,202210211
+QMBNCFG: "List",21,0,0,"Commercial-SBM",0x0A011C0B,202111051
+QMBNCFG: "List",22,0,0,"Commercial-KDDI",0x0A010709,202305241
+QMBNCFG: "List",23,0,0,"Commercial-DCM",0x0A010D0D,202301051
+QMBNCFG: "List",24,0,0,"VoLTE-CU",0x0A011561,202204211
+QMBNCFG: "List",25,0,0,"VoLTE_OPNMKT_CT",0x0A0113E0,202204211
+QMBNCFG: "List",26,0,0,"Volte_OpenMkt-Commercial-CMCC",0x0A012010,202209221

OK
AT+QMBNCFG="Deactivate"
OK

I... co teraz? dodałem MBIM "jak zawsze" i dalej jest to samo ( Pin code rejected) - da się podejrzeć gdzieś jakieś logi tego?

MiG25 napisał/a:

A najprostsza rzecz jak APN ... uqmi z ustawieniem tego miał problem ...
Jak już będziesz miał porty do konsoli to daj wcześniej co próbowałeś ustawić , a te komendy powiedzą , co jest ustawione i czy jest przez to połączone

AT+CGDCONT?

AT+CGCONTRDP

EDIT: Ok , tam w mmcli info jest:  Properties  apn: internet.... No ale nie zaszkodzi i tak sprawdzić

EDIT2 : Ale w tym samym miejscu jest "ip type: ipv6" ,a to już bardzo źle !  To trzeba zmienić na "ip , taką komendą jak próbowałeś wysłać.

co mam konkretnego zrobić? bo nie wiem, nigdy nie rzucałem magicznymi zaklęciami AT do modemów.

IceG napisał/a:

Sam jadę cały czas na MBIM i złego słowa nie mogę powiedzieć.

No jak robię mbim z luci to mam to: https://imgur.com/lwol7Aw wklepałem tez PIN z karty (chociaż ona nie wymaga) i wychodzi to samo.

IceG napisał/a:


Rzuciłeś na początku co pokazał MM:

carrier config: Commercial-DT-VOLTE

Zastanawiam się czy to ustawienie to nie problem. Może trzeba na auto przestawić lub całkowicie deaktywować?

Jak?

IceG napisał/a:

Nie wiem czy dobrze myślę, ale może trzeba by się pobawić poleceniem AT+QMBNCFG "MBN File Configuration Setting". Może wybrany profil komplikuje sprawę?

przyznam, że zadanie pytania na tym forum przyszło mi na myśl po zobaczeniu twojego repo dla minimalnie starszego modemu z tej serii. Mógłbyś rozwinąć temat? Szczerze całe życie używałem MBIM, po raz pierwszy robię coś z QMI i do tego takie nowe urządzenie mam w rękach.

w międzyczasie jeszcze testowałem ręczne zestawienie sieci i guzik wyszedł. zaraz wrzuce ten kmod-usb-serial i będę kminił dalej,.

root@perun:~# uqmi -d /dev/cdc-wdm0 --start-network --ip-family ipv4 --apn internet --auth-type none --wda-set-data-format raw-ip
"Call failed"
root@perun:~# uqmi -d /dev/cdc-wdm0 --start-network --ip-family ipv4 --apn internet --auth-type none --wda-set-data-format 802.3
"Call failed"

Co masz na myśli, jak to zrobić? Nie wyrzuca mi w OpenWRT /dev/ttyUSBx (ani acm) żeby wybrać RAS. mam tylko /dev/cdc-wdm0

Jeszcze jedno pytanie: czy to jest poprawny output?

root@perun:~# uqmi -d /dev/cdc-wdm0 --uim-get-sim-state
{
    "card_application_state": "ready",
    "pin1_status": "disabled",
    "pin1_verify_tries": 3,
    "pin1_unlock_tries": 10,
    "pin2_status": "not_verified",
    "pin2_verify_tries": 3,
    "pin2_unlock_tries": 10
}

I.. bez zmian. W sumie jestem trochę w kropce, bo nawet nie wiem już jak to ugryźć dalej.

Jeszcze spróbuję to:

     # chat -t 3 -e '' 'AT+CGDCONT=1,"IP","internet"' OK >> /dev/ttyUSB1 < /dev/ttyUSB1 

ale.. .w jakiej paczce jest binarka chat? big_smile

Modem z dystrybucji Waveshare

root@perun:~# uqmi -d /dev/cdc-wdm0 --get-signal-info
{
    "type": "lte",
    "rssi": -58,
    "rsrq": -15,
    "rsrp": -92,
    "snr": 3.600000
}
root@perun:~# uqmi -d /dev/cdc-wdm0 --get-serving-system
{
    "registration": "registered",
    "plmn_mcc": 260,
    "plmn_mnc": 2,
    "plmn_description": "T-Mobile #5GBardziej",
    "roaming": false
}
root@perun:~# uqmi -d /dev/cdc-wdm0 --get-system-info
{
    "wcdma": {
        "service_status": "none",
        "true_service_status": "none",
        "preferred_data_path": false
    },
    "lte": {
        "service_status": "available",
        "true_service_status": "available",
        "preferred_data_path": false,
        "domain": "cs-ps",
        "service": "cs-ps",
        "roaming_status": "off",
        "forbidden": false,
        "mcc": "260",
        "mnc": "02",
        "tracking_area_code": 52981,
        "enodeb_id": 128168,
        "cell_id": 32,
        "voice_support": true,
        "ims_voice_support": false,
        "cell_access_status": "all calls",
        "registration_restriction": 0,
        "registration_domain": 0,
        "5g_nsa_available": true,
        "dcnr_restriction": false
    }
}
root@perun:~# uqmi -d /dev/cdc-wdm0 --get-lte-cphy-ca-info
{
    "primary": {
        "cell_id": 175,
        "channel": 3175,
        "band": 7,
        "frequency": 2600,
        "duplex": "FDD",
        "bandwidth": "15"
    }
}

edit:

no niestety. dodałem wg linka i dostaję:

root@perun:~# ifstatus wan
{
    "up": false,
    "pending": true,
    "available": true,
    "autostart": true,
    "dynamic": false,
    "proto": "qmi",
    "data": {
        
    }
}

Czy mógłbyś zasugerować jakąś komendę aby to ręcznie na openwrt przetestować? Bo uqmi generalnie widzi urządzenie i z nim gada:

root@perun:~# uqmi -d /dev/cdc-wdm0 --get-cell-location-info
{
    "intrafrequency_lte_info": {
        "tracking_area_code": 52981,
        "enodeb_id": 128168,
        "cell_id": 32,
        "channel": 3175,
        "band": 7,
        "frequency": 2600,
        "duplex": "FDD",
        "serving_cell_id": 175,
        "cell_reselection_priority": 7,
        "s_non_intra_search_threshold": 10,
        "serving_cell_low_threshold": 10,
        "s_intra_search_threshold": 58,
        {
            "physical_cell_id": 175,
            "rsrq": -91.900000,
            "rsrp": -16.000000,
            "rssi": -53.800000,
            "cell_selection_rx_level": 32
        },
        {
            "physical_cell_id": 174,
            "rsrq": -103.600000,
            "rsrp": -19.400000,
            "rssi": -72.900000,
            "cell_selection_rx_level": 20
        }
    },
    "interfrequency_lte_info": {
        {
            "channel": 1599,
            "band": 3,
            "frequency": 1800,
            "duplex": "FDD",
            "cell_reselection_priority": 6,
            "cell_reselection_low": 16,
            "cell_reselection_high": 16,
            {
                "physical_cell_id": 388,
                "rsrq": -88.300000,
                "rsrp": -5.800000,
                "rssi": -74.800000,
                "cell_selection_rx_level": 39
            },
            {
                "physical_cell_id": 387,
                "rsrq": -108.500000,
                "rsrp": -20.000000,
                "rssi": -74.800000,
                "cell_selection_rx_level": 19
            }
        },
        {
            "channel": 225,
            "band": 1,
            "frequency": 2100,
            "duplex": "FDD",
            "cell_reselection_priority": 3,
            "cell_reselection_low": 16,
            "cell_reselection_high": 16,
            {
                "physical_cell_id": 175,
                "rsrq": -94.000000,
                "rsrp": -6.400000,
                "rssi": -79.500000,
                "cell_selection_rx_level": 34
            },
            {
                "physical_cell_id": 174,
                "rsrq": -111.900000,
                "rsrp": -20.000000,
                "rssi": -79.500000,
                "cell_selection_rx_level": 16
            }
        },
        {
            "channel": 6350,
            "band": 20,
            "frequency": 800,
            "duplex": "FDD",
            "cell_reselection_priority": 5,
            "cell_reselection_low": 10,
            "cell_reselection_high": 10,
            {
                "physical_cell_id": 478,
                "rsrq": -66.400000,
                "rsrp": -8.100000,
                "rssi": -50.600000,
                "cell_selection_rx_level": 61
            },
            {
                "physical_cell_id": 111,
                "rsrq": -79.200000,
                "rsrp": -19.400000,
                "rssi": -50.500000,
                "cell_selection_rx_level": 48
            }
        }
    }
}

Witam, zaglądam często, ale po raz pierwszy potrzebuję pomocy.

Pacjent: Quectel RM530N-GL, system: ArchLinux (zanim go zapnę do OpenWRT), sieć: T-Mobile

próbowałem zapiąć go zarówno przez `qmicli --device=/dev/cdc-wdm0 --device-open-proxy --wds-start-network="apn=internet" --client-no-release-cid` jak i ModemManagera. W każdym przypadku dostaję pdn-ipv4-call-throttled i w sumie nawet nie wiem co począć dalej. Wcześniej miałem Sierra Wireless EM7455 i "po prostu działał" ( --simple-connect wystarczył, OpenWRT po prostu zestawiło połaczenie mbim i też śmigało). Tutaj jestem w proszku.

Ewidentnie próbuje zapiąć się do wszystkich bearerów, które się w jakiś tam sposób dostały. Próbowałem usuwać bearerów i samemu dodać z --simple-connect="apn=internet,ip-type=ipv4" i też nic nie wychodziło. Reset modemu nic nie zmienia, zmiana sieci preferowanych/allowed tez nic nie zmienia. 5G działa w telefonie obok, a wieżę mam też obok.

załączam poniżej  co wypluwa `mmcli`:

[root@modem ~]# mmcli -m 0
  -----------------------------------
  General  |                    path: /org/freedesktop/ModemManager1/Modem/0
           |               device id: 13f4cc6872566bdXXX68a2c4
  -----------------------------------
  Hardware |            manufacturer: Quectel
           |                   model: RM530N-GL
           |       firmware revision: RM530NGLAAR03A02M4G
           |          carrier config: Commercial-DT-VOLTE
           | carrier config revision: XXX
           |            h/w revision: 20000
           |               supported: gsm-umts, lte, 5gnr
           |                 current: gsm-umts, lte, 5gnr
           |            equipment id: XXX
  -----------------------------------
  System   |                  device: /sys/devices/pci0000:00/0000:00:1e.0/0000:02:1b.0/usb3/3-1
           |                 physdev: /sys/devices/pci0000:00/0000:00:1e.0/0000:02:1b.0/usb3/3-1
           |                 drivers: option, qmi_wwan
           |                  plugin: quectel
           |            primary port: cdc-wdm0
           |                   ports: cdc-wdm0 (qmi), ttyUSB2 (at), ttyUSB3 (at), 
           |                          wwp2s27u1i4 (net)
  -----------------------------------
  Status   |                    lock: sim-pin2
           |          unlock retries: sim-pin (3), sim-puk (10), sim-pin2 (3), sim-puk2 (10)
           |                   state: registered
           |             power state: on
           |             access tech: lte, 5gnr
           |          signal quality: 96% (recent)
  -----------------------------------
  Modes    |               supported: allowed: 3g; preferred: none
           |                          allowed: 4g; preferred: none
           |                          allowed: 3g, 4g; preferred: 4g
           |                          allowed: 3g, 4g; preferred: 3g
           |                          allowed: 5g; preferred: none
           |                          allowed: 4g, 5g; preferred: 5g
           |                          allowed: 4g, 5g; preferred: 4g
           |                          allowed: 3g, 5g; preferred: 5g
           |                          allowed: 3g, 5g; preferred: 3g
           |                          allowed: 3g, 4g, 5g; preferred: 5g
           |                          allowed: 3g, 4g, 5g; preferred: 4g
           |                          allowed: 3g, 4g, 5g; preferred: 3g
           |                 current: allowed: 3g, 4g, 5g; preferred: 5g
  -----------------------------------
  Bands    |               supported: utran-1, utran-4, utran-6, utran-5, utran-8, utran-2, 
           |                          eutran-1, eutran-2, eutran-3, eutran-4, eutran-5, eutran-7, eutran-8, 
           |                          eutran-12, eutran-13, eutran-14, eutran-17, eutran-18, eutran-19, 
           |                          eutran-20, eutran-25, eutran-26, eutran-28, eutran-29, eutran-30, 
           |                          eutran-32, eutran-34, eutran-38, eutran-39, eutran-40, eutran-41, 
           |                          eutran-42, eutran-43, eutran-46, eutran-48, eutran-66, eutran-71, 
           |                          utran-19, ngran-1, ngran-2, ngran-3, ngran-5, ngran-7, ngran-8, 
           |                          ngran-12, ngran-13, ngran-14, ngran-18, ngran-20, ngran-25, ngran-26, 
           |                          ngran-28, ngran-29, ngran-30, ngran-38, ngran-40, ngran-41, ngran-48, 
           |                          ngran-66, ngran-70, ngran-71, ngran-75, ngran-76, ngran-77, ngran-78, 
           |                          ngran-79, ngran-257, ngran-258, (null), ngran-260, ngran-261
           |                 current: utran-1, utran-4, utran-5, utran-8, utran-2, eutran-1, 
           |                          eutran-2, eutran-3, eutran-4, eutran-5, eutran-7, eutran-8, 
           |                          eutran-12, eutran-13, eutran-14, eutran-17, eutran-18, eutran-19, 
           |                          eutran-20, eutran-25, eutran-26, eutran-28, eutran-29, eutran-30, 
           |                          eutran-32, eutran-34, eutran-38, eutran-39, eutran-40, eutran-41, 
           |                          eutran-42, eutran-43, eutran-46, eutran-48, eutran-66, eutran-71, 
           |                          utran-19, ngran-1, ngran-2, ngran-3, ngran-5, ngran-7, ngran-8, 
           |                          ngran-12, ngran-13, ngran-14, ngran-18, ngran-20, ngran-25, ngran-26, 
           |                          ngran-28, ngran-29, ngran-30, ngran-38, ngran-40, ngran-41, ngran-48, 
           |                          ngran-66, ngran-70, ngran-71, ngran-75, ngran-76, ngran-77, ngran-78, 
           |                          ngran-79
  -----------------------------------
  IP       |               supported: ipv4, ipv6, ipv4v6
  -----------------------------------
  3GPP     |                    imei: xxx
           |           enabled locks: fixed-dialing
           |             operator id: 26002
           |           operator name: T-Mobile.pl
           |            registration: home
           |    packet service state: attached
  -----------------------------------
  3GPP EPS |    ue mode of operation: csps-2
           |     initial bearer path: /org/freedesktop/ModemManager1/Bearer/0
           |      initial bearer apn: internet.v6.telekom
           |  initial bearer ip type: ipv4v6
  -----------------------------------
  SIM      |        primary sim path: /org/freedesktop/ModemManager1/SIM/0
           |          sim slot paths: slot 1: /org/freedesktop/ModemManager1/SIM/0 (active)
           |                          slot 2: none
  -----------------------------------
  Bearer   |                   paths: /org/freedesktop/ModemManager1/Bearer/3
           |                          /org/freedesktop/ModemManager1/Bearer/2
           |                          /org/freedesktop/ModemManager1/Bearer/1


[root@modem ~]# mmcli -m 0 -b 0
  -------------------------
  General    |        path: /org/freedesktop/ModemManager1/Bearer/0
             |        type: default-attach
  -------------------------
  Status     |   connected: yes
             |   suspended: no
             | multiplexed: no
             |  ip timeout: 20
  -------------------------
  Properties |         apn: internet.v6.telekom
             |     ip type: ipv4
[root@modem ~]# mmcli -m 0 -b 1
  --------------------------------------
  General    |                     path: /org/freedesktop/ModemManager1/Bearer/1
             |                     type: default
  --------------------------------------
  Status     |                connected: no
             |    connection error name: org.freedesktop.ModemManager1.Error.MobileEquipment.Unknown
             | connection error message: Call failed: internal error: pdn-ipv4-call-throttled
             |                suspended: no
             |              multiplexed: no
             |               ip timeout: 20
  --------------------------------------
  Properties |                      apn: internet
             |                  roaming: allowed
             |                  ip type: ipv4v6
  --------------------------------------
  Statistics |                 attempts: 4
             |                 attempts: 4
[root@modem ~]# mmcli -m 0 -b 2
  --------------------------------------
  General    |                     path: /org/freedesktop/ModemManager1/Bearer/2
             |                     type: default
  --------------------------------------
  Status     |                connected: no
             |    connection error name: org.freedesktop.ModemManager1.Error.MobileEquipment.Unknown
             | connection error message: Call failed: internal error: pdn-ipv4-call-throttled
             |                suspended: no
             |              multiplexed: no
             |               ip timeout: 20
  --------------------------------------
  Properties |                      apn: internet
             |                  roaming: allowed
             |                  ip type: ipv4
  --------------------------------------
  Statistics |                 attempts: 4
             |                 attempts: 4
[root@modem ~]# mmcli -m 0 -b 3
  --------------------------------------
  General    |                     path: /org/freedesktop/ModemManager1/Bearer/3
             |                     type: default
  --------------------------------------
  Status     |                connected: no
             |    connection error name: org.freedesktop.ModemManager1.Error.MobileEquipment.Unknown
             | connection error message: Call failed: internal error: pdn-ipv6-call-disallowed
             |                suspended: no
             |              multiplexed: no
             |               ip timeout: 20
  --------------------------------------
  Properties |                      apn: internet
             |                  roaming: allowed
             |                  ip type: ipv6
  --------------------------------------
  Statistics |                 attempts: 4
             |                 attempts: 4