Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4741

Troubleshooting • ppp between a rasp pi zero and esp32

$
0
0
Good Day

I am tossing this out there for some suggestions. I am trying to see if I could get a PPP session between a rasp pi zero and esp32 that are hooked up via their UARTs with dupont wires. Thus far I can get the ESP32 and a raspberry pi zero to communicate via their serial port just fine with 'hello world'.

If I configure the pi zero as a 'ppp server':

Code:

stty -F /dev/ttyAMA0 rawpppd /dev/ttyAMA0 1000000 10.0.5.1:10.0.5.2 proxyarp local noauth debug nodetach dump nocrtscts passive persist maxfail 0 holdoff 1
I can get 2 raspi zeros to establish a ppp session perfectly. Yes, it's a full OS vs a micro controller. When I try with the esp32 as the client, it never establishes the ppp session, but again data ("Hello PI/ Hello World") transfers just fine via serial.

Any thoughts appreciated.


== logs Server

Code:

+ echo 'Starting pppd...'Starting pppd...+ stty -F /dev/ttyAMA0 raw+ pppd /dev/ttyAMA0 1000000 10.0.5.1:10.0.5.2 proxyarp local noauth debug nodetach dump nocrtscts passive persist maxfail 0 holdoff 1pppd options in effect:debug# (from command line)nodetach# (from command line)holdoff 1# (from command line)persist# (from command line)maxfail 0# (from command line)dump# (from command line)noauth# (from command line)/dev/ttyAMA0# (from command line)1000000# (from command line)lock# (from /etc/ppp/options)nocrtscts# (from command line)local# (from command line)asyncmap 0# (from /etc/ppp/options)passive# (from command line)lcp-echo-failure 4# (from /etc/ppp/options)lcp-echo-interval 30# (from /etc/ppp/options)hide-password# (from /etc/ppp/options)proxyarp# (from command line)10.0.5.1:10.0.5.2# (from command line)noipx# (from /etc/ppp/options)using channel 4Using interface ppp0Connect: ppp0 <--> /dev/ttyAMA0sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x3ad95e7c> <pcomp> <accomp>]sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x3ad95e7c> <pcomp> <accomp>]sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x3ad95e7c> <pcomp> <accomp>]sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x3ad95e7c> <pcomp> <accomp>]sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x3ad95e7c> <pcomp> <accomp>]sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x3ad95e7c> <pcomp> <accomp>]sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x3ad95e7c> <pcomp> <accomp>]sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x3ad95e7c> <pcomp> <accomp>]sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x3ad95e7c> <pcomp> <accomp>]sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x3ad95e7c> <pcomp> <accomp>]LCP: timeout sending Config-Requests
== Logs client

None really, but here's the code

Code:

import machineimport timeuart = machine.UART(2, baudrate=9600, tx=13, rx=14)import networkppp = network.PPP(uart)ppp.active(True)ppp.connect()ppp.ifconfig()ppp.isconnected()ppp.ifconfig(('10.0.5.1', '255.255.255.0', '10.0.5.1', '8.8.8.8'))

Statistics: Posted by phytoplank10 — Wed Jun 05, 2024 2:56 am



Viewing all articles
Browse latest Browse all 4741

Trending Articles