bluetooth w/arduino
Hi,
I have a RN-41 bluetooth module with an arduino board. It shows up as serial port b, but when I try to select it, max becomes unresponsive. I cannot force quit max, so I have to hold down the power button on my computer. Then my computer never fully restarts until I hold the power button and start it again. This has happened each time I tried to communicate with the device in max. Any ideas or explanations would be greatly appreciated. Thanks.
Have you been able to communicate with the bluetooth device using any other software?
David Z.
I don't have suggestions.
But just for encouragement, I have hade the same problems w. same problems using arduino/bluesmirf BT. But not only w. BT deveices. For me it's the serial object in max that makes my computer behave exactly like yours. (not always though). Only when it's grumpy ;)
phil
under windows (4.6 and 5) i experience the same problem.
note that if i wait long enough, less then one minute, max will respond with
a serial connection error. it only happens with bt and under hyper terminal
same serial com delivers.
i tried using the java rxtx lib but haven't gotten far in making it work.
https://cycling74.com/forums/index.php?t=msg&goto=147185
On Thu, Jul 24, 2008 at 11:06 AM, phil wrote:
>
> I don't have suggestions.
>
> But just for encouragement, I have hade the same problems w. same problems
> using arduino/bluesmirf BT. But not only w. BT deveices. For me it's the
> serial object in max that makes my computer behave exactly like yours. (not
> always though). Only when it's grumpy ;)
>
> phil
>
have you checked the arduino website to make sure you have programmed
the proper baud rate into your arduino program? with the bluetooth
arduino you can only have one baud rate.
Cheers,
Carey
On Thu, Jul 24, 2008 at 1:04 PM, yair reshef wrote:
> under windows (4.6 and 5) i experience the same problem.
> note that if i wait long enough, less then one minute, max will respond with
> a serial connection error. it only happens with bt and under hyper terminal
> same serial com delivers.
> i tried using the java rxtx lib but haven't gotten far in making it work.
> https://cycling74.com/forums/index.php?t=msg&goto=147185
>
> On Thu, Jul 24, 2008 at 11:06 AM, phil wrote:
>>
>> I don't have suggestions.
>>
>> But just for encouragement, I have hade the same problems w. same problems
>> using arduino/bluesmirf BT. But not only w. BT deveices. For me it's the
>> serial object in max that makes my computer behave exactly like yours. (not
>> always though). Only when it's grumpy ;)
>>
>> phil
>
>
>
>
Yes your right Carey.
I was talking more about the Lilypad. I also have a diecimila and had the same erratic behavior until I changed the BT baud rate.
Here is what I was told by the developer of the lilypad.
>The LilyPad doesn't have an external crystal, so it can have communication timing problems at high speeds. I tend to use 9600 just to be safe. hope that's helpful!
Anyways, it worked for me and solved 2 things.
1. Max's calmed down and (almost) stop crashing or free.
(I say almost because max seems to have problems digesting the serial object when used for a longer period of time.)
2. extremely few to no erratic incoming data.
that's it
cheers
phil
Changing the baud rate in the arduino code to 115200 worked, thanks everyone for the help.
I connected a Mega to a Roving Networks RN-42 modem (that's the modem in Sparkfun's Bluetooth Mate). The modem connects but does not transfer any serial data. I checked the Baud-rate millions of times... The connection works fine with USB. It's only with Bluetooth that I don't get anything on the serial port. Any ideas?