{"id":1289,"date":"2016-02-06T14:18:21","date_gmt":"2016-02-06T14:18:21","guid":{"rendered":"http:\/\/coolt.ch\/notizen\/?p=1289"},"modified":"2016-02-06T14:58:59","modified_gmt":"2016-02-06T14:58:59","slug":"ble-geraete-verbindung-introduction","status":"publish","type":"post","link":"https:\/\/coolt.ch\/notizen\/ble-geraete-verbindung-introduction\/","title":{"rendered":"BLE Ger\u00e4te Verbindung Introduction (Ch 13, 14)"},"content":{"rendered":"<p><strong>Wie baut der RF Chip 18xx eine Verbindung zu einem BLE-Ger\u00e4t auf ?<br \/>\n<\/strong><a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/NetworkingInternetWeb\/Conceptual\/CoreBluetooth_concepts\/CoreBluetoothOverview\/CoreBluetoothOverview.html#\/\/apple_ref\/doc\/uid\/TP40013257-CH2-SW1\">Informationen aus der iOS Developper Librar<strong>y<\/strong><\/a><\/p>\n<p><strong>Glossar<\/strong><br \/>\n&#8211; Der RF Chip (angebunden an einen Processor und an einen Sensor) gilt als <span style=\"color: #3366ff;\">Peripheral Device.\u00a0<\/span> Die Daten werden von hier gesendet. Das Peripheral Device hat Serverfunktion.<br \/>\n&#8211; Das Tablet, das die Daten empf\u00e4ngt wird <span style=\"color: #3366ff;\">Central Device<\/span> genannt. Es befindet sich im Client Modus.<\/p>\n<p><a href=\"http:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/BLE_Peripheral_CentralDevice.png\"><img loading=\"lazy\" class=\"alignnone wp-image-1293 size-medium\" src=\"http:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/BLE_Peripheral_CentralDevice-300x160.png\" alt=\"BLE_Peripheral_CentralDevice\" width=\"300\" height=\"160\" srcset=\"https:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/BLE_Peripheral_CentralDevice-300x160.png 300w, https:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/BLE_Peripheral_CentralDevice-1024x546.png 1024w, https:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/BLE_Peripheral_CentralDevice.png 1443w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Kommunikation Peripheral Device <\/strong><a href=\"http:\/\/coolt.ch\/notizen\/peripherie-geraet-das-ble-herz-ch-14\/\">(C<strong>H 14)<\/strong><\/a><br \/>\nHat das Periphier-Ger\u00e4t Daten, sendet es <em>broadcast<\/em> advertizing packets. Meldet, dass es Daten gibt. Diese Kommunikation geschieht auf den <a href=\"http:\/\/coolt.ch\/notizen\/bluetooth-low-energy-introduction\/\">3 advertizing channels<\/a>.<br \/>\n<a href=\"http:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/AdvertisingAndDiscovery_2x.png\"><img loading=\"lazy\" class=\"alignnone wp-image-1294 size-medium\" src=\"http:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/AdvertisingAndDiscovery_2x-300x42.png\" alt=\"AdvertisingAndDiscovery_2x\" width=\"300\" height=\"42\" srcset=\"https:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/AdvertisingAndDiscovery_2x-300x42.png 300w, https:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/AdvertisingAndDiscovery_2x.png 687w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Kommunikation des Central Device <\/strong>(Ch 13)<br \/>\nDas Tablet <em>scanned<\/em> auf allen advertizing channels und schaut, ob irgendwo interessante Daten liegen. Wenn ja, wird eine Verbindung aufgebaut. Es gibt 2 Scan-Zust\u00e4nde: <span style=\"color: #3366ff;\">passives<\/span> <span style=\"color: #3366ff;\"><span style=\"color: #000000;\">oder<\/span> aktives Scannen<\/span>.\u00a0 Im passiven h\u00f6rt das zentrale Ger\u00e4t, ob irgend ein Peripherie-Ger\u00e4t Daten zur Verf\u00fcgung stellt. Im aktiven Modus ist das zentrale Ger\u00e4t, nachdem es ein Ger\u00e4t detektiert hat. Im aktiven Modus werden mehr Informationen angefordert.<\/p>\n<p>Das periphere Ger\u00e4t teilt der Zentrale den Namen des Ger\u00e4ts und eine Ger\u00e4te-ID mit.<\/p>\n<p><strong>Datenstruktur Peripheral<br \/>\n<\/strong>Ein Peripherieger\u00e4t stellt eine Anzahl an Services zur Verf\u00fcgung. Sobald eine Verbindung zum zentralen Ger\u00e4t besteht, k\u00f6nnen Daten aus diesen Services \u00fcbernommen werden.<br \/>\n<span style=\"color: #3366ff;\">Service<\/span>: Daten (inkl. Verhaltensinformationen) zum Ausf\u00fchren eines Befehls, eines Dienstes. Ein Service beinhaltet mehrere Characteristics (und teilweise auch andere Services).<\/p>\n<p><span style=\"color: #3366ff;\">Characteristics<\/span>: Detailangaben vom Peripherieger\u00e4t.<\/p>\n<p><a href=\"http:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/ble_hierarchy_Service_Characteristics.jpg\"><img loading=\"lazy\" class=\"alignnone wp-image-1297 size-medium\" src=\"http:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/ble_hierarchy_Service_Characteristics-300x131.jpg\" alt=\"ble_hierarchy_Service_Characteristics\" width=\"300\" height=\"131\" srcset=\"https:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/ble_hierarchy_Service_Characteristics-300x131.jpg 300w, https:\/\/coolt.ch\/notizen\/wp-content\/uploads\/2016\/02\/ble_hierarchy_Service_Characteristics.jpg 620w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><strong>Zentrales Ger\u00e4t erh\u00e4lt Daten<\/strong><br \/>\nBesteht eine Verbindung, kann das zentrale Ger\u00e4t sowohl <span style=\"color: #3366ff;\">Daten<\/span> <span style=\"color: #3366ff;\">lesen wie<\/span> auch selbst Werte <span style=\"color: #3366ff;\">schreiben<\/span>. Die Daten (Services) werden im <em>Core Blootooth framework<\/em> abgelegt und verarbeitet. Fast alle BLE Aktionen geschiehen in diesem Ger\u00e4t.<\/p>\n<p>&nbsp;<\/p>\n<p>..<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wie baut der RF Chip 18xx eine Verbindung zu einem BLE-Ger\u00e4t auf ? Informationen aus der iOS Developper Library Glossar &#8211; Der RF Chip (angebunden an einen Processor und an einen Sensor) gilt als Peripheral Device.\u00a0 Die Daten werden von hier gesendet. Das Peripheral Device hat Serverfunktion. &#8211; Das Tablet, das die Daten empf\u00e4ngt wird &hellip; <a href=\"https:\/\/coolt.ch\/notizen\/ble-geraete-verbindung-introduction\/\" class=\"more-link\"><span class=\"screen-reader-text\">BLE Ger\u00e4te Verbindung Introduction (Ch 13, 14)<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[35,50],"tags":[49,51],"_links":{"self":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/1289"}],"collection":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/comments?post=1289"}],"version-history":[{"count":7,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/1289\/revisions"}],"predecessor-version":[{"id":1303,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/posts\/1289\/revisions\/1303"}],"wp:attachment":[{"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/media?parent=1289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/categories?post=1289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coolt.ch\/notizen\/wp-json\/wp\/v2\/tags?post=1289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}