WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: pppd or wvdial  (Read 4418 times)

Offline andyb1973

  • Newbie
  • *
  • Posts: 16
pppd or wvdial
« 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

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: pppd or wvdial
« Reply #1 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


Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: pppd or wvdial
« Reply #2 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.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: pppd or wvdial
« Reply #3 on: February 12, 2022, 03:20:33 AM »
wvdial posted - not tested

Offline andyb1973

  • Newbie
  • *
  • Posts: 16
Re: pppd or wvdial
« Reply #4 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?
« Last Edit: May 06, 2022, 12:19:36 PM by andyb1973 »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: pppd or wvdial
« Reply #5 on: May 06, 2022, 01:35:21 PM »
The ppp modules extension is missing - I’ll try to add it tomorrow..

Offline andyb1973

  • Newbie
  • *
  • Posts: 16
Re: pppd or wvdial
« Reply #6 on: May 06, 2022, 01:45:08 PM »
thx, let's go!

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: pppd or wvdial
« Reply #7 on: May 07, 2022, 04:03:57 AM »
posted

Offline andyb1973

  • Newbie
  • *
  • Posts: 16
Re: pppd or wvdial
« Reply #8 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

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: pppd or wvdial
« Reply #9 on: May 09, 2022, 02:44:34 AM »
If you mean armv6, yes.

Offline andyb1973

  • Newbie
  • *
  • Posts: 16
Re: pppd or wvdial
« Reply #10 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

Offline andyb1973

  • Newbie
  • *
  • Posts: 16
Re: pppd or wvdial
« Reply #11 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

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14812
Re: pppd or wvdial
« Reply #12 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.

Offline andyb1973

  • Newbie
  • *
  • Posts: 16
Re: pppd or wvdial
« Reply #13 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)


Offline andyb1973

  • Newbie
  • *
  • Posts: 16
Re: pppd or wvdial
« Reply #14 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