X6 Pro: Back connector SDK

Last updated: 2026-01-20

Related products: X6 ProSoftware

Add Dependencies

1
dependencies {  
2
    // Serial Port & Device
3
    implementation 'com.handheldgroup.tools:serialport:1.6.6'    
4
    implementation 'com.nordalp.developertools:device:0.1.0-beta-11'
5
}
1
repositories {
2
    google()
3
    mavenCentral()
4
    maven { url "https://repo.repsy.io/mvn/handheldgroup/handheldgroup" }
5
    maven { url "https://jitpack.io" }
6
    maven { url "https://maven.nordalp.com/snapshots" }
7
    maven { url 'https://maven.nordalp.com/releases' }
8
}

Code implementation

1
// Power on
2
SerialPort.setDevicePower(this, true);
3

4
// Serial Port
5
SerialPort serialPort = new SerialPort(new File(SerialPort.getSerialPath()), 38400, 0);
6
InputStream inputStream = serialPort.getInputStream();
7
OutputStream outputStream = serialPort.getOutputStream();
8

9
// GPIO's & IRQ
10
Device device = new Device(this);
11
device.setNodePower("sys/devices/platform/soc/soc:pogo-gpios/pin10_en", true);
12
...
13
String irq = device.getNodeState("sys/devices/platform/soc/soc:pogo-gpios/irq_state");
Pin description & Paths

Back docking connector

Was this article helpful?