microsoft / jacdac

Device and service catalogs for Jacdac.
https://aka.ms/jacdac
Creative Commons Attribution 4.0 International
66 stars 24 forks source link

bluetooth + physical layer #1007

Open WoutO-1745605 opened 2 years ago

WoutO-1745605 commented 2 years ago

I'm trying to use a microbit V2 as a connection point for the Jacdac bus for bluetooth devices (smartphone). Since I don't have access to physical Jacdac devices I'm trying to use simulated devices on the Jacdac dashboard to simulate Jacdac traffic. When enabling bluetooth transport for Jacdac on the microbit using bluetooth-transport I'm able to connect to the microbit via bluetooth and see Jacdac packets being transmitted however when I try to connect the microbit to the dashboard I get the following error on the dasboard "device BBC micro:bit CMSIS-DAP (exchange address not found; add jacdac to your project)".

I tried to fork the pxt-jacdac repo to try and run jdble_init() and mbbridge_init() at the same time to see if it was even possible to run both at the same time. This allows the microbit to show up on the dasboard for a short amount of time but makes error code 070 appear on the microbit.

Based on what I can find about error code 070 this previous issue might be related?

I would like to know if this is possible at all and if this is something thats being worked on/planned for the future.

pelikhan commented 2 years ago

The micro:bit bluetooth stack story is not yet ready. In particular, we should not try to access the jacdac debugger address in BLE mode. So something is untestedely wrong there.

Sent from Outlookhttp://aka.ms/weboutlook


From: WoutO-1745605 @.> Sent: Monday, May 9, 2022 9:15 AM To: microsoft/jacdac @.> Cc: Subscribed @.***> Subject: [microsoft/jacdac] bluetooth + physical layer (Issue #1007)

I'm trying to use a microbit V2 as a connection point for the Jacdac bus for bluetooth devices (smartphone). Since I don't have access to physical Jacdac devices I'm trying to use simulated devices on the Jacdac dashboard to simulate Jacdac traffic. When enabling bluetooth transport for Jacdac on the microbit using bluetooth-transporthttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpxt-jacdac%2Ftree%2Fmaster%2Fbluetooth-transport&data=05%7C01%7Cjhalleux%40microsoft.com%7C971284fead7840a7f33608da31d72e34%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637877097512031384%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=%2FIazbBiQQddRHYb8q4lvhHu2tIPbtAHCGhMvY4a4x64%3D&reserved=0 I'm able to connect to the microbit via bluetooth and see Jacdac packets being transmitted however when I try to connect the microbit to the dashboard I get the following error on the dasboard "device BBC micro:bit CMSIS-DAP (exchange address not found; add jacdac to your project)".

I tried to fork the pxt-jacdac repo to try and run jdble_init() and mbbridge_init() at the same timehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FWoutO-1745605%2Fpxt-jacdac%2Fblob%2F177b473b4ff2c9905d989a986e88152a97184c49%2Fapp.cpp%23L206&data=05%7C01%7Cjhalleux%40microsoft.com%7C971284fead7840a7f33608da31d72e34%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637877097512031384%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=1hANbGJb35ZbTUNJ2LJzgpP%2F6gh6SPRxd%2FBXA8M2m0Y%3D&reserved=0 to see if it was even possible to run both at the same time. This allows the microbit to show up on the dasboard for a short amount of time but makes error code 070 appear on the microbit.

Based on what I can find about error code 070https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fforum.makecode.com%2Ft%2Fpanic-code-070-0-what-is-it%2F11575&data=05%7C01%7Cjhalleux%40microsoft.com%7C971284fead7840a7f33608da31d72e34%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637877097512031384%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=DES9sl83qF9siVAkLitrZvit3Pi1k8764fFwy8HqEvM%3D&reserved=0 this previous issuehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fjacdac%2Fissues%2F141%23issuecomment-831815840&data=05%7C01%7Cjhalleux%40microsoft.com%7C971284fead7840a7f33608da31d72e34%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637877097512031384%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=3qGTXtrCWPSkuJdl%2FheqbKo67PdQD22R%2BbA3ATDwUJo%3D&reserved=0 might be related?

I would like to know if this is possible at all and if this is something thats being worked on/planned for the future.

— Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fjacdac%2Fissues%2F1007&data=05%7C01%7Cjhalleux%40microsoft.com%7C971284fead7840a7f33608da31d72e34%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637877097512031384%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=lAVs6S9ZHgkylLF10nwPuGzsc5oZhWpGZinfisHNgfk%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAA73QKKK37TQOO45HFURVGTVJE23JANCNFSM5VOZFHTQ&data=05%7C01%7Cjhalleux%40microsoft.com%7C971284fead7840a7f33608da31d72e34%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637877097512031384%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=JHCrQgS0M4uF%2F1QcauVE0BmWrmdstdZRzpuOG%2BD3e%2Fw%3D&reserved=0. You are receiving this because you are subscribed to this thread.Message ID: @.***>