Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: andyb1973 on February 10, 2022, 02:26:41 PM

Title: pppd or wvdial
Post by: andyb1973 on February 10, 2022, 02:26:41 PM
hello,
new from Italy. i'm loving tiny and i used in rasp pi0
in this moment i 'm creating this board to use a gps 3g/modem e gps usb (then wget to m server @home that saves lan & long to display in a php page, yes i know quite silly)
with raspos, time to turn on is about 1 minutes or two (boot and take 3g portant)
my tiny is quite ok BUT i can find the way to connect 3g modem (the usb-modeswitch is ok and well configured so i see the ttyUSB device)
i'm trying finding wvdial (i use with raspos) or pppd (i will suicide okok)
i'm using tiny v13 i suppose, the last one for rasp0 v6 (testing on rasp3 for better perf @preprod)

the packages seems to not be available for 13.*... what am i loosing?

(sorry for english like my cats)

thanks in advance
Title: Re: pppd or wvdial
Post by: Rich on February 10, 2022, 04:07:08 PM
Hi andyb1973
Welcome to the forum.

... or pppd ...
Maybe this is what you are looking for:
http://www.tinycorelinux.net/13.x/armv6/tcz/ppp.tcz.info
According to this it contains  pppd :
http://www.tinycorelinux.net/13.x/armv6/tcz/ppp.tcz.list

Title: Re: pppd or wvdial
Post by: Juanito on February 11, 2022, 12:17:27 AM
wvdial was compiled for piCore 9.x - the build notes are here: http://www.tinycorelinux.net/9.x/armv7/tcz/src/wvdial/ in case you'd like to recompile it.
Title: Re: pppd or wvdial
Post by: Juanito on February 12, 2022, 03:20:33 AM
wvdial posted - not tested
Title: Re: pppd or wvdial
Post by: andyb1973 on May 06, 2022, 12:16:16 PM
tce-load -wi wvdial
wvdial.tcz.dep OK
wvstreams.tcz.dep OK
readline.tcz.dep OK
ppp.tcz.dep OK
Downloading: ppp-modules-5.10.77-piCore-v7.tcz

404

what am i doing?
Title: Re: pppd or wvdial
Post by: Juanito on May 06, 2022, 01:35:21 PM
The ppp modules extension is missing - I’ll try to add it tomorrow..
Title: Re: pppd or wvdial
Post by: andyb1973 on May 06, 2022, 01:45:08 PM
thx, let's go!
Title: Re: pppd or wvdial
Post by: Juanito on May 07, 2022, 04:03:57 AM
posted
Title: Re: pppd or wvdial
Post by: andyb1973 on May 09, 2022, 02:20:08 AM
you do it man..

now i try to solve the modem switcher...

have you posted also the versione per rap0 (6)?

thx
Title: Re: pppd or wvdial
Post by: Juanito on May 09, 2022, 02:44:34 AM
If you mean armv6, yes.
Title: Re: pppd or wvdial
Post by: andyb1973 on May 09, 2022, 11:26:10 AM
thank you

now i'm trying using old E1750 modem (i never used before, so i don'è know if the script under usb_modeswitch is correct)...

next month i'll use the 3g key i use in the car, so will be more correct


@now wvdial says me:
--> WvDial: Internet dialer version 1.61
--> Initializing modem.
--> Sending: ATX
ATX
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","TM",,0,0
AT+CGDCONT=1,"IP","TM",,0,0
OK
--> Modem initialized.
Segmentation fault
Title: Re: pppd or wvdial
Post by: andyb1973 on May 09, 2022, 11:32:40 AM
let's have a presentation of the project:
i've some unused rasp (3, 0, 0w), so i decide to make a "nice" gps tracker to hide in car or motocycle.

it connect throut 3g and, by the dongle gps, sends gps lat & lon to a server (it read line by ACM0 without gps sw installed)

the first release (raspbian) is quite good, but it needs over 1 minutes to start, so i'd want to maximixe poweron and be more clean

THX
Title: Re: pppd or wvdial
Post by: Juanito on May 09, 2022, 12:01:11 PM
If you look at the last few lines of the output of the dmesg command it should give some details about the seg fault.
Title: Re: pppd or wvdial
Post by: andyb1973 on May 10, 2022, 12:52:58 PM
none lines of dmesg.. strange...

last ones:
[   56.379228] usbserial: USB Serial support registered for GSM modem (1-port)
[   56.379491] option 1-1.1.3:1.0: GSM modem (1-port) converter detected
[   56.379813] usb 1-1.1.3: GSM modem (1-port) converter now attached to ttyUSB0
[   56.379975] option 1-1.1.3:1.1: GSM modem (1-port) converter detected
[   56.380185] usb 1-1.1.3: GSM modem (1-port) converter now attached to ttyUSB1
(usbmode swtich i think)

Title: Re: pppd or wvdial
Post by: andyb1973 on May 10, 2022, 02:29:40 PM
i used the guide here (http://forum.tinycorelinux.net/index.php?topic=458.0) with pppd (and so much files)

then i needed to add apn but it seems to work... wake in una minute... like raspbian.. uhm
in pppsxript added
   OK-AT-OK @/etc/ppp/apn
and the file apn is like
    AT+CGDCONT=1,"IP","TM","0.0.0.0",0,0

made also a cycle in my autoexec.sh (conn.sh) that relaoad every 5 secs the command:
    (
        while : ; do
##      wvdial play > /dev/null 2>&1
           pppd connect "chat -v -s -f /etc/ppp/pppscript"
        sleep 5
        done
    ) &

i though the autostart was faster (placed in /opt/bootlocal.sh)

uhmmm


Title: Re: pppd or wvdial
Post by: patrikg on May 11, 2022, 09:47:12 AM
I think you need to use more advanced tools to find the Segmentation fault problem.
You can try to use strace command line utility to see if you see some more what's going wrong.
Title: Re: pppd or wvdial
Post by: andyb1973 on May 13, 2022, 11:13:57 AM
about ppp i'm using:

rasp3 is ok (i used versione 6)
rap 0 if i run ppp (thesame sdcard): pppd: Please load the ppp_generic kernel module.

what am i missing?
i developed with rasp3 with core 6... is it correct?

thx

Title: Re: pppd or wvdial
Post by: Juanito on May 13, 2022, 11:31:59 AM
Do you mean that you are using armv6 extensions or that you are using piCore-6.0?

The current version is piCore-13.1

Did you try “sudo modprobe ppp_generic”

The RPi0 does not use the same ppp kernel modules extension as the RPi3.
Title: Re: pppd or wvdial
Post by: andyb1973 on May 13, 2022, 12:58:37 PM
ppp kernel correct yes, perfect

thx