Bluetooth Attachment

Expansion modules and attachments
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

The BT attachment shouldn't be connected all the time.
It should only connect when you hit upload button.
Roberto.
Appleseed
Posts: 86
Joined: Sat Jun 30, 2012 9:21 am

Re: Bluetooth Attachment

Post by Appleseed »

rimai wrote:Yeap.
I got a few of those with enclosures
How about an enclosure for my module ;)
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

Sure :)
Pm me your address.
Roberto.
OceanWolf
Posts: 58
Joined: Sun Sep 22, 2013 4:59 pm
Location: Morgan Hill, CA

Re: Bluetooth Attachment

Post by OceanWolf »

rimai wrote:The BT attachment shouldn't be connected all the time.
It should only connect when you hit upload button.
This is the sequence of the events for my BT. BT is paired but not connected.
1.Compiling Sketch - RN42-E657 not connected
2.Uploading - RN42-E657 connected
3.Uploading - RN42-E657 not connected
4. Problem uploading to Board - avrdude: ser_open(): can't open device "/dev/tty.RN42-E657-SPP": Resource busy

I think Arduino opens the connection and then closes it, when trying to upload the port is already closed.

I am using Mac Air with OS X 10.9.
Thanks
Onur

Image
74sammy
Posts: 4
Joined: Fri Aug 17, 2012 9:43 pm

Re: Bluetooth Attachment

Post by 74sammy »

Do you have any more of these? And the multi channel water level expansion? When will they be in the store?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

