SailNet Community - Reply to Topic

   Search Sailnet:

 forums  store  


Quick Menu
Forums           
Articles          
Galleries        
Boat Reviews  
Classifieds     
Search SailNet 
Boat Search (new)

Shop the
SailNet Store
Anchor Locker
Boatbuilding & Repair
Charts
Clothing
Electrical
Electronics
Engine
Hatches and Portlights
Interior And Galley
Maintenance
Marine Electronics
Navigation
Other Items
Plumbing and Pumps
Rigging
Safety
Sailing Hardware
Trailer & Watersports
Clearance Items

Advertise Here






Go Back   SailNet Community > On Board > Gear & Maintenance > Electronics > NMEA over Bluetooth
 Not a Member? 


Thread: NMEA over Bluetooth Reply to Thread
Title:
  

By choosing to post the reply below you agree to the rules you agreed to when joining Sailnet.
Click Here to view those rules.

Message:
Trackback:
Send Trackbacks to (Separate multiple URLs with spaces) :
Post Icons
You may choose an icon for your message from the following list:
 

Register Now

In order to be able to post messages on the SailNet Community forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.
Please note: After entering 3 characters a list of Usernames already in use will appear and the list will disappear once a valid Username is entered.
User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself.
Email Address:

Log-in

Human Verification

In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.



Click here to view the posting rules you are bound to when clicking the
'Submit Reply' button below


Additional Options
Miscellaneous Options

Click here to view the posting rules you are bound to when clicking the
'Submit Reply' button below


Topic Review (Newest First)
02-20-2013 04:57 PM
TakeFive
Re: NMEA over Bluetooth

Quote:
Originally Posted by gr8wi9 View Post
...When I try it through my usb comm port cable adapter, I can see the cable as a port, but I don't see the bluetooth adapter on the other side of the cable.
I think that is normal behavior. The AT commands only affect the settings for the COM side of the adapter. The settings for the Bluetooth side are only adjusted through the Bluetooth driver software (Toshiba, BlueSoliel, etc.)
02-20-2013 04:53 PM
gr8wi9
Re: NMEA over Bluetooth

Quote:
Originally Posted by TakeFive View Post
On second thought, before you scrounge together all these cables, you might try to see if you can configure the RS232 port through a Bluetooth connection (since your blue light is illuminated). You need to figure out what COM port your Bluetooth driver is emulating and what baud rate it's set at. Then you can launch TeraTerm, set it for that COM and baud, and see what happens. If you have communications, then you should be able to issue the AT commands wirelessly through Bluetooth. However, every time you change the baud rate with an ATL command, you may lose your connection. I can't remember whether this adapter requires both baud rates to be the same, or whether it can have the RS232 side at a different baud rate from the Bluetooth side.
They do mention it can be configured over bluetooth, but the instructions are not at all clear to me. Maybe the ticket is to reset the adapter, then power it up and get the computer's bluetooth running at the same rate. I'll see what happens that way. When I try it through my usb comm port cable adapter, I can see the cable as a port, but I don't see the bluetooth adapter on the other side of the cable.
02-20-2013 02:12 PM
Alex W
Re: NMEA over Bluetooth

I was talking about the GX2100 being broken by having two output signals with different NMEA sentences at different baud rates. Having the input be at 4800 and the output be at 38400 isn't that weird (outside of PCs) and isn't the GX2100 concern that I raised.
02-20-2013 01:46 PM
TakeFive
Re: NMEA over Bluetooth

Quote:
Originally Posted by Alex W View Post
In this drawing you are using 38400 for both:


If you are using a different configuration then I don't see it in the thread that you referenced. In none of your drawings did I see that you were mixing those two outputs. I did actually read what you referenced.

Few, if any, serial devices are going to handle a mix of data coming at 4800 and 38400 on the same line. Multiplexing by joining two signals, one 4800 and one 38400, with no logic in between, is going to be a mess. If the devices don't talk at the same time there is a small chance of it working (if the downstream device can automatically adapt the baud rate), but if they do talk at the same time then you will get garbage.
That drawing is my current configuration. I am not using 38400 for both. You can see clearly in the upper left part of the diagram that AIS goes out of the radio at 38400, but GPS goes into the radio at 4800 - just like it would on your GX2100. (They are on separate wires, of course. The arrows connecting the block diagram together do not represent wires.) But the two signals are never mixed at any point. There is no multiplexer in the system.

The DSC wire is not connected at the moment (that's why it's not shown in the diagram), because at the time I set this up OpenCPN did not display DSC locations. The most recent revision of OpenCPN (still in beta) does display DSC locations, so I may consider turning on the radio's multiplexer and sending both AIS and DSC out at 38400. But my radio has never received a single DSC call in the past 2 years, so I'm not sure it's worth the trouble.
02-20-2013 01:26 PM
Alex W
Re: NMEA over Bluetooth

Quote:
Originally Posted by TakeFive View Post
I have NOT configured my GX2150 in the way you say. The GX2150 gives you the option of multiplexing both AIS and DSC onto one wire (the gray one) at 38400. But you do not have to do that. You can instead opt to send the signals out the same way as done the GX2100, with DSC/DSE on the grey wire at 4800 and AIS on the brown wire at 38400.
In this drawing you are using 38400 for both:


If you are using a different configuration then I don't see it in the thread that you referenced. In none of your drawings did I see that you were mixing those two outputs. I did actually read what you referenced.

