WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Updated USB Modeswitch OR WWAN0?  (Read 8043 times)

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1239
Re: Updated USB Modeswitch OR WWAN0?
« Reply #15 on: October 21, 2021, 03:39:29 PM »
TC8->TC13 is a major change in kernels. 

Offline patrikg

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 708
Re: Updated USB Modeswitch OR WWAN0?
« Reply #16 on: October 21, 2021, 04:08:30 PM »
Have you tried to use some serial communication program like minicom screen.
To communicate to the /dev/ttyUSBX (X=the device nr) to send some AT Commands and maybe use the ppp communication protocol.

Like something like this.

https://wiki.archlinux.org/title/3G_and_GPRS_modems_with_pppd

And maybe you can hook the working usb modem to a windows computer and debug the serial communication to see what commands it sends from a working device driver.
Don't know if this is the correct program or this work with the current windows version.

https://docs.microsoft.com/sv-se/sysinternals/downloads/portmon

« Last Edit: October 21, 2021, 04:23:14 PM by patrikg »

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: Updated USB Modeswitch OR WWAN0?
« Reply #17 on: October 21, 2021, 04:57:32 PM »
Hummmm, maybe I'm onto something here ... LOL - How can we update the usb_modeswitch tcz?  I see the version in the repo is very old :(

snb@snb:~$ usb_modeswitch -e

 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.1.0 (C) Josua Dietze 2013
 * Based on libusb1/libusbx

It's possible I need 2.2.5 or upwards - Without compiling as such anyone able to help with a new usb_modeswitch build?

Thank you!


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: Updated USB Modeswitch OR WWAN0?
« Reply #19 on: October 22, 2021, 01:25:28 AM »
Unless something was missed, the extensions posted recently in the piCore repos are the latest versions:

http://www.tinycorelinux.net/13.x/armv6/tcz/usb-modeswitch.tcz.info
http://www.tinycorelinux.net/13.x/armv6/tcz/usb-modeswitch-data.tcz.info
« Last Edit: October 22, 2021, 01:36:50 AM by Juanito »

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: Updated USB Modeswitch OR WWAN0?
« Reply #20 on: October 22, 2021, 06:09:43 AM »
So seems modeswitch is correct so something else :(

I'm now wondering if modemmanager has all it's requirements as when I try use mmcli -L I get :

snb@snb:~$ mmcli -L
error: couldn't get bus: Could not connect: No such file or directory

Does that mean anything to anyone?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: Updated USB Modeswitch OR WWAN0?
« Reply #21 on: October 22, 2021, 07:53:02 AM »
You need to start the dbus daemon

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: Updated USB Modeswitch OR WWAN0?
« Reply #22 on: October 22, 2021, 08:30:27 AM »
do I need to do that as a boot command or? I just installed the dbus.tcz - perhaps that creates the /etc/init.d/ file to start?


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: Updated USB Modeswitch OR WWAN0?
« Reply #23 on: October 22, 2021, 08:34:24 AM »
You need to start the daemon manually - see the info file

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: Updated USB Modeswitch OR WWAN0?
« Reply #24 on: October 22, 2021, 09:08:43 AM »
Ah - the info file doesn’t say much - “sudo /usr/local/etc/init.d/dbus start”

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: Updated USB Modeswitch OR WWAN0?
« Reply #25 on: October 22, 2021, 09:22:04 AM »
after doing that and then when I query "status" all I get is :

Code: [Select]
snb@snb:~$ sudo /usr/local/etc/init.d/dbus status

dbus is not running.

I'm literally begging ANYONE on this forum that wants some paid work to PLEASE help me! I'm stuck, I'm taking shots in the dark and not getting anywhere.

I believe these modems should work 100% - But can't get them right - Please there must be someone??

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: Updated USB Modeswitch OR WWAN0?
« Reply #26 on: October 22, 2021, 09:36:43 AM »
How did you download dbus?

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: Updated USB Modeswitch OR WWAN0?
« Reply #27 on: October 22, 2021, 09:40:45 AM »
Normal tce-ab

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14790
Re: Updated USB Modeswitch OR WWAN0?
« Reply #28 on: October 22, 2021, 09:53:57 AM »
Are you missing a dep:
Code: [Select]
$ ldd `which dbus-daemon`
        linux-vdso.so.1 (0x7ef98000)
        libdbus-1.so.3 => /usr/local/lib/libdbus-1.so.3 (0x76f1e000)
        libexpat.so.1 => /usr/local/lib/libexpat.so.1 (0x76ef2000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x76ec8000)
        libc.so.6 => /lib/libc.so.6 (0x76d81000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x76d52000)
        /lib/ld-linux-armhf.so.3 (0x76f6d000)

Offline onelife

  • Full Member
  • ***
  • Posts: 141
Re: Updated USB Modeswitch OR WWAN0?
« Reply #29 on: October 22, 2021, 10:37:48 AM »
I think I have identical :

Code: [Select]
snb@snb:~$ ldd `which dbus-daemon`
linux-vdso.so.1 (0x7eff5000)
libdbus-1.so.3 => /usr/local/lib/libdbus-1.so.3 (0x76ecf000)
libexpat.so.1 => /usr/local/lib/libexpat.so.1 (0x76ea3000)
libpthread.so.0 => /lib/libpthread.so.0 (0x76e79000)
libc.so.6 => /lib/libc.so.6 (0x76d32000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x76d03000)
/lib/ld-linux-armhf.so.3 (0x76f1e000)