{"id":973,"date":"2020-11-27T08:31:19","date_gmt":"2020-11-27T08:31:19","guid":{"rendered":"https:\/\/smartsensordevices.com\/?p=973"},"modified":"2021-05-05T13:45:11","modified_gmt":"2021-05-05T13:45:11","slug":"collect-and-export-data-from-bluetooth-devices","status":"publish","type":"post","link":"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/","title":{"rendered":"Collect and export data from bluetooth devices"},"content":{"rendered":"\n<p>This project will show how to collect real-time BLE data and export as csv using web browser.<\/p>\n\n\n\n<p>For this project, I am using Bluetooth Low Energy USB dongle called\u00a0<strong>BlueIO<\/strong>, which will act as a central device to retrieve data.\u00a0<strong>Hibou<\/strong>\u00a0Air Quality Monitor which will serve as a peripheral device to transmit the data. The script is simple to use and can be used for other purposes such as store the data into database or cloud.<\/p>\n\n\n\n<p>Things we need:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Google chrome version 78 or later (windows)<\/li><li><a href=\"https:\/\/www.bleuio.com\/\">BleuIO \u2014 Bluetooth Low Energy Adapter<\/a><\/li><li><a href=\"https:\/\/www.hiboucloud.com\/\">Hibou Air Quality Monitor sensor device<\/a><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"toc-before-we-start-0\">Before we start<\/h3>\n\n\n\n<p>The article assumes you have some general knowledge of how Bluetooth Low Energy (BLE) work. Since the Chrome Serial specification on Google Chrome is not finalized yet, you will have to go to enable the highlighted flag, and restart Chrome.<\/p>\n\n\n\n<p>open&nbsp;<strong>chrome:\/\/flags\/#enable-experimental-web-platform-features<\/strong>&nbsp;in chrome browser. \u200b<\/p>\n\n\n\n<p>In this example, we are going to use JavaScript + html (and some CSS for styling) to setup the&nbsp;<strong>BleuIO<\/strong>&nbsp;and quickly start scanning.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"toc-steps-1\">Steps:<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Clone the git repository.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/smart-sensor-devices-ab\/export_ble_data.git<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Connect the&nbsp;<strong>Bleuio&nbsp;<\/strong>dongle to your computer.<\/li><li>Open&nbsp;<strong>index.html<\/strong>&nbsp;file<\/li><li>Click&nbsp;<strong>connect&nbsp;<\/strong>and wait for the device to load on your com port.<\/li><li>Select your com port.<\/li><li>Scan for BLE devices. (this script only scan for Hibou Devices. You can change the manufacturer value at script.js file)<\/li><li>Select device and start getting data. You will get real time value on the screen.<\/li><li>Once you click on stop getting data. you will see all the data showing on a table between the time period. You can view data or export in csv.<\/li><\/ul>\n\n\n\n<p><strong>Project Video<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"How to export collect and export BLE data\" width=\"500\" height=\"375\" src=\"https:\/\/www.youtube.com\/embed\/RW9AzK9xFDc?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This project will show how to collect real-time BLE data and export as csv using web browser. For this project, I am using Bluetooth Low Energy USB dongle called\u00a0BlueIO, which will act as a central device to retrieve data.\u00a0Hibou\u00a0Air Quality Monitor which will serve as a peripheral device to transmit the data. The script is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":974,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,21],"tags":[],"class_list":["post-973","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bleuio","category-bleuio-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Collect and export data from bluetooth devices - SMART SENSOR DEVICES AB<\/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:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Collect and export data from bluetooth devices - SMART SENSOR DEVICES AB\" \/>\n<meta property=\"og:description\" content=\"This project will show how to collect real-time BLE data and export as csv using web browser. For this project, I am using Bluetooth Low Energy USB dongle called\u00a0BlueIO, which will act as a central device to retrieve data.\u00a0Hibou\u00a0Air Quality Monitor which will serve as a peripheral device to transmit the data. The script is [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/\" \/>\n<meta property=\"og:site_name\" content=\"SMART SENSOR DEVICES AB\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-27T08:31:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-05T13:45:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/11\/export-ble-data-bluetooth.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"620\" \/>\n\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"siteManager\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@ssd_techs\" \/>\n<meta name=\"twitter:site\" content=\"@ssd_techs\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"siteManager\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/\"},\"author\":{\"name\":\"siteManager\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#\/schema\/person\/fb91963eccab9e33d2377d360b28d7a1\"},\"headline\":\"Collect and export data from bluetooth devices\",\"datePublished\":\"2020-11-27T08:31:19+00:00\",\"dateModified\":\"2021-05-05T13:45:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/\"},\"wordCount\":293,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/11\/export-ble-data-bluetooth.jpg\",\"articleSection\":[\"BleuIO\",\"BleuIO tutorial\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/\",\"url\":\"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/\",\"name\":\"Collect and export data from bluetooth devices - SMART SENSOR DEVICES AB\",\"isPartOf\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/11\/export-ble-data-bluetooth.jpg\",\"datePublished\":\"2020-11-27T08:31:19+00:00\",\"dateModified\":\"2021-05-05T13:45:11+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/#primaryimage\",\"url\":\"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/11\/export-ble-data-bluetooth.jpg\",\"contentUrl\":\"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/11\/export-ble-data-bluetooth.jpg\",\"width\":620,\"height\":350},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/smartsensordevices.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Collect and export data from bluetooth devices\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#website\",\"url\":\"https:\/\/smartsensordevices.com\/blog\/\",\"name\":\"SMART SENSOR DEVICES AB\",\"description\":\"IOT solutions for the future\",\"publisher\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/smartsensordevices.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#organization\",\"name\":\"SMART SENSOR DEVICES AB\",\"url\":\"https:\/\/smartsensordevices.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/03\/cropped-SSD-color.png\",\"contentUrl\":\"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/03\/cropped-SSD-color.png\",\"width\":756,\"height\":230,\"caption\":\"SMART SENSOR DEVICES AB\"},\"image\":{\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/ssd_techs\",\"https:\/\/www.linkedin.com\/company\/smart-sensor-devices-ab\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#\/schema\/person\/fb91963eccab9e33d2377d360b28d7a1\",\"name\":\"siteManager\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/smartsensordevices.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cca20a2883c689ad2ed55eff75dd546d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cca20a2883c689ad2ed55eff75dd546d?s=96&d=mm&r=g\",\"caption\":\"siteManager\"},\"url\":\"https:\/\/smartsensordevices.com\/blog\/author\/ssdadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Collect and export data from bluetooth devices - SMART SENSOR DEVICES AB","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:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/","og_locale":"en_US","og_type":"article","og_title":"Collect and export data from bluetooth devices - SMART SENSOR DEVICES AB","og_description":"This project will show how to collect real-time BLE data and export as csv using web browser. For this project, I am using Bluetooth Low Energy USB dongle called\u00a0BlueIO, which will act as a central device to retrieve data.\u00a0Hibou\u00a0Air Quality Monitor which will serve as a peripheral device to transmit the data. The script is [&hellip;]","og_url":"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/","og_site_name":"SMART SENSOR DEVICES AB","article_published_time":"2020-11-27T08:31:19+00:00","article_modified_time":"2021-05-05T13:45:11+00:00","og_image":[{"width":620,"height":350,"url":"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/11\/export-ble-data-bluetooth.jpg","type":"image\/jpeg"}],"author":"siteManager","twitter_card":"summary_large_image","twitter_creator":"@ssd_techs","twitter_site":"@ssd_techs","twitter_misc":{"Written by":"siteManager","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/#article","isPartOf":{"@id":"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/"},"author":{"name":"siteManager","@id":"https:\/\/smartsensordevices.com\/blog\/#\/schema\/person\/fb91963eccab9e33d2377d360b28d7a1"},"headline":"Collect and export data from bluetooth devices","datePublished":"2020-11-27T08:31:19+00:00","dateModified":"2021-05-05T13:45:11+00:00","mainEntityOfPage":{"@id":"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/"},"wordCount":293,"commentCount":0,"publisher":{"@id":"https:\/\/smartsensordevices.com\/blog\/#organization"},"image":{"@id":"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/#primaryimage"},"thumbnailUrl":"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/11\/export-ble-data-bluetooth.jpg","articleSection":["BleuIO","BleuIO tutorial"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/","url":"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/","name":"Collect and export data from bluetooth devices - SMART SENSOR DEVICES AB","isPartOf":{"@id":"https:\/\/smartsensordevices.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/#primaryimage"},"image":{"@id":"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/#primaryimage"},"thumbnailUrl":"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/11\/export-ble-data-bluetooth.jpg","datePublished":"2020-11-27T08:31:19+00:00","dateModified":"2021-05-05T13:45:11+00:00","breadcrumb":{"@id":"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/#primaryimage","url":"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/11\/export-ble-data-bluetooth.jpg","contentUrl":"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/11\/export-ble-data-bluetooth.jpg","width":620,"height":350},{"@type":"BreadcrumbList","@id":"https:\/\/smartsensordevices.com\/blog\/collect-and-export-data-from-bluetooth-devices\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/smartsensordevices.com\/"},{"@type":"ListItem","position":2,"name":"Collect and export data from bluetooth devices"}]},{"@type":"WebSite","@id":"https:\/\/smartsensordevices.com\/blog\/#website","url":"https:\/\/smartsensordevices.com\/blog\/","name":"SMART SENSOR DEVICES AB","description":"IOT solutions for the future","publisher":{"@id":"https:\/\/smartsensordevices.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/smartsensordevices.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/smartsensordevices.com\/blog\/#organization","name":"SMART SENSOR DEVICES AB","url":"https:\/\/smartsensordevices.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smartsensordevices.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/03\/cropped-SSD-color.png","contentUrl":"https:\/\/smartsensordevices.com\/blog\/wp-content\/uploads\/2020\/03\/cropped-SSD-color.png","width":756,"height":230,"caption":"SMART SENSOR DEVICES AB"},"image":{"@id":"https:\/\/smartsensordevices.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/ssd_techs","https:\/\/www.linkedin.com\/company\/smart-sensor-devices-ab\/"]},{"@type":"Person","@id":"https:\/\/smartsensordevices.com\/blog\/#\/schema\/person\/fb91963eccab9e33d2377d360b28d7a1","name":"siteManager","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/smartsensordevices.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cca20a2883c689ad2ed55eff75dd546d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cca20a2883c689ad2ed55eff75dd546d?s=96&d=mm&r=g","caption":"siteManager"},"url":"https:\/\/smartsensordevices.com\/blog\/author\/ssdadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/posts\/973"}],"collection":[{"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/comments?post=973"}],"version-history":[{"count":2,"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/posts\/973\/revisions"}],"predecessor-version":[{"id":1044,"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/posts\/973\/revisions\/1044"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/media\/974"}],"wp:attachment":[{"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/media?parent=973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/categories?post=973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartsensordevices.com\/blog\/wp-json\/wp\/v2\/tags?post=973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}