Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Engineering & Systems > Marine Electronics
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 16-04-2022, 01:22   #1
Registered User

Join Date: Feb 2015
Location: Poland, Warsaw
Posts: 11
Post Problem with obtaining position from laptop on VHF

Good day, I’m a little confused thus I cannot obtain position on VHF Icom M422 from laptop through UART module by RS232 interface. Connections are prepared properly Tx in UART on Rx in radio and Rx in UART on Tx in radio. Gnd is also connected. Radio displays NO POSITION. I reach navigational data on laptop through WiFI by UDP Server. Position server is stated on iPhone which of course works in the same network as laptop. Position, COG and SOG is obtained on laptop with no problem. Laptop sends sentences $IPRMC and $IPGLL which are accepted by radio (according to VHF manual).

Moreover VHF is fine Because it obtain position from ploter Garmin GPSMap 182
with no problem. I connected Garmin to laptop by UART module to see what Garmin says to radio. I see that PUTTY gives strange strings - without sense just garbages. It not seems to be NMEA but I mentioned above it works with VHF. Where is the problem? I use OpenCpn on Windows 11
adam.lazarski is offline   Reply With Quote
Old 17-04-2022, 09:28   #2
Registered User

Join Date: Apr 2011
Location: Northport, Michigan
Boat: Trailerable cruising boat
Posts: 630
Re: Problem with obtaining position from laptop on VHF

Quote:
Originally Posted by adam.lazarski View Post
Laptop sends sentences $IPRMC and $IPGLL which are accepted by radio (according to VHF manual).
The portion of the sentence "$IP" is the TALKER ID.

The portion of the sentence "GLL" or "RMC" is the sentence identifier.

For an ICOM M422 radio, the manual states that the radio accepts the sentence GLL or RMC, but the manual no where mentions anything about a TALKER ID of $IP (or a any other TALKER ID value).

The radio is probably expecting the TALKER ID to be $GP.

In a very comprehensive investigation into the NMEA-0183 protocol, the known TALKER ID's are provided, and there is no mention of a $IP. Compare at

https://gpsd.gitlab.io/gpsd/NMEA.html

I suspect that the cause for the ICOM M422 radio to NOT accept position data in a sentence GLL or RMM is due to the TALKER ID being something totally unexpected by the radio.

My experience is that unusual TALKER ID use in communication to a VHF Marine Band radio of position data results in a problem. For more about this see

TALKER ID
https://continuouswave.com/forum/vie...hp?t=834#p6079

Because the NMEA organization refuses to provide open and unencumbered information about the details of their NMEA protocols and requires confidentiality and non-disclosure from all who have purchased their reference documents, almost everything known about NMEA-0183 is from observations and deductions or from disclosures by manufacturers of equipment using NMEA protocols.

CHECKSUM
Another possible cause of error in the communication between a source of position data and the radio may be the CHECKSUM. The radio may be STRICT about testing a received NMEA-0183 sentence for compliance with the CHECKSUM error check. If the transmitted sentence omits the CHECKSUM or has an incorrect CHECKSUM, the radio may ignore the sentence.

Conforming to strict checking of a packet's CHECKSUM seems to be optional for some devices.
continuouswave is offline   Reply With Quote
Old 17-04-2022, 09:35   #3
Registered User

Join Date: Oct 2021
Posts: 417
Re: Problem with obtaining position from laptop on VHF

Quote:
Originally Posted by adam.lazarski View Post
.... I see that PUTTY gives strange strings - without sense just garbages. It not seems to be NMEA but I mentioned above it works with VHF. Where is the problem? I use OpenCpn on Windows 11
Since you say other data flows appear to work this would make me think the baud rate on the laptop is not correct. The baud rate on a PC usually defaults to 9600, NMEA 0183 standard is 4800, or with AIS 38400. Traffic with garbage in serial is frequently mismatched baud (or, less common, mismatched bit/parity settings).
PippaB is offline   Reply With Quote
Old 17-04-2022, 09:47   #4
Registered User

Join Date: Apr 2011
Location: Northport, Michigan
Boat: Trailerable cruising boat
Posts: 630
Re: Problem with obtaining position from laptop on VHF

Quote:
Originally Posted by adam.lazarski View Post
I connected Garmin to laptop by UART module to see what Garmin says to radio. I see that PUTTY gives strange strings...
Check that the baud rate in use is set to the same value for both the TALKER port on the sending device and the LISTENER port of the receiving device.

The default NMEA-0183 baud rate is 4800 baud. There is an option for a High Speed port to use 38,400 baud. If there is a mismatch, the communication link will fail or produce erroneous output.

A mismatch in port speeds would explain the behavior you reported.
continuouswave is offline   Reply With Quote
Old 17-04-2022, 11:04   #5
Registered User

Join Date: Feb 2006
Location: Eastern Caribbean for the 2020 season then east coast or Panama
Boat: Lagoon 470 cat
Posts: 700
Re: Problem with obtaining position from laptop on VHF

