How to use the Serial Port on the Micro:Bit - Maker.io Tutorial | Digi-Key Electronics

Поделиться
HTML-код
  • Опубликовано: 24 дек 2024

Комментарии • 10

  • @angelusstark
    @angelusstark 5 лет назад

    This was Awesome! I'll buy my first Micro:Bi :) I was searching for a device that can Send/Receive Data over USB & I also wanted to have Bluetooth. Thx :)

  • @anthonybaker3255
    @anthonybaker3255 4 года назад

    how do you send data to the micro:bit?

  • @angelusstark
    @angelusstark 5 лет назад

    I want to Send Some Data from PC [1] to >> Micro:Bit [1] >> send by > bluetooth > receive on >> Micro:Bit[2] >> Send to PC [2]. Do u know if Bluetooth is the fastest way? Or maybe there is a way to send data faster by Pins ? (If sending text works ok, I'll modify the code to send files)

    • @digikey
      @digikey  5 лет назад +1

      The limiting factor in this setup is not the Bluetooth, but the baud rate of the serial connection between each micro:bit and it’s respective computer. This serial interface is not a high-speed communication protocol, and therefore will greatly hinder the speed of transfer when compared to any modern interface (USB, WiFi, direct Bluetooth connection, ethernet, etc.). Additionally, this serial connection protocol is very low level : send bytes, receive bytes, without any interpretation and not ideal for sending data files. The operating system on the PC’s wouldn't even know when the start or the end of the file is transmitted, its file name, or any details of the file - the output will simply display a stream of bytes of data with no interpretation of this data. The benefit of this serial connection is the simplicity for sending individual characters as a short message string or to control peripherals of a connected device through simple commands.

    • @angelusstark
      @angelusstark 5 лет назад

      Thx for info! Do u know of any other Development Board that can be better for my project ? I see that the baud rate is at max 115200 (bit/s) = 0.0144 MB

    • @angelusstark
      @angelusstark 5 лет назад

      I want to do a Copy / Paste App in C# for 2 or more PC's & use a Development Board send text, If it has speed i'll write some code for file transfer. I can write some code to send the file data & after that i can send the binary data that will be split by PC C# App in to multiple transmissions.

    • @angelusstark
      @angelusstark 5 лет назад

      The idea of this project is to have 1 PC Offline Secure & a few Online Pc's. If an Online Pc is compromised by a hacker, I don't want them to be able to hack the Offline PC. But at the same time I need to be able to Send Text / maybe Files. The Development Board on a compromised pc can be hacked, but the receiver Development Board for Offline Pc is Secure. For file transfer on the receiver pc, the User will have to Confirm that will accept file Transfer. The Text sent will be accepted an the Receiver PC without confirmation & it will be shown in the C# App (in RichTextBox).

    • @digikey
      @digikey  5 лет назад

      @@angelusstark Unfortunately I don’t believe we can make a recommendation for this. Air-gapping a PC such as what Angelus is looking to do is a meticulous and difficult undertaking and adding Bluetooth such as what the customer originally suggested may open the secure PC to more susceptibility to hackers (see the article here: www.techrepublic.com/article/6-ways-to-secure-air-gapped-computers-from-data-breaches/). Also, as a micro:bit is programmable via Bluetooth, there is nothing relegating that the receiver board on the secure PC can’t be hacked as well. A truly secure PC must not have any method of electronic interaction with an insecure machine or it as well may be compromised.