{"id":639,"date":"2011-12-05T15:22:02","date_gmt":"2011-12-05T15:22:02","guid":{"rendered":"http:\/\/41j.com\/blog\/?p=639"},"modified":"2011-12-05T16:21:10","modified_gmt":"2011-12-05T16:21:10","slug":"gumstix-serial-device-emulation","status":"publish","type":"post","link":"https:\/\/41j.com\/blog\/2011\/12\/gumstix-serial-device-emulation\/","title":{"rendered":"Gumstix serial device emulation"},"content":{"rendered":"<p>Once you have the <a href=\"http:\/\/41j.com\/blog\/2011\/11\/gumstix-as-usb-storage-device\/\">kernel built for peripheral mode<\/a>, getting the gumstix to emulate a serial port is pretty straight forward, just load the g_serial module. This will create a device called \/dev\/ttyGS0.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmodprobe g_serial\r\ncat \/dev\/random &gt; \/dev\/ttyGS0\r\n<\/pre>\n<p>I could get about 3.5 Kilobytes a second over the link.<\/p>\n<p>You can also use g_multi to get serial and mass storage at the same time:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmodprobe g_multi file=\/file_store_data\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Once you have the kernel built for peripheral mode, getting the gumstix to emulate a serial port is pretty straight forward, just load the g_serial module. This will create a device called \/dev\/ttyGS0. modprobe g_serial cat \/dev\/random &gt; \/dev\/ttyGS0 I could get about 3.5 Kilobytes a second over the link. You can also use g_multi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-639","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1RRoU-aj","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/639","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/comments?post=639"}],"version-history":[{"count":2,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/639\/revisions"}],"predecessor-version":[{"id":641,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/639\/revisions\/641"}],"wp:attachment":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/media?parent=639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/categories?post=639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/tags?post=639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}