Skip to content

add watch dog timer for disconnection, 3 case (Client reset, Host reset, Host long off), when TCP(PROTOCOL_TCP) and Access Point mode(MODE_AP)#3

Open
takurx wants to merge 13 commits into
yuri-rage:masterfrom
takurx:pullreq/add_wdt
Open

add watch dog timer for disconnection, 3 case (Client reset, Host reset, Host long off), when TCP(PROTOCOL_TCP) and Access Point mode(MODE_AP)#3
takurx wants to merge 13 commits into
yuri-rage:masterfrom
takurx:pullreq/add_wdt

Conversation

@takurx

@takurx takurx commented Dec 17, 2025

Copy link
Copy Markdown

add watch dog timer for disconnection, 3 case (Client reset, Host reset, Host long off), when TCP(PROTOCOL_TCP) and Access Point mode(MODE_AP)

  1. Client Reset, Client is short off -> If it input from host to client and host and client auto-reconnect
  2. Host Reset, Host is short off -> OK, it's auto-reconnect
  3. Host long off -> client reset by watch dog timer every 30 seconds until host reboot, after that it's auto reconnect

takurx added 13 commits October 7, 2025 20:08
tested UDP and TCP -> It is better TCP on my environment
- case of UDP
Ok, Host -> Client communication
Broken, Client -> Host communication
- case of TCP
Ok, bi-direction, Host -> Client and Client <- Host
add speed test python code
add result of speed test, Client -> Host, communication speed has limit?

Client -> Host, communication speed has limitation? 80000 bps?

0. same condition
1. TCP only without UDP waiting -> same speed
2. buffer size 1024 -> 2048, 80000 -> 77000 bps downed
checking fastest speed......
config.hを変えてみたりしたが変わらない
- Host -> Client, around 13000 bps, 1/10
- Client -> Host, around 115200 bps
config.hを変えてみたりしたが変わらない
- Host -> Client, around 13000 bps, 1/10
- Client -> Host, around 115200 bps
test adding watch dog timer, wdt
Host側が落ちた時に無限ループかつWatch dog timerが効かなかったエラーを修正
1. Client側が落ちた場合(ClientのReset)→Host側からの入力で回復
2. Host側が落ちてすぐ回復した場合(HostのReset)→OK
3. Host側が落ちて回復しない場合(HostのOFF)→30sごとにWatch dog TimerでClientをReset
の3ケースに対応した
delete commented line
delete development memo
undo for pull request
undo for pull request 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant