Hi all, I am new to this forum and leJOS. Well I am working on code which includes sending sensor data thru bluetooth on mobile phone.

As of now I am working on a prototype functionality code in which I am trying to send data(see in the code below) from leJOS NXT to mobile phone(J2ME). So far I am able to send the data from NXT to mobile phone using Bluetooth. However on mobile phone I am getting some extra values along with the required ones.

On connection NXT is able to send 1,2,3,4,5 integers successfully and the mobile phone is able to receive and display data(all the numbers sent by NXT) on the phone screen but the problem is instead of showing me the exact data received such as 1,2,3,4,5, it shows me 1,1,0,2,1,0,3,1,0,4,1,0,5 and then it ends after every required int there is not required number such as 1 , 0 please help me get rid this. I have already spent couple of sleepless nights on it and I don't know how many more..I will... I don't know if anyone has worked on sending data from NXT to mobile phone but any help in this direction will be valuable. Thanks in advance.

Thanks skoehler ! for your reply. I have tried several things and I think this was one them. but neverthless I will try this and update you on result as soon as I can (my NXT batteries died ..got to buy new ones .....)

I tried this approach as well but it didn't work. its giving me non required integers. I do not have my nxt with me but once back I will post the output that I am getting. However I am currently thinking of trying to achieve this with another approach if it works I will post it here. Thanks