WASDEV(The AI WorkShop)Docs Website Download

Chapter 16

Phone and firmware

Connect an Android phone to mirror its screen, exchange files and install apps, and work with Arduino and ESP32 boards.

Open the Remote panel

The Remote panel, section Phones
The Remote panel, section Phones
  1. Click the phone button Open Remote (phone) in the module bar, or press Ctrl+Alt+R.
  2. The panel opens on the right with the sections Phones, Screen, Files, Apps, ADB, iPhone and Firmware.
  3. The first time, click Download Android tools (adb).

Connect an Android phone

The ADB section of the Remote panel
The ADB section of the Remote panel
  1. On the phone, open Settings → About phone and tap Build number seven times to unlock the developer options.
  2. In Developer options, turn on USB debugging (for a cable) or Wireless debugging (for Wi-Fi).
  3. With a cable: plug the phone into the PC and accept the question shown on the phone.
  4. Over Wi-Fi: in the section Phones, click Search the network, or Pair with code and type the code shown on the phone.
  5. The phone appears in the list. Click it.
  • Connect by IP address (Wi-Fi) connects to a phone whose address you know.
  • Switch to Wi-Fi lets you unplug a phone connected by cable and keep working.
  • The phone and the PC must be on the same Wi-Fi network.

Mirror and control the phone screen

The Screen section, before a phone is connected
The Screen section, before a phone is connected
  1. Open the section Screen. The screen of the phone appears live.
  2. Click and drag in the image as you would touch the phone.
  3. Use the buttons Back, Home, Recent apps, volume and screen on / off.
  4. Type in the text box to send text to the phone.
  • Save phone screenshot saves the current image of the phone.

Exchange files with the phone

The Files section, before a phone is connected
The Files section, before a phone is connected
  1. Open the section Files and browse the folders of the phone.
  2. To send a file from the PC, use the send button and choose the file.
  3. To copy a file to the PC, select it and click Download to PC….
  • Rename…, Delete and New Folder work on the phone's storage.

Install and manage apps

The Apps section, before a phone is connected
The Apps section, before a phone is connected
  1. Open the section Apps.
  2. Click Install APK… and choose the .apk file.
  3. Select an installed app for Open, Force stop or Uninstall.
  • When you press Run on a mobile project, WASDEV asks where to run it and can install it on the connected phone.

iPhone

The iPhone section
The iPhone section
  • The section iPhone gives access to the files of an iPhone connected by cable, through Windows. Screen mirroring and app installation are not available for iPhone.

Upload firmware to a board

The Firmware section: serial monitor
The Firmware section: serial monitor
  1. Create a project of type Firmware (Arduino / ESP32), or open one.
  2. Connect the board by USB.
  3. Open the section Firmware in the Remote panel and choose the port of the board.
  4. Click Upload the project firmware (RUN).
  5. If an ESP32 does not start the upload, click ESP32 BOOT mode.

Read the serial monitor

  1. In the section Firmware, choose the baud rate that your program uses.
  2. Click Connect. The messages of the board appear.
  3. Type in the send box and choose the line ending to send a command to the board.
  4. Tick Time to show the time of each line and Auto-scroll to follow the last one.
  5. Click Plotter to draw numeric values as a curve.
  • Restart the board resets it. Clear empties the screen. Save the log (.txt) keeps the messages in a file.