Few, if any, serial devices are going to handle a mix of data coming at 4800 and 38400 on the same line. Multiplexing by joining two signals, one 4800 and one 38400, with no logic in between, is going to be a mess. If the devices don't talk at the same time there is a small chance of it working (if the downstream device can automatically adapt the baud rate), but if they do talk at the same time then you will get garbage.
02-20-2013 09:54 AM
TakeFive
Re: NMEA over Bluetooth

Quote:
Originally Posted by gr8wi9 View Post
...To connect your computer to the adapter for configuration, you will either need a serial cable (if you have an ancient computer with actual COM ports) or more likely a USB-Serial adapter. Be sure to have a gender changer handy - you may need it. (The industrial version of the adapter that I bought came with the gender changer, which is part of the reason I bought it. US Converters does sell them separately if you need one.)
On second thought, before you scrounge together all these cables, you might try to see if you can configure the RS232 port through a Bluetooth connection (since your blue light is illuminated). You need to figure out what COM port your Bluetooth driver is emulating and what baud rate it's set at. Then you can launch TeraTerm, set it for that COM and baud, and see what happens. If you have communications, then you should be able to issue the AT commands wirelessly through Bluetooth. However, every time you change the baud rate with an ATL command, you may lose your connection. I can't remember whether this adapter requires both baud rates to be the same, or whether it can have the RS232 side at a different baud rate from the Bluetooth side.
02-20-2013 12:22 AM
TakeFive
Re: NMEA over Bluetooth

You are also going to have to do some research into DCE vs. DTE modes so you'll know how to set the switch on your adapter. I cannot remember which setting is correct for this device to work properly, and my adapters are down on the boat. These are some of the more cryptic aspects of RS232 communications, and I only learn them long enough to configure my new gadgets once every 10 years or so.
02-20-2013 12:12 AM
TakeFive
Re: NMEA over Bluetooth

Quote:
Originally Posted by gr8wi9 View Post
I have the same US Converters adapter that you have.

Serial Bluetooth Adapter (UCBT232B)
USB Bluetooth Dongle 100 FT (BLDONG)

I also downloaded Toshiba drivers from their site, so maybe that's what's in their stuff. I'll check the baud rate and port settings again. That's probably it.

Thanks again for the tips.
Sorry, there have been numerous Bluetooth adapters mentioned in this thread and I did not know which one you had. I do have two by US Converters, but they are the BT433 industrial strength versions.

You are going to have to make full use of the documentation and utilities that they provide on their website. Also look at their utilities To configure the Bluetooth adapter, you need to install terminal emulation (their Teraterm program works fine). Unfortunately you are going to have to issue command-line commands using the AT format familiar to those of us who were alive back in the day of telephone modems.

To connect your computer to the adapter for configuration, you will either need a serial cable (if you have an ancient computer with actual COM ports) or more likely a USB-Serial adapter. Be sure to have a gender changer handy - you may need it. (The industrial version of the adapter that I bought came with the gender changer, which is part of the reason I bought it. US Converters does sell them separately if you need one.)

The datasheet for your Bluetooth adapter says quite clearly that it defaults to 19200 baud, so you will have to set your terminal emulator to 19200 to establish communications. Once you've established communications, the command you need to send is ATL0. This will set the serial port to 4800. You will immediately lose communications, because you'll need to reset your terminal emulator to 4800 to re-establish communications. I'm 90% certain this is the speed your HX851 uses. If that doesn't work, try 38400 (ATL3), since that's the second most common speed for NMEA communications (though the NMEA 0183 specification technically only formally supports 4800).
02-19-2013 11:44 PM
TakeFive
Re: NMEA over Bluetooth

Quote:
Originally Posted by Alex W View Post
...You are using 38400, which I noted does send all sentences out of one NMEA port. At 4800 it does not. This is covered in the GX2150 manual on pages 16 and 17.
I have NOT configured my GX2150 in the way you say. The GX2150 gives you the option of multiplexing both AIS and DSC onto one wire (the gray one) at 38400. But you do not have to do that. You can instead opt to send the signals out the same way as done the GX2100, with DSC/DSE on the grey wire at 4800 and AIS on the brown wire at 38400. That is how I have my radio set up, and it has been working perfectly fine with my computer chartplotter for the past two years. The reasons I chose to do that are complicated and I don't have time to explain right now. But bottom line, I could plop your GX2100 into my boat and it would work in exactly the same way. Contrary to what you say, I am not currently taking advantage of the GX2150's option to multiplex DSC and AIS onto one port.

As for this guy's HX851, he simply needs one full duplex COM port, probably at 4800 (since his manual does not list any options). The GPS sentences simply go out the charging cradle to the Bluetooth adapter, which gets mapped to an emulated COM port in his computer.
02-19-2013 08:31 PM
Alex W
Re: NMEA over Bluetooth

I'm sorry to cause confusion about the HX 851. I missed that part and saw references to the GX21xx. I've never looked at the HX 851.

You are using 38400, which I noted does send all sentences out of one NMEA port. At 4800 it does not. This is covered in the GX2150 manual on pages 16 and 17.
This thread has more than 10 replies. Click here to review the whole thread.

 
Posting Rules
You may post new threads
You may post replies
You may post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On


All times are GMT -4. The time now is 05:33 PM.

Add to My Yahoo!         
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.1
(c) Marine.com LLC 2000-2012

The SailNet.com store is owned and operated by a company independent of the SailNet.com forum. You are now leaving the SailNet forum. Click OK to continue or Cancel to return to the SailNet forum.