|
Veethree D7 SDK
|
For most of the development cycle, you will likely want a very tight edit-build-run-debug loop. To that end, the development image running on the device has a built-in SSH server as well as access to a console via serial port.
This page will describe the different ways available to get a console onto the target device.
In order to power the D7 you will need to provide between 6 and 36 Volts on Pin 1 of its AMPSEAL 23-way connector. Pin 3 is ground.
You will need TE part number 770680-1 for 16-20 AWG or 2371884-1 for 20-24 AWG. Plus 1.3mm contacts.
If the D7 is currently using a development image, you can choose either one of the options for connecting: SSH or serial debug port.
On a release image, only the serial debug port is available for getting a console onto the device.
The D7 has a gigabit ethernet interface on the M12 X-Coded connector. In order to connect the device to the network,you will need a M12 X-Coded to RJ45 cable or adapter.
Note: If you do not have a M12 X-Coded to RJ45 cable readily available, it may also be possible to use an Ethernet to USB-C adapter to connect the D7 to the network.
There is no official compatibility list for Ethernet to USB-C chipsets, but most Realtek ones should work. Support for them is built into the kernel and in our custom images we do not modify the drivers for them.
To get a console on the D7 via SSH, you need to connect the D7 to the network, find its IP address and run:
A D7 that doesn't have a user application on it should by default display the board's serial number and its up-to-date IP address.
Like many other Linux machines, the D7 has a DHCP client running by default so as soon as a cable is plugged into the M12 X-Code port, it should automatically detect if it can connect to a network and once it does, it will display its IP address.
Required:
Steps:
The SKEDD connector only goes in one way.
The default settings for the serial port on the device are:
| Setting | Value |
|---|---|
| Baud rate | 115200 |
| Flow control | None |
| Databits | 8 |
| Parity | None |
Note: Remember to logout of the session on the device before disconnecting from the serial console. Not logging out before disconnecting will leave the user shell running.
Except for the baudrate, the values above are the defaults for picocom. As such, for the best experience we recommend using it.
You will need to identify the serial port on which the device is mounted. Usually, this will be /dev/ttyUSB0, but if you have multiple USB serial devices attached to your workstation, it may be /dev/ttyUSB1 or higher.
To install picocom and connect to the serial console on the device:
Alternatively, GNU Screen is available as well for most distributions.
For Windows it is recommended to use PuTTY.
To figure out which port the D7 is connected to, you can check in Device Manager.
To connect to the device via serial follow the instructions below.
In this section we have described the available methods for connecting in order to obtain a shell into the device.
Setting up the development environment: D7 SDK user walkthrough - Development Environment.
The next step is Preparing the D7 device.