{"id":3692,"date":"2023-12-06T14:18:50","date_gmt":"2023-12-06T14:18:50","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=3692"},"modified":"2023-12-08T12:16:32","modified_gmt":"2023-12-08T12:16:32","slug":"uart-commands-and-config","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/programming-in-c\/uart-serial-port\/uart-commands-and-config","title":{"rendered":"UART commands and config"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">List serial ports<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>dmesg | grep tty<\/code><\/pre>\n\n\n\n<p>GPIO serial port is \/dev\/ttyAMA0<\/p>\n\n\n\n<p>USB when added usually has a USB in its name, e.g. \/dev\/ttyUSB0<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">List just USB serial ports<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>dmesg | grep ttyUSB<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">List all ports<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>ls \/dev\/tty*<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Assigning a fixed name to a USB serial port<\/h4>\n\n\n\n<p><a href=\"https:\/\/www.freva.com\/assign-fixed-usb-port-names-to-your-raspberry-pi\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.freva.com\/assign-fixed-usb-port-names-to-your-raspberry-pi\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>List serial ports GPIO serial port is \/dev\/ttyAMA0 USB when added usually has a USB in its name, e.g. \/dev\/ttyUSB0 List just USB serial ports List all ports Assigning a fixed name to a USB serial port https:\/\/www.freva.com\/assign-fixed-usb-port-names-to-your-raspberry-pi\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[190,27],"tags":[],"class_list":["post-3692","post","type-post","status-publish","format-standard","hentry","category-com-ports","category-uart-serial-port"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/3692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=3692"}],"version-history":[{"count":3,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/3692\/revisions"}],"predecessor-version":[{"id":3701,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/3692\/revisions\/3701"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=3692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=3692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=3692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}