Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7937673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:34:47+00:00 2026-06-03T22:34:47+00:00

all, when debugging embedded system, as you know, we usually communicate target device over

  • 0

all,

when debugging embedded system, as you know, we usually communicate target device over an uart console. Now I want to test “Magic sysrq” function in linux kernel, which need to send a “break” to console driver. I’ve found what does the “break” mean, seems I need to keep TX-line electrical low level for a while.
My question is how to send this break “character”, from APUE(Advanced program in unix), I have to call function “tcsendbreak”, which mean i have to write a program. I wander if i can use some specical keys to send that, like ^C etc.
Don’t methon “echo “x” > /proc/sysrq-trigger””, I know that, just have a discussion on other way 🙂

This is my terminal settings, I talk with target with ckermit.

stty -a < /dev/ttyUSB0 
speed 115200 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>;
swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z;
rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
ignbrk -brkint ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc 
-ixany -imaxbel -iutf8
-opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
-isig -icanon -iexten -echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl  
echoke
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T22:34:48+00:00Added an answer on June 3, 2026 at 10:34 pm

    From the documentation, it looks like Control-\ B will send a break in C-Kermit.

    Other ways…

    One way to send a break is to:

    1. Switch to a lower speed
    2. Send a Nul (0) or an @ (4016) — a character with many contiguous 0 bits will produce the framing error called a BREAK.
    3. Switch back to the original speed

    As you noted, the other way is to use the <termios.h> line control
    functions.

    #include <termios.h>
    
    int tcsendbreak(int fildes, int duration); // "duration" is ignored
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to send function names from a weak embedded system to the host
I want to remove all my debugging printf statements from my code .How can
I have program that I want to test on clean Windows installation. For now
All I need this for is strcpy(). I want to see whether the first
All I want is a pragmatic random number generator in C# so I can
All I want is to get the website URL. Not the URL as taken
I'm coding in an embedded language called JS. I want to be able to
i am having no problem at all compiling/debugging my web app, but when i
Note : This question has been re-asked with a summary of all debugging attempts
I did all sorts of debugging and referred to a multitude of sources and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.