You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "Gary-Hobson (via GitHub)" <gi...@apache.org> on 2026/01/22 09:53:33 UTC

[PR] drivers/net/slip: set serial port to raw mode to prevent character escaping [nuttx]

Gary-Hobson opened a new pull request, #18100:
URL: https://github.com/apache/nuttx/pull/18100

   ### Summary
   
   Set SLIP driver's serial port to raw mode using `cfmakeraw()` to prevent character escaping that breaks SLIP protocol communication.
   
   When the serial port is configured as console, `\n` is automatically converted to `\r\n`, causing SLIP communication failures. This patch configures the TTY to raw mode to disable character processing.
   
   ### Impact
   
   drivers/net/slip.c
   
   No breaking changes. Fixes SLIP communication when serial port is configured as console.
   
   ### Testing
   
   Tested on ARM64 platform with both hardware UART and USB-to-UART adapters:
   - SLIP network communication verified working correctly
   - Data transmission without character escaping confirmed
   - No regression on non-console serial ports
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] drivers/net/slip: set serial port to raw mode to prevent character escaping [nuttx]

Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis commented on PR #18100:
URL: https://github.com/apache/nuttx/pull/18100#issuecomment-3784031811

   > > @simbit18 @tmedicci @fdcavalcanti :
   > > ```
   > > remote: Internal Server Error
   > > fatal: unable to access 'https://github.com/espressif/mbedtls.git/': The requested URL returned error: 500
   > > remote: Internal Server Error
   > > fatal: unable to access 'https://github.com/espressif/esp32c3-bt-lib.git/': The requested URL returned error: 500
   > > fatal: clone of 'https://github.com/espressif/esp32c3-bt-lib.git' into submodule path '/github/workspace/sources/nxtmpdir/esp-hal-3rdparty/components/bt/controller/lib_esp32c3_family' failed
   > > Failed to clone 'components/bt/controller/lib_esp32c3_family'. Retry scheduled
   > > remote: Internal Server Error
   > > fatal: unable to access 'https://github.com/espressif/esp-phy-lib.git/': The requested URL returned error: 500
   > > remote: Internal Server Error
   > > fatal: unable to access 'https://github.com/espressif/esp32-wifi-lib.git/': The requested URL returned error: 500
   > > fatal: Fetched in submodule path 'components/esp_wifi/lib', but it did not contain 7587592417ecdb5163a104aebaedee0a87794608. Direct fetching of that commit failed.
   > > fatal: 
   > > make[1]: *** [common/espressif/Make.defs:253: chip/esp-hal-3rdparty] Error 128
   > > make[1]: Target 'context' not remade because of errors.
   > > make: *** [tools/Unix.mk:458: arch/risc-v/src/.context] Error 2
   > > make: Target 'all' not remade because of errors.
   > > /github/workspace/sources/nuttx/tools/testbuild.sh: line 385: /github/workspace/sources/nuttx/../nuttx/nuttx.manifest: No such file or director
   > > ``
   > > ```
   > 
   > Try again, seems like Github issues.
   
   I restarted the CI just before pinging here. It is strange how Github become so unstable from time to time


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] drivers/net/slip: set serial port to raw mode to prevent character escaping [nuttx]

Posted by "fdcavalcanti (via GitHub)" <gi...@apache.org>.
fdcavalcanti commented on PR #18100:
URL: https://github.com/apache/nuttx/pull/18100#issuecomment-3783995084

   > @simbit18 @tmedicci @fdcavalcanti :
   > 
   > ```
   > remote: Internal Server Error
   > fatal: unable to access 'https://github.com/espressif/mbedtls.git/': The requested URL returned error: 500
   > remote: Internal Server Error
   > fatal: unable to access 'https://github.com/espressif/esp32c3-bt-lib.git/': The requested URL returned error: 500
   > fatal: clone of 'https://github.com/espressif/esp32c3-bt-lib.git' into submodule path '/github/workspace/sources/nxtmpdir/esp-hal-3rdparty/components/bt/controller/lib_esp32c3_family' failed
   > Failed to clone 'components/bt/controller/lib_esp32c3_family'. Retry scheduled
   > remote: Internal Server Error
   > fatal: unable to access 'https://github.com/espressif/esp-phy-lib.git/': The requested URL returned error: 500
   > remote: Internal Server Error
   > fatal: unable to access 'https://github.com/espressif/esp32-wifi-lib.git/': The requested URL returned error: 500
   > fatal: Fetched in submodule path 'components/esp_wifi/lib', but it did not contain 7587592417ecdb5163a104aebaedee0a87794608. Direct fetching of that commit failed.
   > fatal: 
   > make[1]: *** [common/espressif/Make.defs:253: chip/esp-hal-3rdparty] Error 128
   > make[1]: Target 'context' not remade because of errors.
   > make: *** [tools/Unix.mk:458: arch/risc-v/src/.context] Error 2
   > make: Target 'all' not remade because of errors.
   > /github/workspace/sources/nuttx/tools/testbuild.sh: line 385: /github/workspace/sources/nuttx/../nuttx/nuttx.manifest: No such file or director
   > ``
   > ```
   
   Try again, seems like Github issues.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] drivers/net/slip: set serial port to raw mode to prevent character escaping [nuttx]

Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis commented on PR #18100:
URL: https://github.com/apache/nuttx/pull/18100#issuecomment-3783938138

   @simbit18 @tmedicci @fdcavalcanti :
   
   ```
   remote: Internal Server Error
   fatal: unable to access 'https://github.com/espressif/mbedtls.git/': The requested URL returned error: 500
   remote: Internal Server Error
   fatal: unable to access 'https://github.com/espressif/esp32c3-bt-lib.git/': The requested URL returned error: 500
   fatal: clone of 'https://github.com/espressif/esp32c3-bt-lib.git' into submodule path '/github/workspace/sources/nxtmpdir/esp-hal-3rdparty/components/bt/controller/lib_esp32c3_family' failed
   Failed to clone 'components/bt/controller/lib_esp32c3_family'. Retry scheduled
   remote: Internal Server Error
   fatal: unable to access 'https://github.com/espressif/esp-phy-lib.git/': The requested URL returned error: 500
   remote: Internal Server Error
   fatal: unable to access 'https://github.com/espressif/esp32-wifi-lib.git/': The requested URL returned error: 500
   fatal: Fetched in submodule path 'components/esp_wifi/lib', but it did not contain 7587592417ecdb5163a104aebaedee0a87794608. Direct fetching of that commit failed.
   fatal: 
   make[1]: *** [common/espressif/Make.defs:253: chip/esp-hal-3rdparty] Error 128
   make[1]: Target 'context' not remade because of errors.
   make: *** [tools/Unix.mk:458: arch/risc-v/src/.context] Error 2
   make: Target 'all' not remade because of errors.
   /github/workspace/sources/nuttx/tools/testbuild.sh: line 385: /github/workspace/sources/nuttx/../nuttx/nuttx.manifest: No such file or director
   ``


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] drivers/net/slip: set serial port to raw mode to prevent character escaping [nuttx]

Posted by "Donny9 (via GitHub)" <gi...@apache.org>.
Donny9 merged PR #18100:
URL: https://github.com/apache/nuttx/pull/18100


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org