Open anfty opened 2 years ago
i got the same issue. I tried to use LTS kernels from 5.4 to 5.15. on Manjaro, Opensuse, Mandriva.
Log:
bringing wwan0 up!
RPC executing UtaMsSmsInit
b'1600000002040000001602040000003011000100020400000000'
response: 0x0
RPC executing UtaMsCbsInit
b'1600000002040000001602040000002511000100020400000000'
response: 0x0
RPC executing UtaMsNetOpen
b'1600000002040000001602040000005311000100020400000000'
response: 0x0
RPC executing UtaMsCallCsInit
b'1600000002040000001602040000002411000100020400000000'
response: 0x0
RPC executing UtaMsCallPsInitialize
b'1600000002040000001602040000003a11000100020400000000'
response: 0x0
RPC executing UtaMsSsInit
b'1600000002040000001602040000002611000100020400000000'
response: 0x0
RPC executing UtaMsSimOpenReq
b'1600000002040000001602040000000111000100020400000000'
response: 0x0
RPC executing CsiFccLockQueryReq
b'1c00000002040000001c02040000018e11000101020411000101020400000000'
async_ack: 0x0
response: 0x0, 0x1, 0x0
FCC lock: state 1 mode 0
RPC executing UtaModeSetReq
b'2200000002040000002202040000012f1100010002040000000002040000000f020400000001'
response: 0x0
unsolicited: UtaModeSetRspCb: 0x1, 0x0, 0xf
RPC executing UtaMsCallPsAttachApnConfigReq
b'e11300000204000013e10204000001af110001010204110001010201005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000000556502040000006802040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc0204000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000202000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000002040000000055140204000000140204000000000000000000000000000000000000000000000000020400000000556502040000006802040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc02040000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002020000020400000000020400000000020400000000020400000000020400000001020400000000020400000000020400000000020400000000020400000000020400000000020400000000020400000001020400000000020400000000020400000404020400000001020400000000020400000001020400000000020400000000551402040000001402040000000000000000000000000000000000000000000000000204000000035565020400000068020400000003696e7465726e65742e6c6966652e636f6d2e62790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005582010102040000010402040000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000204000000005541020400000042020400000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000554102040000004102040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005581fa0204000000fa020400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000201005581fa0204000000fc02040000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002020000020400000000020400000000020400000000020400000000020400000001020400000000020400000000020400000000020400000000020400000000020400000000020400000000020400000001020400000000020400000000020400000404020400000001020400000000020400000001020400000000020400000000551402040000001402040000000000000000000000000000000000000000000000000204000000035565020400000067020400000002696e7465726e65742e6c6966652e636f6d2e62790000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020103020400000000'
async_ack: 0x0
response: 0x0, 0x0, 0x0
RPC executing UtaMsNetAttachReq
b'4500000002040000004502040000005c110001010204110001010201000204000000000204000000000204000000000204000000000202ffff0202ffff020400000000020400000000'
async_ack: 0x0
response: 0x0, 0xffffffff, 0x5, 0x5, 0x12, 0x0, 0x0, 0x0, 0x0, 0x0, 0x5, 0x0, 0x5, 0x12, 0x0
INFO:root:Attach failed - waiting to see if we just weren't ready
unsolicited: UtaMsSimCardIndCb: 0x0, 0x16, 0xff, 0x1, 0x3, 0x0, bytearray(b';\x9f\x96\x80\x1f\x87\x801\xe0s\xfe!\x1bgJLu03\tb\x8b'), 0x0
unsolicited: UtaMsSimApplicationIndCb: 0x0, 0x41, bytearray(b'\xa0\x00\x00\x00\x87\x10\x02\xff\xff\xff\xff\x89\x03\x02\x00\x00'), 0x10, 0x0, 0x0, bytearray(b'b?\x82\x02x!\x83\x02\xff\x02\x84\x10\xa0\x00\x00\x00\x87\x10\x02\xff\xff\xff\xff\x89\x03\x02\x00\x00\xa5\t\x80\x01q\x83\x04\x00\x00\xa6r\x8a\x01\x05\x8c\x04&\x1a\x1a\x1a\xc6\x0f\x90\x01p\x83\x01\x01\x83\x01\x81\x83\x01\n\x83\x01\x0b'), 0x0
unsolicited: UtaMsSimInfoIndCb: 0x0, 0x0, 0x3, 0x0, 0x2fe2, bytearray(b'en'), bytearray(b'\xff\xff'), bytearray(b'\xff\xff'), bytearray(b'\x00\x00\x00\x02'), 0xff, 0xa, 0xa, 0x3, 0x3, 0x1, 0x2, 0xff, 0x0, bytearray(b'\x98s\x05\x03%\x11I8X\xf5'), 0x3, 0x0
unsolicited: UtaMsSimMccMncIndCb: 0x0, 0x0, 0x4, 0x101, 0x0
unsolicited: UtaMsSimLockStatusIndCb: 0x0, 0x8, bytearray(b'\x00\x00'), 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0x1, 0x0, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0xff, 0x1, 0x0, 0x0, 0x5, 0x1, 0x0, 0x0, 0x0, 0xff, 0x1, 0x0, 0x0, 0x5, 0x2, 0x0, 0x0, 0x0, 0xff, 0x1, 0x0, 0x0, 0x5, 0x3, 0x0, 0x0, 0x0, 0xff, 0x1, 0x0, 0x0, 0x5, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x5, 0x8, 0x0, 0x0, 0x5, 0x0
unsolicited: UtaMsSimFdnStateIndCb: 0x0, 0x1, 0x1, 0x0, 0x0
unsolicited: UtaMsSimBdnStateIndCb: 0x0, 0x0, 0x1, 0x0, 0x0
unsolicited: UtaMsSimInitIndCb: 0x0, 0x0, 0x3, 0x0, 0x6f07, 0x0, 0x1, bytearray(b')u@\x10\x12I8X'), 0x8, 0x2, 0x0, 0x0
unsolicited: UtaMsSimTkProactiveCommandIndCb: 0x0, bytearray(b'\xd0\x0c\x81\x03\x01\x05\x00\x82\x02\x81\x82\x99\x01\x03\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'), 0xe, 0x1, 0x1, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0xff, 0x5, 0xf, 0x91, 0x1, 0x0, 0x1, 0x1, 0x0, 0x0
unsolicited: UtaMsSimTkTerminalResponseIndCb: 0x0, 0x0, 0xff, 0x3, 0x0, 0x90, 0x2, 0x1, 0x2, 0x1, 0x0, 0x0
unsolicited: UtaMsSimFullAccessIndCb: 0x0
unsolicited: UtaMsSmsSimMsgCacheFinishedIndCb: 0x0, 0x0
on next retries, i got the same as anfty
Any news or ideas on this? I'm also stuck at INFO:root:Attach failed - waiting to see if we just weren't ready
since a couple of months...
I don't know what exactly happen but: 1) i had decision - smth with pytnon3. Last year all work, but now - not. I tied to install pthon3.8 instead of 3.9 or 3.10 2) i had install ONLY pyroute2 and configparse from REPO, not PIP.
AND NOW IN WORKS!
Hello. I am sorry for last post, i have mistaken. I really don't know reason but: if on Windows Cell network is disabled - this python script can't connect to device and write "INFO:root:Attach failed - waiting to see if we just weren't ready". I spend a week to dig it, To maked it work i installed Windows, enabled Cell network and reinstalled Linux again. I didn't find another way
THAT was an invaluable hint: I also assumed that something was broken due to kernel updates but in fact I had switched off mobile network in W10 a while ago. (I just disabled it via the system context menu tiles, I didn't deactivate the device.) After re-enabling it, it always takes me TWO times calling the script since the first stalls. I call my script…
tim ~ $ xmm7360-pci/my_connect.sh
sudo /sbin/rmmod xmm7360
/xmm7360-pci
make -C /lib/modules/5.17.7-arch1-1/build M=/xmm7360-pci modules
make[1]: Verzeichnis „/usr/lib/modules/5.17.7-arch1-1/build“ wird betreten
make[1]: Verzeichnis „/usr/lib/modules/5.17.7-arch1-1/build“ wird verlassen
make -C /lib/modules/5.17.7-arch1-1/build M=/xmm7360-pci modules_install
make[1]: Verzeichnis „/usr/lib/modules/5.17.7-arch1-1/build“ wird betreten
INSTALL /lib/modules/5.17.7-arch1-1/extra/xmm7360.ko
SIGN /lib/modules/5.17.7-arch1-1/extra/xmm7360.ko
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: crypto/bio/bss_file.c:76
sign-file: ./certs/signing_key.pem: No such file or directory
ZSTD /lib/modules/5.17.7-arch1-1/extra/xmm7360.ko.zst
DEPMOD /lib/modules/5.17.7-arch1-1
make[1]: Verzeichnis „/usr/lib/modules/5.17.7-arch1-1/build“ wird verlassen
sudo /sbin/rmmod xmm7360
rmmod: ERROR: Module xmm7360 is not currently loaded
make: [Makefile:18: load] Fehler 1 (ignoriert)
sudo /sbin/insmod xmm7360.ko
… which re-compiles, removes and re-installs the module, then the modem chat python script starts …
RPC executing UtaMsSmsInit
b'1600000002040000001602040000003011000100020400000000'
… and stalls. Pressing ^C here results in …
Traceback (most recent call last):
File "/xmm7360-pci/rpc/open_xdatachannel.py", line 45, in <module>
r.execute('UtaMsSmsInit')
File "/xmm7360-pci/rpc/rpc.py", line 69, in execute
resp = self.pump()
File "/xmm7360-pci/rpc/rpc.py", line 27, in pump
message = os.read(self.fp, 131072)
KeyboardInterrupt
tim ~ $
Calling my script again now (after enabling WWAN in Windows) results in a working WWAN connection.
Yes, i have the same on first start. It like hang's up. I rewrite lte.sh script a little. It checks wwna0 interface and create/delete it accordingly.
cat /usr/local/etc/xmm7360/scripts/lte-switch.sh
SCRIPT_PATH=$(readlink -f $0)
SCRIPT_DIR=dirname $SCRIPT_PATH
CONF_FILE=$SCRIPT_DIR/../xmm7360.ini
if [ -f "$CONF_FILE" ]; then source $CONF_FILE else echo "no configuration file found, you can create it by copying the sample file like this:" echo "cp $CONF_FILE.sample $CONF_FILE" exit 1 fi
ip link show wwan0
if [ $? == 1 ] then cd $SCRIPT_DIR/.. make make load sleep 2 python3 $SCRIPT_DIR/../rpc/open_xdatachannel.py ip link set wwan0 up else ip link set wwan0 down rmmod xmm7360 || true fi
Have added this script to systemd service, have allowed to my user run this service as sudo without password and have created .desctop file.
Looking at most issues, I still haven't found a solution.
I noticed that some SIM needs to provide password and user. If apN is wrong, could you please tell me the correct configuration of XMM7360.ini
I'm stuck at this point
lte