# Coding question for trecking device

**URL:** https://discourse.processing.org/t/coding-question-for-trecking-device/20385
**Category:** Electronics (Arduino, etc.)
**Created:** [May 2, 2020, 11:38am UTC](https://discourse.processing.org/t/coding-question-for-trecking-device/20385 "2020-05-02T11:38:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kanktonk](https://avatars.discourse-cdn.com/v4/letter/k/9f8e36/32.png) [@kanktonk](https://discourse.processing.org/u/kanktonk)
#### Post date: [May 2, 2020, 11:38am UTC](https://discourse.processing.org/t/coding-question-for-trecking-device/20385/1 "2020-05-02T11:38:05Z")

</div>

Hey I try to use processing together with my old lego mindstorm roboter.  
I spend a lot of time to research how to combine them and finally found a code online which looked helpfull. But now i get this ERROR can somebody please help me to fix this problem:

> jssc.SerialPortException: Port name - /dev/tty.NXT-DevB; Method name - openPort(); Exception type - Port busy.  
> at jssc.SerialPort.openPort(SerialPort.java:164)  
> at pt.citar.diablu.nxt.protocol.NXTCommBluetoothSerialChannelJSSC.openPort(Unknown Source)  
> at pt.citar.diablu.nxt.protocol.NXTCommBluetoothSerialChannelJSSC.(Unknown Source)  
> at pt.citar.diablu.processing.nxt.LegoNXT.(Unknown Source)  
> at sketch\_200502a.setup(sketch\_200502a.java:64)  
> at processing.core.PApplet.handleDraw(PApplet.java:2432)  
> Port name - /dev/tty.NXT-DevB; Method name - openPort(); Exception type - Port busy.  
> at processing.awt.PSurfaceAWT$12.callDraw(PSurfaceAWT.java:1547)  
> at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:313)  
> RuntimeException: jssc.SerialPortException: Port name - /dev/tty.NXT-DevB; Method name - openPort(); Exception type - Port busy.  
> RuntimeException: jssc.SerialPortException: Port name - /dev/tty.NXT-DevB; Method name - openPort(); Exception type - Port busy.  
> RuntimeException: jssc.SerialPortException: Port name - /dev/tty.NXT-DevB; Method name - openPort(); Exception type - Port busy.  
> RuntimeException: jssc.SerialPortException: Port name - /dev/tty.NXT-DevB; Method name - openPort(); Exception type - Port busy.

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [May 8, 2020, 7:01pm UTC](https://discourse.processing.org/t/coding-question-for-trecking-device/20385/2 "2020-05-08T19:01:31Z")

</div>

A post was merged into an existing topic: [Connecting Mindstorm Lego roboter](https://discourse.processing.org/t/connecting-mindstorm-lego-roboter/20354)

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [May 8, 2020, 7:01pm UTC](https://discourse.processing.org/t/coding-question-for-trecking-device/20385/3 "2020-05-08T19:01:31Z")

</div>


