Skip to main content
Skip table of contents

Communication Module

Overview

The Communication Module is a module that enables serial and TCP/IP communication with the robot.

This guide shows you how to create your own Framework Application besides the existing components provided by default in Dart-IDE.

This article assumes you're already familiar with Dart-IDE. If you aren't, we suggest you retake a look at Dr.Dart-IDE.

Create a new Communication Module Project

Open Dart-IDE, and do the following steps:

  • Step 1: In the main menu, select File > New Project.

Document - Guides - Advanced User Guide - Create a framework - Create new project

  • Step 2: In the dialog that appears, select the Framework Application option in the Module section.

  • Step 3: Select the desired item and click the Next→ button.

  • Step 4: In the dialog that appears, fill up all necessary information.
    For example:

Number

Title

Description

1

Name

The name of the new project.

2

Package Name

The package name of the new project.

3

Framework Module Category

Framework Module Category

4

Framework Module Sub Category

Framework Module Detailed category

5

Save Location

The folder where you save the new project on your local PC.

6

Module Version

Module Version

7

DART SDK Version

The Dr.Dart-SDK version of the new project.
If you want to change the SDK version while coding, you must change the information on the manifest.js file. For more information, please refer to Dart-SDK | How-to-change-the-Dart-SDK-version?

  • Step 5: Click Finish.

  • Step 6: Once the new project is created successfully, you can check its structure in the Explorer panel.

  • Step 7: To modify the communication module code, open and modify the .h file inside the include folder or the .cpp file inside the src folder.

Understanding the Communication Module project structure

The chart below describes the project source structure of a Communication Module project.

The main parts of a Communication Module project are:

  • lib: Library folder

  • src: Package source folder

  • include: package header file folder

  • manifest.json: Package information definition file

Communication Module project structure

Example

This image shows a robot with a hand-shaped gripper making drip coffee.

  • Communication module transmits 0x04. This means for the "Grasp Gripper" command.

    • Communication module should know that 0x04 means “Grasp Gripper”.

    • When a developer, using IDE, who wants to control the Gripper writes a communication module, write it according to the protocol.

  • Also communication module can also transmit data having other meanings.

  • On the other hand, the communication module may receive meaningful data.

  • Of course, that data means the Gripper's response.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.