Answers.Body: <p>You can use any programming language you like to remotely control the NXT provided that it can access a serial port of your computer. The Bluetooth connection on the NXT provides a virtual serial port. You can see this by opening "Devices and  Printers" and double-clicking on the NXT (provided that you have already paired it). Then have a look at the "Services" tab in the window that opens.</p>
  
  <p><img src="https://i.sstatic.net/seujO.png" alt="screenshot"></p>
  
  <p>In the screenshot above, my NXT provides a serial port on COM4. Yours may be a different number.</p>
  
  <p>So you need to do two things:</p>
  
  <ol>
  <li>Figure out how to open a COM port on Windows using the Processing programming language.</li>
  <li>Use the information in the <a href="http://cache.lego.com/r/www/r/mindstorms/-/media/franchises/mindstorms%202014/downloads/firmware%20and%20software/nxt%20software/bdk_download1.zip?l.r=-1144978407" rel="nofollow noreferrer">NXT Bluetooth Developer Kit</a> (available from the <a href="http://www.lego.com/en-gb/mindstorms/downloads" rel="nofollow noreferrer">LEGO MINDSTORMS download page</a>) to send commands to your NXT.</li>
  </ol>
  
  <p>To use other Bluetooth devices with your NXT, you will need to relay the information though a computer to translate it into the commands from the NXT Bluetooth Developer Kit. In the case of the iPhone, you could write a custom program just as you would for a regular computer.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-23T17:58:20.390Z
Answers.LastActivityDate: 2015-06-23T17:58:20.390Z
Answers.UserDisplayName: David Lechner
Body: <p>I am attempting to control my NXT model via the Processing programming language rather than the provided language based on LabView. When I can establish a connection over Bluetooth, this works rather well, but establishing the connection itself is problematic. It appears to work only every dozen tries or so.</p>
  
  <p>My question is, what are some good troubleshooting steps for this type of activity? I can see the NXT brick in my list of Bluetooth devices on my laptop (Win7 64-bit), and I can even see it in the list of devices when I run a test script in Processing. My laptop appears on the list of devices on my NXT brick, but the connection icon at the top of the NXT window only shows "&lt;" rather than "&lt;>".</p>
  
  <p>I believe I am using the latest firmware version (1.31). The other settings listed are:</p>
  
  <p>AVR &amp; BC4 - 1.01</p>
  
  <p>What else can I attempt to try? I am attempting to connect to other Bluetooth devices (iPhone, Wiimote) but have not found the necessary libraries to allow those connections yet.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2012-09-19T22:47:08.213Z
Comments.Text: Are you in close proximity to a wireless device (2.4 GHz)?  Both bluetooth and wifi use the same frequency spectrum, so a conflict between the two may be a reason why you're having connectivity difficulties.
Comments.UserDisplayName: Nick2253
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-23T17:59:27.993Z
Comments.Text: Ha! I missed the `12. Thought you asked this today. ;-)
Comments.UserDisplayName: David Lechner
Tags: <nxt><bluetooth>
Title: Connecting to NXT Brick via Processing over Bluetooth
UserDisplayName: Matthew Bernhardt
ThreadText: # Connecting to NXT Brick via Processing over Bluetooth
  
  (Asked by: username_0 on 2012-06-23)
  
  I am attempting to control my NXT model via the Processing programming language rather than the provided language based on LabView. When I can establish a connection over Bluetooth, this works rather well, but establishing the connection itself is problematic. It appears to work only every dozen tries or so.
  
  My question is, what are some good troubleshooting steps for this type of activity? I can see the NXT brick in my list of Bluetooth devices on my laptop (Win7 64-bit), and I can even see it in the list of devices when I run a test script in Processing. My laptop appears on the list of devices on my NXT brick, but the connection icon at the top of the NXT window only shows "<" rather than "<>".
  
  I believe I am using the latest firmware version (1.31). The other settings listed are:
  
  AVR & BC4 - 1.01
  
  What else can I attempt to try? I am attempting to connect to other Bluetooth devices (iPhone, Wiimote) but have not found the necessary libraries to allow those connections yet.
  
  **Tags:** nxt, bluetooth
  > **Comments:**
  > **username_1**: Are you in close proximity to a wireless device (2.4 GHz)?  Both bluetooth and wifi use the same frequency spectrum, so a conflict between the two may be a reason why you're having connectivity difficulties.  
  > **username_2**: Ha! I missed the `12. Thought you asked this today. ;-)  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-06-23. Score: 2
  
  You can use any programming language you like to remotely control the NXT provided that it can access a serial port of your computer. The Bluetooth connection on the NXT provides a virtual serial port. You can see this by opening "Devices and Printers" and double-clicking on the NXT (provided that you have already paired it). Then have a look at the "Services" tab in the window that opens.
  
  ![screenshot](https://i.sstatic.net/seujO.png)
  
  In the screenshot above, my NXT provides a serial port on COM4. Yours may be a different number.
  
  So you need to do two things:
  
  1. Figure out how to open a COM port on Windows using the Processing programming language.
  2. Use the information in the [NXT Bluetooth Developer Kit](http://cache.lego.com/r/www/r/mindstorms/-/media/franchises/mindstorms%202014/downloads/firmware%20and%20software/nxt%20software/bdk_download1.zip?l.r=-1144978407) (available from the [LEGO MINDSTORMS download page](http://www.lego.com/en-gb/mindstorms/downloads)) to send commands to your NXT.
  
  To use other Bluetooth devices with your NXT, you will need to relay the information though a computer to translate it into the commands from the NXT Bluetooth Developer Kit. In the case of the iPhone, you could write a custom program just as you would for a regular computer.
  
  
  ---
  
  