Skip to content

Commit 6f7ae75

Browse files
committed
first commit
0 parents  commit 6f7ae75

15 files changed

+2125
-0
lines changed

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.config
2+
*.o
3+
*.pyc
4+
*.a
5+
*.d
6+
7+
# gtags
8+
GTAGS
9+
GRTAGS
10+
GPATH
11+
12+
# emacs
13+
.dir-locals.el
14+
15+
# emacs temp file suffixes
16+
*~
17+
.#*
18+
\#*#
19+
20+
build/
21+
temp/
22+
*.dis
23+
*.elf
24+
*.map
25+
**/.DS_Store

BUILD

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
export HOST_PLATFORM=linux
3+
export PATH=$PATH:/home/LoBo2_Razno/ESP32/xtensa-esp32-elf/bin
4+
export IDF_PATH=/home/LoBo2_Razno/ESP32/esp-idf-withppp
5+
6+
make "$@"

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
3+
# project subdirectory.
4+
#
5+
6+
PROJECT_NAME := pppos_client
7+
8+
include $(IDF_PATH)/make/project.mk
9+

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#PPP over Serial (PPPoS) client example
2+
3+
This example uses the [pppos patches](https://github.com/amuzyka-grinn/esp-idf) proposed by amuzyka-grinn.
4+
5+
Until those patches are not pulled to esp-idf, you must patch your esp-idf.
6+
7+
##This is the required procedure:
8+
9+
1. copy all files from patches directory to the root of your esp-idf
10+
2. go to esp-idf directory and execute 'apply_ppp_patch.sh'
11+
3. go back to this example directory
12+
4. as with other ESP32 examples, set IDF-PATH variable and add 'xtensa-esp32-elf/bin' to your path
13+
5. execute make menuconfig, enable PPP support (Component config → LWIP → Enable PPP support)
14+
6. execute make all to build the example
15+
7. execute make flash to flash the example
16+
17+
##You can execute 'revert_ppp_patch.sh' in esp-idf to revert the changes before updating you esp-idf with 'git pull'
18+
19+
20+
It shows example of ppp client using lwip PPPoS api and GSM.
21+
22+
Before you run this example, make sure your GSM is in command mode and is registered to network.
23+
24+
Tested with GSM SIM800L.
25+

main/Kconfig.projbuild

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
menu "GSM configuration"
2+
3+
config GSM_INTERNET_USER
4+
string "Internet User"
5+
default ""
6+
help
7+
Network provider internet user.
8+
9+
config GSM_INTERNET_PASSWORD
10+
string "Internet password"
11+
default ""
12+
help
13+
Network provider internet password
14+
15+
config GSM_APN
16+
string "Internet APN"
17+
default "playmetric"
18+
help
19+
APN from network provider for internet access
20+
21+
endmenu

main/component.mk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#
2+
# "main" pseudo-component makefile.
3+
#
4+
# (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.)
5+
6+
# embed files from the "certs" directory as binary data symbols
7+
# in the app
8+
COMPONENT_EMBED_TXTFILES := server_root_cert.pem
9+
10+

0 commit comments

Comments
 (0)