|How To Use SocketCAN With C++ In Linux|
ContentsOverviewOpening InterfaceReading And WritinglibsocketcanExternal ResourcesOverview The Linux C/C++ API allows you to control a SocketCAN interface via a C/C++ application. SocketCAN supports standard frame format (SFF), extended frame format (EFF) and CAN FD frames. Opening Interface Reading And Writing The data for reading and writing to the CAN bus is communicated through the can_frame struct … Continue reading How To Use SocketCAN With C++ In Linux
|How To Use SocketCAN With The Command-Line In Linux|
A tutorial (incl. code examples) on how to investigate and send/receive data on SocketCAN using the command-line interface in Linux.
Shortcut Description Tested On Ctrl+Alt+ArrowKey Switch to a different workspace. Ubuntu Ctrl+Alt+Shift+ArrowKey Move window to a different workspace. Ubuntu Like this:Like Loading...
|Linux Serial Ports Using C/C++|
ContentsOverviewEverything Is A FileDisabling Canonical ModeVMIN and VTIME ExplainedIssues With GettyExclusive AccessExamplesOverview Unluckily, using serial ports in Linux is not the easiest thing in the world. When dealing with the termios.h header, there are many finicky settings buried within multiple bytes worth of bitfields. Everything Is A File In typical UNIX style, serial ports are represented … Continue reading Linux Serial Ports Using C/C++
|Monitor Linux Process Memory Usage Using C/C++|
ContentsOverviewOverview Although it is relatively easy to obtain memory usage statistics in Linux, it can be non-trivial to get a good idea on the exact memory that a particular process is using. Here is one method that will provide you with the virtual and physical memory that the Linux process which calls this code is … Continue reading Monitor Linux Process Memory Usage Using C/C++
Explanations and usage examples on many of the common Linux programs such as ls, cp, mv, rm, awk, grep, sed, ssh, scp, rsync, find, fsk, kill, ps and more!
|The Basic Essentials You Should Do After Installing Ubuntu|
The system setup must do's for any Linux developer! Covers topics such as using the arrow keys for search history, increasing the workspace screen count and more!
|Users, Groups, And Permissions In Linux|
ContentsUser ManipulationGroup ManipulationPermissionsUser Manipulation To add a user called bart: Shell $ sudo useradd bart 1 $ sudo useradd bart Group Manipulation To add a pre-existing user called bart to the group simpsons: Shell $ groupadd -g simpsons bart 1 $ groupadd -g simpsons bart Permissions File and directory permissions are set in Linux with … Continue reading Users, Groups, And Permissions In Linux
|Using Serial Ports In Linux|
ContentsWhere Do Serial Ports Show Up In Linux?Changing The Permissions On A Serial PortWhere Do Serial Ports Show Up In Linux? Serial ports typically show up as files under the /dev/ folder. They are usually prefixed with tty. Common names include: ttyUSB0 A common name for a generic USB-to-serial adapter. Most FTDI or Prolific adapters show … Continue reading Using Serial Ports In Linux
Posted: July 16th, 2013 at 5:51 pm
Last Updated on: November 1st, 2017 at 9:10 am