Third vote for a baud mismatch.
Moontide is offline   Reply With Quote
Old 17-04-2022, 11:34   #6
Registered User

Join Date: Jun 2013
Location: canada
Posts: 4,720
Re: Problem with obtaining position from laptop on VHF

Why would you want to rely on having your laptop on to have pos on the vhf? I would install a dedicated nmea 183 antenna for it.
smac999 is offline   Reply With Quote
Old 17-04-2022, 12:20   #7
Registered User
 
CarinaPDX's Avatar

Join Date: Jan 2010
Location: Portland, Oregon, USA
Boat: 31' Cape George Cutter
Posts: 3,307
Re: Problem with obtaining position from laptop on VHF

NMEA 0183 is based on the RS-422 spec, NOT RS-232. Much of the time the ICs used as terminals can inter-operate, but not always. So first thing to do is to is use a USB to RS-422 adapter, not an RS-232 adapter.

NMEA 0183 is defined to operate at 4800 baud. High Speed 0183 (NMEA 0183-HS) is defined to operate at 38.4kbps. Some compatible gear support other rates but they are non-standard. Of course the best way to find out which your equipment uses is to RTFM - it is (almost) always documented. But for marine gear from marine suppliers the best bet is 4800 baud.

I suspect that the talker ID is not the problem, as long as it is formatted correctly. The radio is looking for the sentence type and probably ignores the talker ID - but anything is possible.

Good luck.

Greg
CarinaPDX is offline   Reply With Quote
Old 17-04-2022, 13:06   #8
Registered User

Join Date: Mar 2021
Location: Flagler County, FL, USA, Earth
Boat: Lagoon 380
Posts: 1,517
Re: Problem with obtaining position from laptop on VHF

I thought 0183 was close to RS423. Unipolar, 5v ish. Apple try back in 1990 or so.
team karst is offline   Reply With Quote
Old 17-04-2022, 13:36   #9
Registered User

Join Date: Sep 2015
Location: East Coast Florida
Boat: Chris Craft 38 Commander 1965
Posts: 482
Re: Problem with obtaining position from laptop on VHF

You have a Garmin win 0183 In and Out at "normal" and High Speed. They try and KISS and forego any talk of BAUD rates. High Speed fro AIS and Normal for everything else.
Why not just use the 0183 out from it to the Radio - that is what I do with mine just for DSC. The chartplotter feeds both the radio and a PC with OpenCPN. I have a 0183 bar setup for sharing the data to anything that needs 0183 leftover from before I went mostly now to NMEA 2000.

That way all the Lat/Lon stuff is hard wired and the WIFI just for fun stuff like tablets and phones.
Squanderbucks is offline   Reply With Quote
Old 17-04-2022, 13:43   #10
Registered User
 
CarinaPDX's Avatar

Join Date: Jan 2010
Location: Portland, Oregon, USA
Boat: 31' Cape George Cutter
Posts: 3,307
Re: Problem with obtaining position from laptop on VHF

Apple's LocalTalk networking was RS-422 also. RS-422 uses a maximum of -6V to +6V differential voltage. RS-232 uses +3V to +15V for 0, and -3V to -15V for 1, relative to ground. They are quite different...

Greg
CarinaPDX is offline   Reply With Quote
Old 17-04-2022, 14:57   #11
Registered User

Join Date: Mar 2021
Location: Flagler County, FL, USA, Earth
Boat: Lagoon 380
Posts: 1,517
Problem with obtaining position from laptop on VHF

https://en.m.wikipedia.org/wiki/RS-423

An orphan. Signal voltages like 422, but unbalanced wiring like 232.
team karst is offline   Reply With Quote
Old 18-04-2022, 03:24   #12
Registered User

Join Date: Feb 2015
Location: Poland, Warsaw
Posts: 11
Re: Problem with obtaining position from laptop on VHF

I tried to change baudrate from 2400 to 38400, changing parity, checksum etc. Garmin works ob 4800. So maybe I have to use other adapter such rs422…
adam.lazarski is offline   Reply With Quote
Reply

Tags
laptop, vhf


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Obtaining Accurate Offshore/Hi-Seas Weather data/forecasts, while at sea ka4wja Marine Electronics 57 25-10-2013 11:00
Help on obtaining meds from Florida to Trinidad and in between please Kaja Health, Safety & Related Gear 13 11-01-2013 15:02
Obtaining 24 vdc micheck Electrical: Batteries, Generators & Solar 12 06-04-2012 03:48
Obtaining a US Coastguard Dissolution Document catspaws Rules of the Road, Regulations & Red Tape 4 14-02-2011 05:39
Obtaining Indian Visa in Phuket svBeBe Indian Ocean & Red Sea 12 31-07-2010 15:57

Advertise Here
  Vendor Spotlight
No Threads to Display.


All times are GMT -7. The time now is 23:49.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.