กลับไปหน้ารวมไฟล์
arduino-nano-33-iot-remote-debugging-coding-00c4a7-en.md

There are often situations where you either don't have the hardware available as its shared between a group, or you have the hardware but need some help working through an issue..

Whether it be in an Educational setting, or in a professional remote working scenario with staff or contractors, the difficulties are the same, and you often end up with at best one person at a time working on the project.

Using Live Share we can allow remote access to our Arduino project code, as well as the Hardware Debugger controls and watch information, as if everyone was sat together around one machine, with additional features to make this as seamless as possible.

Setting up a Share

Sharer(whohasthehardware):

  • Load the Solution you wish to work on, and click on the Live Share button in the top right of the IDE
  • This may give a Hint about allowing this application through your firewall, press OK
  • If access through the firewall is requsted, press OK to confirm it is allowed
  • A new "Live Share" window will appear in your IDE, and there will be a notification at the top of the IDE
  • Click [More Info] to find out more detail, or just [Copy Link] to put the shared session link in your clipboard
  • Share the link copied via Email / Skype (or another mechanism) with the team mates you wish to join the session
  • Wait for them to join.....

NOTE: When the Sharer Disconnects the session, this will disconnect and close all other sessions joined by other users as well.

Joiners(upto5!):

  • Once you have the link, simply click on it.
  • This will load a Web Page, and request to open a file with Visual Studio - press the "Open With Visual Studio" button to load the Shared VS
  • Now you can also load any files or windows you wish in your session, as if you are on the Sharers machine

NOTE: All Users will have a "Live Share" Window showing who is connected to the session, and where each other are (file name) in the solution, as well as a Status indicator so you can show when each other are available or actively working on the solution.

An Example

The below video goes through the basic setup process, and shows an active hardware debugging session being shared between two running instances as if they were remote.

Using Live Share to Remotely work on an Arduino Project

Further Information

https://www.visualmicro.com/page/Live-Session-Sharing.aspx?source=52df7d

EXPANDED TECHNICAL DETAILS

Cloud-Native Development Workflow

This project provides a professional setup for coding and debugging the Nano 33 IoT wirelessly, essential for projects mounted in hard-to-reach locations.

  • OTA (Over-The-Air) Firmware Updates: Uses the ArduinoOTA library to allow new code to be uploaded via the local WiFi network. This eliminates the need for a physical USB connection during the prototyping phase.
  • Visual Micro Remote Debugging: Integrates with Visual Studio 2017 and Visual Micro to provide a real-time "Variable Watch" and "Breakpoint" system over the network, bringing desktop-class debugging to embedded hardware.

Optimization

  • Network Stack Telemetry: Includes a diagnostic dashboard that monitors WiFi signal strength ($RSSI$) and packet loss, ensuring the remote link is stable before initiating a firmware update.

ข้อมูล Frontmatter ดั้งเดิม

title: "Arduino Nano 33 IoT Remote Debugging + Coding"
description: "Working through a problem, but only you have the hardware? Want to work with someone remotely as if they were there? This is for you..."
author: "arduinocc"
category: ""
tags:
  - "gdb"
  - "debugging tools"
  - "remote control"
views: 2296
likes: 0
price: 2450
difficulty: "Intermediate"
components:
  - "1x STLinkv2 Hardware Debugger"
  - "1x Arduino Nano 33 IoT"
  - "1x Jumper wires (generic)"
tools: []
apps:
  - "1x Arduino IDE"
  - "1x Visual Studio 2017"
  - "1x Visual Micro"
downloadableFiles: []
documentationLinks: []
passwordHash: "aef33e2ce4b499a3c6fa987e1ba17362638bfaebaf62b4d134f4a3fc189210d7"
encryptedPayload: "U2FsdGVkX18cKJDFujSe6/QEd7HkL37hPy70LDWb3VJhZsLM/71SVnRm3DYe/5rB3mvLMMsps+G6a5HQSY2U8e/1wsl4yXLWKZyW2nj185uEBJYZghXifStq98NBAyjA2nvHScbQPO9uzxUf8oxCiw=="
seoDescription: "Learn how to perform Remote Debugging and Coding on Arduino Nano 33 IoT to collaborate with others from anywhere."
videoLinks:
  - "https://www.youtube.com/embed/s4OufDo-d88"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/arduino-nano-33-iot-remote-debugging-coding-00c4a7_cover.jpg"
lang: "en"