Yes I have both. I still need to create the manuals :(
I'll try to do it shortly. If you want them before I place them in the store, PM me.
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Bluetooth Attachment

Post by sbidny »

It appears I'm not authorized for PMs at this time, and it looks like these are not available in the store yet. Could you tell me how I can go about ordering one. Thanks!
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

You should be able to PM now.
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Bluetooth Attachment

Post by sbidny »

Thanks for the attachment, Roberto.

Has anyone had success using the attachment with Mac OS X? I was able to pair it, but it seems that I get the following error when trying to upload:

"Serial port <x> already in use. Try quitting any programs that may be using it."

The available serial ports are:

/dev/tty.Bluetooth-Incoming-Port
/dev/cu.Bluetooth-Incoming-Port
/dev/tty.Bluetooth-Modem
/dev/cu.Bluetooth-Modem
/dev/tty.RN42-FC3C-SPP
/dev/cu.RN42-FC3C-SPP

I have tried all of these, with no luck. Any ideas?
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

I think this is the one you need to use: /dev/tty.RN42-FC3C-SPP
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Bluetooth Attachment

Post by sbidny »

Yeah, that's one of the ones I tried. Same issue.

Actually, one time, I saw the error message that OceanWolf saw instead. But now I'm back to my original error message.

And then my computer crashed once after attempting an upload, which is a very rare occurrence with OS X. Not sure if it's at all related, but I figured I'd mention it.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

Does the blue led in the BT attachment light up?
Make sure the cable that you use to connect to the RA is the one with 5 wires and not the one with 4 wires that came with the wifi attachment.
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Bluetooth Attachment

Post by sbidny »

Looks like the crash was likely unrelated. Think I had a bad hard drive. Taking care of that issue.

On the other hand, I now tried this from another MacBook and experienced the same result.

I connected the wire that came with the Bluetooth adapter to the head unit with the black wire on the right. I connected the other end to the adapter, again, with the black wire on the right.

I used the wire from wi-fi adapter to connect the wi-fi adapter to the Bluetooth adapter. And again, I put the black wires on the right.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

Does the blue led in the BT module light up at all?
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Bluetooth Attachment

Post by sbidny »

Sorry, I missed this question earlier. Yes, I do see the blue LED flash momentarily when attempting to upload the sketch.

Something else that's strange is that Bluetooth on my Mac acts odd when connected to the adapter.

Sometimes, the Bluetooth control panel locks up. After a restart, the system says that my Bluetooth is unavailable. It only becomes available again after shutting down and holding down the power button for a while.

This has happened on both of my MacBook Pros. I also use other Bluetooth peripherals on both laptops.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Bluetooth Attachment

Post by sbidny »

Clarification. If I see the serial port already in use error, I do not see a blue LED. If I see the resource busy error, I do see it flash once.

Also, I have tried resetting my PRAM, and I have added a /var/lock directory as suggested on some websites. Neither has helped.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Bluetooth Attachment

Post by sbidny »

Actually, it sounds like the version of RXTX that comes with Arduino doesn't use locks, so the /var/lock directory change isn't useful.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Bluetooth Attachment

Post by sbidny »

Also, not seeing anything using the port when I run lsof.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

If you plug and unplug the BT dongle from your Mac, it should release the resources, in this case your serial port.
Are you able to connect if you unplug and plug the dongle back?
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Bluetooth Attachment

Post by sbidny »

Bluetooth is built into MacBooks. There is no dongle. Multiple restarts have not improved the situation either.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Bluetooth Attachment

Post by sbidny »

Has anyone else had success on a Mac? If so, was it using built-in Bluetooth? What OS X version? Which serial port did you choose? Anything special to get it working?
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Bluetooth Attachment

Post by sbidny »

Twice now, I have been able to see the following error:

Error uploading.

Rebooting Reef Angel Controller
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

This only seems to happen if I try to upload right after pairing, before the Bluetooth controller has an opportunity to disconnect.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

When it did this, did the blue led in the module turn on?
When the blue led in the module turns on, the controller is supposed to reboot. Did it reboot?
Are you able to try it in a PC? I'm just curious to know what would happen.
Does it say the resource is in use if you use Coolterm to open the serial port?
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Bluetooth Attachment

Post by sbidny »

Yes. The blue LED flashes briefly before switching back to green. Then the blue LED turns on again for a longer time. However, the controller never reboots.

I am going to give it a shot on a PC laptop next.

I have not tried Coolterm yet. I'll take a look.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

Well, it needs to reboot the controller when the blue led turns on.
If it is not rebooting, make sure that the cable with 5 wires is the one connected between the bt attachment and RA. The one with 4 wires is to be used between bt and wifi.
If you are indeed using the 5 wire one, you may need to send it back for me to look at it.
Roberto.
sbidny
Posts: 123
Joined: Mon Sep 17, 2012 12:41 pm
Location: Lincoln Park, Chicago, IL, USA 60614

Re: Bluetooth Attachment

Post by sbidny »

Definitely using the 5-wire cable between the Bluetooth adapter and the Reef Angel unit.

Just tried on Windows, and I'm seeing the following after the blue LED turns on:

avrdude: Version 6.0, compiled on Apr 6 2012 at 19:29:19
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Program Files (x86)\Reef Angel Controller\hardware/tools/avr/etc/avrdude.conf"

Using Port : \\.\COM4
Using Programmer : stk500v2
Overriding Baud Rate : 115200
Rebooting Reef Angel Controller
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done. Thank you.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

PM for RMA if it is not rebooting.
Roberto.
Spotted
Posts: 101
Joined: Thu May 10, 2012 5:46 am
Location: Sunny (and hot) South Florida

Re: Bluetooth Attachment

Post by Spotted »

You wouldn't possibly have anymore of these do you? I don't see it in the store.
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Bluetooth Attachment

Post by rimai »

Yeah, I do. PM me.
Roberto.
paulvisco
Posts: 53
Joined: Fri May 17, 2013 2:27 am

Re: Bluetooth Attachment

Post by paulvisco »

Yikes this is making me feel like a PC rookie.. (20 years desktop support in IT) one would think that i could figure this out

1st problem ide would fail with java error got that fixed by moving my schetch folder from my remaped my documents (on the server) to my local drive Error fixed
2nd replaced the dll and got my ide speed back up
3rd com port is in use error now (cant get around this)

I have deleted and reinstalled the bluetooth device drivers with the MS drivers
running windows 7 64 bit enterprize edition
so by default i did not have the out going comm port so i added that and now im stuck

i have the 5 wire cable connected to the RA and the 4 connected to my wifi (which works fine)

I assume this is a windows thing but im kind of lost on next steps..

also tested usb to ttl cable and that worked just fine

BT device that was found was a RNBT-41F0 so i assume that is the RA BT device

BT device when connected reboots the RA and the green light flashes (no blue light i dont get that far in the upload process)

The following features were automatically added:
Watchdog Timer
Version Menu

The following features were detected:
Dimming Signal
Date/Time Setup Menu
Standard Menu
Binary sketch size: 41,188 bytes (of a 258,048 byte maximum)
processing.app.SerialException: Serial port 'COM9' already in use. Try quiting any programs that may be using it.
Attachments
This should not be so hard
This should not be so hard
Capture.PNG (34.17 KiB) Viewed 8767 times
Image
Post Reply