{"id":175,"date":"2021-04-03T21:41:20","date_gmt":"2021-04-04T01:41:20","guid":{"rendered":"http:\/\/course.ece.cmu.edu\/~ece500\/projects\/s21-teamc0\/?p=175"},"modified":"2021-04-03T21:50:15","modified_gmt":"2021-04-04T01:50:15","slug":"aarons-status-report-for-4-3","status":"publish","type":"post","link":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s21-teamc0\/2021\/04\/03\/aarons-status-report-for-4-3\/","title":{"rendered":"Aaron&#8217;s Status Report for 4\/3"},"content":{"rendered":"<p>This week I worked on interfacing the Raspberry Pi with the web app over Bluetooth. To accomplish this, I configured the Raspberry Pi to run a Bluetooth GATT Server to which the web app could connect to by Bluetooth pairing. After connecting, the GATT service on the Raspberry Pi presents the list of items ID&#8217;s in string format for the web app to read.<\/p>\n<p>The code for the GATT server is written in Python, and it uses the Bluez package&#8217;s BLE advertisement example code to run. I used the CPU temperature reporting example written by Douglas Otwell as inspiration for the code. The GATT server works by presenting a reporting &#8220;service,&#8221; which the web app can connect to via the service&#8217;s UUID. The service can then send data to the web app by exposing &#8220;characteristics&#8221; which can also be read via the characteristic UUID. We haved tested this functionality and have successfully transferred data between the Raspberry Pi and web app.<\/p>\n<p>In addition to working on the app-RPi Bluetooth interface, I also continued to work on improving the RPi-tag interface. With the arrival of a dedicated USB Bluetooth dongle, I began additional testing to determine it&#8217;s sensitivity and to compare it with the built-in Bluetooth antenna. Although the reported RSSI values were lower, the USB Bluetooth adapter was still able to detect the iBeacon tags within the necessary range for our purposes.<\/p>\n<p>One issue I encountered with the USB Bluetooth adapter is that the onboard Bluetooth controller is actually disabled if the OS detects a separate USB adapter. Despite various attempts at changing this behavior, including modifying configuration files and disabling certain services, I was unable to stop the built-in adapter from disabling itself. As a result, we have decided not to use the built-in adapter to determine tag distance. Instead, we are opting to use a total of 4 external USB Bluetooth adapters space apart in the backpack to determine the tag location. Having 4 RSSI readings will help improve the accuracy of the distance pruning algorithm, and make it less likely that an item outside of the backpack will be detected as being inside.<\/p>\n<p>For next week I plan on finalizing the RSSI calibration values for the new USB Bluetooth adapter, as the previous values I had for the built-in adapter no longer apply to our system. I also plan on adding time-out functionality so that if a tag is not detected for long enough it is removed from the item list, even if its distance is unknown.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week I worked on interfacing the Raspberry Pi with the web app over Bluetooth. To accomplish this, I configured the Raspberry Pi to run a Bluetooth GATT Server to which the web app could connect to by Bluetooth pairing. After connecting, the GATT service on the Raspberry Pi presents the list of items ID&#8217;s &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s21-teamc0\/2021\/04\/03\/aarons-status-report-for-4-3\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Aaron&#8217;s Status Report for 4\/3&#8221;<\/span><\/a><\/p>\n","protected":false},"author":409,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[7],"_links":{"self":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s21-teamc0\/wp-json\/wp\/v2\/posts\/175"}],"collection":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s21-teamc0\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s21-teamc0\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s21-teamc0\/wp-json\/wp\/v2\/users\/409"}],"replies":[{"embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s21-teamc0\/wp-json\/wp\/v2\/comments?post=175"}],"version-history":[{"count":2,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s21-teamc0\/wp-json\/wp\/v2\/posts\/175\/revisions"}],"predecessor-version":[{"id":180,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s21-teamc0\/wp-json\/wp\/v2\/posts\/175\/revisions\/180"}],"wp:attachment":[{"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s21-teamc0\/wp-json\/wp\/v2\/media?parent=175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s21-teamc0\/wp-json\/wp\/v2\/categories?post=175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/course.ece.cmu.edu\/~ece500\/projects\/s21-teamc0\/wp-json\/wp\/v2\/tags?post=175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}