当前位置:   article > 正文

RK3568 Debian10 EC20调试

rk3568 debian

overlay\etc\profile.d\start_ec20.sh

pppd call quectel-ppp &

overlay\etc\ppp\peers\quectel-ppp quectel-chat-connect quectel-chat-disconnect  

1. pppd and chat program:
If the two programs do not exist, customers can download the source code of them from
https://ppp.samba.org/download.html and port them to the module.

./configure

make

pppd and chat were packged pppd chat dirctery

2.quectel-ppp

  1. # /etc/ppp/peers/quectel-pppd
  2. # Usage:root>pppd call quectel-pppd
  3. #Modem path, like /dev/ttyUSB3,/dev/ttyACM0, depend on your module, default path is /dev/ttyUSB3
  4. /dev/ttyUSB2 115200
  5. #Insert the username and password for authentication, default user and password are test
  6. user "test" password "test"
  7. # The chat script, customize your APN in this file
  8. connect 'chat -s -v -f /etc/ppp/peers/quectel-chat-connect'
  9. # The close script
  10. disconnect 'chat -s -v -f /etc/ppp/peers/quectel-chat-disconnect'
  11. # Hide password in debug messages
  12. hide-password
  13. # The phone is not required to authenticate
  14. noauth
  15. # Debug info from pppd
  16. debug
  17. # If you want to use the HSDPA link as your gateway
  18. defaultroute
  19. # pppd must not propose any IP address to the peer
  20. noipdefault
  21. # No ppp compression
  22. novj
  23. novjccomp
  24. noccp
  25. ipcp-accept-local
  26. ipcp-accept-remote
  27. local
  28. # For sanity, keep a lock on the serial line
  29. lock
  30. modem
  31. dump
  32. nodetach
  33. # Hardware flow control
  34. nocrtscts
  35. remotename 3gppp
  36. ipparam 3gppp
  37. ipcp-max-failure 30
  38. # Ask the peer for up to 2 DNS server addresses
  39. usepeerdns

quectel-chat-connect

  1. # /etc/ppp/peers/quectel-chat-connect
  2. ABORT "BUSY"
  3. ABORT "NO CARRIER"
  4. ABORT "NO DIALTONE"
  5. ABORT "ERROR"
  6. ABORT "NO ANSWER"
  7. TIMEOUT 30
  8. "" AT
  9. OK ATE0
  10. OK ATI;+CSUB;+CSQ;+CPIN?;+COPS?;+CGREG?;&D2
  11. # Insert the APN provided by your network operator, default apn is 3gnet
  12. OK AT+CGDCONT=1,"IP","3gnet",,0,0
  13. OK ATD*99#
  14. CONNECT

quectel-chat-disconnect

  1. # /etc/ppp/peers/quectel-chat-disconnect
  2. ABORT "ERROR"
  3. ABORT "NO DIALTONE"
  4. SAY "\nSending break to the modem\n"
  5. "" +++
  6. "" +++
  7. "" +++
  8. SAY "\nGoodbay\n"

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/374077
推荐阅读
相关标签
  

闽ICP备14008679号