{"id":4183,"date":"2013-05-20T05:39:49","date_gmt":"2013-05-20T05:39:49","guid":{"rendered":"http:\/\/178.62.14.192\/?p=4183"},"modified":"2013-05-20T05:39:49","modified_gmt":"2013-05-20T05:39:49","slug":"communicate-over-serial-using-raspberrypi-and-c","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=4183","title":{"rendered":"Communicate over serial using #RaspberryPi and C#"},"content":{"rendered":"<p>Not sure why anyone would want to use C# on the Pi&#8230; but I guess if you have the skills then why not. Here&#8217;s a quick example of using C# to send text out over the serial port.\u00a0<a href=\"http:\/\/blog.mark-stevens.co.uk\/?p=969\">Read more here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Not sure why anyone would want to use C# on the Pi&#8230; but I guess if you have the skills then why not. Here&#8217;s a quick example of using C# to send text out over the serial port.\u00a0Read more here<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=4183\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[39],"tags":[],"class_list":["post-4183","post","type-post","status-publish","format-standard","hentry","category-programming"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Communicate over serial using #RaspberryPi and C# - Raspberry Pi Pod<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=4183\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Communicate over serial using #RaspberryPi and C# - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"Not sure why anyone would want to use C# on the Pi&#8230; but I guess if you have the skills then why not. Here&#8217;s a quick example of using C# to send text out over the serial port.\u00a0Read more hereRead more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=4183\" \/>\n<meta property=\"og:site_name\" content=\"Raspberry Pi Pod\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/recantha\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-05-20T05:39:49+00:00\" \/>\n<meta name=\"author\" content=\"Michael Horne\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@recantha\" \/>\n<meta name=\"twitter:site\" content=\"@recantha\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Horne\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=4183#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=4183\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"Communicate over serial using #RaspberryPi and C#\",\"datePublished\":\"2013-05-20T05:39:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=4183\"},\"wordCount\":49,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#organization\"},\"articleSection\":[\"Programming\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=4183#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=4183\",\"url\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=4183\",\"name\":\"Communicate over serial using #RaspberryPi and C# - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#website\"},\"datePublished\":\"2013-05-20T05:39:49+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=4183#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=4183\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?p=4183#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Communicate over serial using #RaspberryPi and C#\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/\",\"name\":\"Raspberry Pi Pod\",\"description\":\"Experiences with the Raspberry Pi micro computer and microcontroller\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#organization\",\"name\":\"Raspberry Pi Pod\",\"url\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/www.recantha.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/www.recantha.co.uk\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/03\\\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"width\":800,\"height\":337,\"caption\":\"Raspberry Pi Pod\"},\"image\":{\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/recantha\\\/\",\"https:\\\/\\\/x.com\\\/recantha\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/recantha\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCK4F9blabxzmk8Inzhs8tpg\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/#\\\/schema\\\/person\\\/c27c4ef2ee1c18b130f1fcd5dcdbb263\",\"name\":\"Michael Horne\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"caption\":\"Michael Horne\"},\"url\":\"https:\\\/\\\/www.recantha.co.uk\\\/blog\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Communicate over serial using #RaspberryPi and C# - Raspberry Pi Pod","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.recantha.co.uk\/blog\/?p=4183","og_locale":"en_US","og_type":"article","og_title":"Communicate over serial using #RaspberryPi and C# - Raspberry Pi Pod","og_description":"Not sure why anyone would want to use C# on the Pi&#8230; but I guess if you have the skills then why not. Here&#8217;s a quick example of using C# to send text out over the serial port.\u00a0Read more hereRead more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=4183","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2013-05-20T05:39:49+00:00","author":"Michael Horne","twitter_card":"summary_large_image","twitter_creator":"@recantha","twitter_site":"@recantha","twitter_misc":{"Written by":"Michael Horne"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=4183#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=4183"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"Communicate over serial using #RaspberryPi and C#","datePublished":"2013-05-20T05:39:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=4183"},"wordCount":49,"commentCount":1,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"articleSection":["Programming"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=4183#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=4183","url":"https:\/\/www.recantha.co.uk\/blog\/?p=4183","name":"Communicate over serial using #RaspberryPi and C# - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"datePublished":"2013-05-20T05:39:49+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=4183#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=4183"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=4183#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Communicate over serial using #RaspberryPi and C#"}]},{"@type":"WebSite","@id":"https:\/\/www.recantha.co.uk\/blog\/#website","url":"https:\/\/www.recantha.co.uk\/blog\/","name":"Raspberry Pi Pod","description":"Experiences with the Raspberry Pi micro computer and microcontroller","publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.recantha.co.uk\/blog\/#organization","name":"Raspberry Pi Pod","url":"https:\/\/www.recantha.co.uk\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","width":800,"height":337,"caption":"Raspberry Pi Pod"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/recantha\/","https:\/\/x.com\/recantha","https:\/\/www.linkedin.com\/in\/recantha\/","https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg"]},{"@type":"Person","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263","name":"Michael Horne","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","caption":"Michael Horne"},"url":"https:\/\/www.recantha.co.uk\/blog\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2RsaV-15t","jetpack-related-posts":[{"id":11136,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=11136","url_meta":{"origin":4183,"position":0},"title":"First industrial application board with the Raspberry Pi Compute Module","author":"Michael Horne","date":"3 October 2014","format":false,"excerpt":"In what I think is a first for the Compute Module, French company\u00a0CALAO Systems\u00a0has just announced the launch of the PInBALL board - a platform for industrial Raspberry Pi users. It has the following specs: SoC \/ Memory \/ Storage\u00a0 \u2013 Via Raspberry Pi Compute Module \u2013 Broadcom BCM2835, 512MB\u2026","rel":"","context":"In &quot;Compute Module&quot;","block_context":{"text":"Compute Module","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=12"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.pinballboard.org\/images\/a\/a7\/PAC-1210-S200-B2835-EXX-TOP-SIDE.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.pinballboard.org\/images\/a\/a7\/PAC-1210-S200-B2835-EXX-TOP-SIDE.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.pinballboard.org\/images\/a\/a7\/PAC-1210-S200-B2835-EXX-TOP-SIDE.jpg?resize=525%2C300 1.5x"},"classes":[]},{"id":1621,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=1621","url_meta":{"origin":4183,"position":1},"title":"Serial communication between #RaspberryPi and #Arduino","author":"Michael Horne","date":"30 January 2013","format":false,"excerpt":"Great little tutorial on powering an Arduino from the Pi's 5V pin and also communicating via serial from the GPIO pins. Well worth a look if you want communication between the two to be faster. As the article points out, by using USB to connect an Arduino to the Pi,\u2026","rel":"","context":"In &quot;Arduino&quot;","block_context":{"text":"Arduino","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=55"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1180,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=1180","url_meta":{"origin":4183,"position":2},"title":"Measure temperature with Arduino and MCP9700","author":"Michael Horne","date":"4 January 2013","format":false,"excerpt":"Found a useful tutorial on using this tiny temperature sensor with the Arduino. Using the Raspberry Pi to program the Arduino using 'ino' and then monitoring the serial output with 'ino serial', I got a temperature reading and the whole thing, including wiring up, took me less than 15 minutes!\u2026","rel":"","context":"In &quot;Arduino&quot;","block_context":{"text":"Arduino","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=55"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":673,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=673","url_meta":{"origin":4183,"position":3},"title":"Login terminal over USB\/serial link to Jornada 680","author":"Michael Horne","date":"20 November 2012","format":false,"excerpt":"The aim To operate the Raspberry Pi using a Jornada 680 (pictured, left) as a dumb terminal. The solution The Jornada 680 has a cable for sync-ing to Windows, the end of which terminates with a serial connector. Now, as we know, the Pi does not have a serial port\u2026","rel":"","context":"In &quot;Accessories&quot;","block_context":{"text":"Accessories","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=54"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.wordpreneur.com\/wp-content\/uploads\/jornada680.JPG?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":3150,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=3150","url_meta":{"origin":4183,"position":4},"title":"Bluetooth serial port for your #Raspberry Pi","author":"Michael Horne","date":"24 March 2013","format":false,"excerpt":"Miguel Grinberg has written an excellent tutorial on using a cheap breakout board to allow a bluetooth connection to the Raspberry Pi's serial port\u00a0Read more here I've got one of these boards and completely failed to get it working based on a previous tutorial, so it'll be interesting to see\u2026","rel":"","context":"In &quot;GPIO boards&quot;","block_context":{"text":"GPIO boards","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=20"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/blog.miguelgrinberg.com\/static\/images\/raspberry-pi-bluetooth-01.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":12751,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=12751","url_meta":{"origin":4183,"position":5},"title":"RyanTeck Raspberry Pi Debug Clip review","author":"Michael Horne","date":"13 June 2015","format":false,"excerpt":"Pete Taylor got a Debug Clip from the recent Kickstarter campaign run by Ryan Walmsley. He's now put it through it's paces by using a Windows tablet to communicate with the Pi via serial. His review can be read here.","rel":"","context":"In &quot;Accessories&quot;","block_context":{"text":"Accessories","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=54"},"img":{"alt_text":"","src":"http:\/\/i1.wp.com\/kimondo.co.uk\/wp-content\/uploads\/2015\/06\/debugclipattached.png?resize=350%2C200","width":350,"height":200,"srcset":"http:\/\/i1.wp.com\/kimondo.co.uk\/wp-content\/uploads\/2015\/06\/debugclipattached.png?resize=350%2C200 1x, http:\/\/i1.wp.com\/kimondo.co.uk\/wp-content\/uploads\/2015\/06\/debugclipattached.png?resize=525%2C300 1.5x, http:\/\/i1.wp.com\/kimondo.co.uk\/wp-content\/uploads\/2015\/06\/debugclipattached.png?resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4183"}],"version-history":[{"count":0,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4183\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}