apache / apache/nuttx

Network debugging doesn't seem to work for PPP

Open
#9,544 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
4k
Forks
1.7k
Avg merge
1d 17h
Merged PRs (30d)
237

Description

I was testing PPP app and when try to enable network debugging, as shown below, nothing happens. I start investigating that, I remove **ninfo** ( app/netutils/pppd/ppp_config.h) and use **printf**, and works very well.
@acassis

![image](https://github.com/apache/nuttx/assets/41307385/4e379f88-524b-49b3-bf5e-c8d59fe615fb)

- With printf

```
NuttShell (NSH) NuttX-12.0.0
nsh> pppd &
pppd [4:100]
nsh> tun fd:3
tty fd:4
ipcp init

AHDLC_TX - transmit frame, protocol 0xc021, length 4 offline 0

0x05 0x01 0x00 0x04

AHDLC_TX - transmit frame, protocol 0xc021, length 4 offline 1

0x05 0x02 0x00 0x04

chat: ATZ

chat: OK
```
- Without printf
```
NuttShell (NSH) NuttX-12.0.0
nsh> pppd &
pppd [4:100]
nsh> chat: ATZ

chat: OK
chat: cmd 1, arg ON

chat: cmd 4, arg 30

chat: AT+QACCM=0,0

chat: cmd 2, arg 3

chat: OK AT+CGDCONT=1,"IP","tim.br"
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.