apache / mynewt-newtmgr

Newt Manager (newtmgr) is the application tool that enables a user to communicate with and manage remote devices running the Mynewt OS
https://mynewt.apache.org/
Apache License 2.0
35 stars 77 forks source link

Fix not working MTU exchange on newer versions of mac #192

Closed m-gorecki closed 1 year ago

m-gorecki commented 1 year ago

It seems like on newer versions of mac (e.g. Monterey) fix with looping three times to get right MTU doesn't work. Also for some strange reason default TxMTU is set to 17 instead of 23. Now user can set MTU from the command line (-m ). If MTU is not set in the command line and after performing three loops MTU is still <23 we hardcode it to 185.

m-gorecki commented 1 year ago

@ccollins476ad I know this is dirty hack, but we had no better idea to fix this. This way image upload over ble at least works (unless the boards MTU turns out to be less than 185).