LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

NXT bluetooth communication among 4 bricks

Hello guys,

 

I'm trying to create a connection among 4 bricks with LabView. I can make three of the bricks send the messages to the host but when I try to send a message back, only 2 of the clients (choosen randomly) receive the message, seems kinda conflict. (We tried to do the flow sequencially and parallel as well) Do you all have any idea what could we do?

Regards,

Download All
0 Kudos
Message 1 of 9
(6,323 Views)

Hi!

 

I have tried to open your vi-s and I did not suceed as it shows some missing libraries. I have installed LabVIEW  NXT module: http://www.ni.com/download/labview-nxt-module-2014/4761/en/ but still no success.

In order to help you I need an NI MAX report from your PC to understand what SW and HW components you have.

 

Best regards,

András Bükkfejes

National Instruments

0 Kudos
Message 2 of 9
(6,303 Views)

Hi,

 

I'd like to know if all three clients are getting the message when you ping them individually.

 

András, you can copy and paste the code into a new VI and it should work.

0 Kudos
Message 3 of 9
(6,298 Views)

The NI MAX report is attached.

 

Best regards

0 Kudos
Message 4 of 9
(6,284 Views)

In these VI-s the host only sends the messages after it reads the messages from each client. But using another VI the host comunicates successfully with each host individually.

Sometimes only one client receives the message, sometimes two, but never the three. Who receives appear to be completely random, and the VI-s for the clients are the same except for the mailboxes

0 Kudos
Message 5 of 9
(6,283 Views)

Hi,

 

From the MAX report I know that we are running now the same LV and I am able to see now NXT vi-s. (I hope I see them all) I have compared your code with the examples provided in LabVIEW

C:\Program Files (x86)\National Instruments\LabVIEW 2014\examples\NXT Robotics\Bluetooth

 

From a short reading on the topic it seems to me that you should select a master brick and open separate connections towards each brick. This way the Master may send/receive mesages from all 3, while slaves don't see each other.

The vi-s that I have opened from you have no BT turn ON/OFF or any part that would tell me how you open up a connection on the host (Master) to the multiple clients.

 

Please have a look at the help of  "Connect to NXT/EV3.vi" it says: Connect two bricks using BT. It has an input named connection (0..3). My view is that if you need multiple connection use this VI multiple times with different inputs 0-3.

 

Please see the BluetoothDriveReceive.vit and BluetoothDriveSend.vit for more details in the example library.

 

I hope this helps. Sorry if I misunderstand something based on the partially opened vi-s.

András

 

 

0 Kudos
Message 6 of 9
(6,254 Views)

Szia András!

Nekem nem egészen ide vágó kérdésem lenne, mármint nem bluetoothal kapcsolatos, hanem labirintus megoldó problémám lenne a robottal. 

Érdeklődnék, hogy van e esetleg online elérhető példa a labirintus megoldása problémára, NXT robothoz? 
Válaszod elrőre is köszönöm, akár mail formájában is. 

 

Üdvözlet:

Jancsi Attila

e-mail: tes89@gmail.com

0 Kudos
Message 7 of 9
(5,372 Views)

Az előbb elírtam a mail címem...

Tehát: tes8905@gmail.com

 

Előre is köszönöm, ha válaszolsz nekem. 

0 Kudos
Message 8 of 9
(5,362 Views)

Kedves Attila!

 

Kérlek, hogy egy új topicban angol nyelven tedd fel a kérdésed. Köszönöm.

Dániel Fülöp
Field Application Engineer (CLA, CTA)
National Instruments
0 Kudos
Message 9 of 9
(5,341 Views)