Core.AIS
2.0.0
dotnet add package Core.AIS --version 2.0.0
NuGet\Install-Package Core.AIS -Version 2.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Core.AIS" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Core.AIS" Version="2.0.0" />
<PackageReference Include="Core.AIS" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Core.AIS --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Core.AIS, 2.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Core.AIS@2.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Core.AIS&version=2.0.0
#tool nuget:?package=Core.AIS&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Core.AIS
开始
从Nuget安装最新版本。
Install-Package Core.AIS
- AIS 在线解析器. AIVDM & AIVDO NMEA MESSAGES
https://www.aggsoft.com/ais-decoder.htm - AIVDM/AIVDO 协议解析
https://gpsd.gitlab.io/gpsd/AIVDM.html
使用
// 解析完整的 NEMA0183 消息,得到 AIS 消息对象,可能为空,表示解析失败或者不包含 AIS 消息
var msg = AisParser.Instance.Parse(nmea0183);
// 解析得到包含位置信息、MMSI的 AIS 消息对象,可能为空
var info = AisParser.Instance.Parse(msg);
if (info != null)
{
Console.WriteLine(info);
// 获取船舶的目标信息,包含船名、国籍、呼号、IMO编号、尺寸等,可能为空
var target = AisParser.Instance.GetTarget(info.MMSI);
}
// 定时清理过期的 AIS 目标信息,过期时间为 10 分钟
// AisParser.Instance.RemoveExpiredTargets(TimeSpan.FromMinutes(10));
AIS 语句
!ABVDM,1,1,,B,B6:<FH0002:PLATb2`@WpOlSQP06,0*43
!ABVDM,1,1,,A,<=?eN>9RD6665>D5BPD85P312<5PG1B>9>7P1B51dP@<51C5P<51F50,2*09
!ABVDM,1,1,,B,16<J@<0P?w<tSF0l4Q@>4?wv0PRG,0*6E
!ABVDM,1,1,,A,B69@IS@002:Ot<4awM2OWwv63P06,0*62
!ABVDM,1,1,,A,7@001UCfAlKc,0*1E
!ABVDM,1,1,,A,C6:<;B000::P:PTb2C2EMov08BL>DCkkj00000000000JPl?22P0,0*05
!ABVDM,1,1,,B,B6:FtHP00::OG1Tat5`<cwn42000,0*17
!ABVDM,1,1,,A,405ImuAup@P008bFQHBcnvA01P06,0*33
!ABVDM,1,1,,A,8=cu4`iWhAPRUa8a:lkUI0,4*07
!ABVDM,1,1,,B,8=cu4`iWhAPRUa8a:lkUI0,4*04
!ABVDM,1,1,,B,405ImuAup@P008bFQHBcnvA01P06,0*30
!ABVDM,1,1,,B,16:HgU00008av@fBWmWHL01J0000,0*00
!ABVDM,1,1,,B,36:>tgU000`bIPhB`Waf49SJ2Dt:,0*74
!ABVDM,2,1,2,B,53wmjs00000000000004000000000000000000000000000Ht00000000000,0*22
!ABVDM,2,2,2,B,00000000000,2*2E
!ABVDM,1,1,,A,B00000080R:P4aTb2uR2Swn0QP06,0*66
!ABVDM,1,1,,B,C000000802:OwQ4awoES7wmQ11111111111111111110?OwwwwP7,0*35
!ABVDM,1,1,,B,B6:<NP000::OMb4atf;Pcwo42000,0*73
!ABVDM,1,1,,B,B69@936H:k?8mP=18D2D3wpv1P06,0*1F
!ABVDM,1,1,,B,B69@2Kh002:P>d4b37Hg;wv63P06,0*24
!ABVDM,1,1,,A,B69@9K@002:P=@4b1;j3Kwv63P06,0*2B
!ABVDM,1,1,,A,H69@2Ki=E9EUET4pO3S33J22220,2*69
!ABVDM,1,1,,B,B69@HH@0DB:`BpTbPW:lJ@N021Mk,0*0B
!ABVDM,1,1,,B,13wmjs0P?w<tSF0l4Q@>4?wv0l0i,0*12
!ABVDM,1,1,,B,<=?eN>=RD6665>D5BPD85P312<5PG1B>9>7P1B51dP@<51C5P<51F50,2*0E
!ABVDM,1,1,,B,405ImuAup@P008bFQHBcnvA01P06,0*30
!ABVDM,1,1,,A,869@2KiW@e3vAOa1inH>631dP@84210P,0*7D
!ABVDM,1,1,,B,16:>cSPP008bSQ@BaT=`fgwP0<1W,0*63
!ABVDM,1,1,,A,H6;:0lTmC8e19CjqpPPPPP2PB400,0*4D
!ABVDM,1,1,,B,H05ImuDU00000000000000000000,0*23
!ABVDM,1,1,,B,H05ImuDU00000000000000000000,0*23
!ABVDM,1,1,,A,B69@7IP002:Oe04b3FBBkwv63P06,0*06
!ABVDM,1,1,,B,403t=2ivQaTAj`clbVBW;e700@Mn,0*76
!ABVDM,1,1,,A,B69@69h002:On@4b4AJCCwv63P06,0*15
!ABVDM,1,1,,B,B69@1ch002:OqL4awIQkswv63P06,0*13
!ABVDM,1,1,,A,B69@eNh012:Oul4b1EpHKwv63P06,0*3F
!ABVDM,1,1,,A,<=?eN>=RD6665>D5BPD85P312<5PG1B>9>7P1B51dP@<51C5P<51F50,2*0D
!ABVDM,1,1,,A,405ImuAup@P008bFQHBcnvA01P06,0*33
!ABVDM,1,1,,A,B69@8fP002:O9`4arbr6Cwv63P06,0*20
!ABVDM,1,1,,A,B69@230002:O;h4as5BNgwv63P06,0*2F
!ABVDM,1,1,,B,405ImuAup@P008bFQHBcnvA01P06,0*30
!ABVDM,1,1,,A,H69@234N0000000PPPPPPP1`=330,0*6D
!ABVDM,1,1,,A,H69cE8lN6Deiphohhhpmjn2P7420,0*4D
!ABVDM,1,1,,B,B69@9dh002:OKt4auG183wv63P06,0*61
!ABVDM,1,1,,A,B69@27@80R:Pi:Tb4W2g;wr0QP06,0*0F
!ABVDM,1,1,,A,B69@FB@002:Ofh4b3@2dWwv63P06,0*5B
!ABVDM,1,1,,A,B69@1JnH03?8mP=18D003wPN1P06,0*09
!ABVDM,1,1,,B,7@001UCfAlMV,0*2E
!ABVDM,1,1,,B,7@001UCfAlK`,0*1E
!ABVDM,1,1,,A,13wmjs0P?w<tSF0l4Q@>4?wv0`Ow,0*7C
!ABVDM,1,1,,B,B6:?CB000::Pd?Tb4<Avows42000,0*31
!ABVDM,1,1,,A,405ImuAup@P008bFQHBcnvA01P06,0*33
!ABVDM,1,1,,B,405ImuAup@P008bFQHBcnvA01P06,0*30
!ABVDM,1,1,,A,8=cu4aiWhAPRa<0i:ONvI0,4*4A
!ABVDM,1,1,,B,8=cu4aiWhAPRa<0i:ONvI0,4*49
!ABVDM,1,1,,A,16:HgU00008av@`BWmVpL01f0000,0*10
!ABVDM,1,1,,A,B69@1kP002:OpD4awAagowv63P06,0*01
!ABVDM,1,1,,A,B69@6c@002:Okp4awj@V?wv63P06,0*5A
!ABVDM,1,1,,B,B69@1EP80B:P41Tb2sljSws4QP06,0*37
!ABVDM,1,1,,A,B69@76h002:Oih4b3npQ;wv63P06,0*4C
!ABVDM,1,1,,B,H69@76l50000000PPPPPPP1h>330,0*46
!ABVDM,1,1,,B,869@76iW@e3trv0UlPps<73=Pq@84210,0*01
!ABVDM,1,1,,B,B69@6W6p03?8mP=18D003wPN1P06,0*70
!ABVDM,1,1,,A,<=?eN>1RD6665>D5BPD85P312<5PG1B>9>7P1B51dP@<51C5P<51F50,2*01
!ABVDM,1,1,,B,B69@7a@002:OBL4atjIogwv63P06,0*24
!ABVDM,1,1,,A,16:>cSPP008bSQ@BaT=`fgwj08B0,0*4A
!ABVDM,1,1,,B,B69@8dh002:PSl4b61QaOwv63P06,0*0C
!ABVDM,1,1,,A,H69@Fa1=D@tpM@4UUG77O3V2220,2*55
!ABVDM,1,1,,A,405ImuAup@P008bFQHBcnvA01P06,0*33
!ABVDM,1,1,,B,B69@2bP003?8mP=18D003wPJ1P06,0*63
!ABVDM,1,1,,A,C6:W0i@002:R@nTasuG8WwtRhBL?0@2L?0@b31kkk110SPD@1R07,0*52
!ABVDM,1,1,,A,7@001UCfAlK?,0*42
!ABVDM,1,1,,B,405ImuAup@P008bFQHBcnvA01P06,0*30
!ABVDM,1,1,,A,B69@0`P00B:OtT4b4rR5?wv63P06,0*2D
!ABVDM,1,1,,A,H69@e`i=D@tpM@4UUG373GR2220,2*27
!ABVDM,1,1,,A,H69@e`lN0000000PPPPPPP1@:330,0*16
解析结果
MMSI: 413341280, Latitude: 32.55403, Longitude: 121.02918, SpeedOverGround: 0.0000, CourseOverGround: 63.8, UpdateTime: 2026/3/30 15:21:53
MMSI: 412359053, Latitude: 32.54861, Longitude: 121.02233, SpeedOverGround: 0.0000, CourseOverGround: 255.3, UpdateTime: 2026/3/30 15:21:53
MMSI: 413338440, Latitude: 32.55347, Longitude: 121.02539, SpeedOverGround: 0.0000, CourseOverGround: 239.1, UpdateTime: 2026/3/30 15:21:53
MMSI: 413514850, Latitude: 32.54287, Longitude: 121.01441, SpeedOverGround: 0.0000, CourseOverGround: 20.2, UpdateTime: 2026/3/30 15:21:53
MMSI: 413544340, Latitude: 32.54512, Longitude: 121.01721, SpeedOverGround: 0.0000, CourseOverGround: 216.0, UpdateTime: 2026/3/30 15:21:53
MMSI: 413383870, Latitude: 32.56646, Longitude: 121.11023, SpeedOverGround: 0.0000, CourseOverGround: 360.0, UpdateTime: 2026/3/30 15:21:53
MMSI: 413343360, Latitude: 32.54395, Longitude: 121.01582, SpeedOverGround: 0.0000, CourseOverGround: 359.4, UpdateTime: 2026/3/30 15:21:53
MMSI: 412353135, Latitude: 32.55486, Longitude: 121.02628, SpeedOverGround: 0.0000, CourseOverGround: 75.4, UpdateTime: 2026/3/30 15:21:53
MMSI: 412354925, Latitude: 32.55157, Longitude: 121.02597, SpeedOverGround: 0.0000, CourseOverGround: 210.2, UpdateTime: 2026/3/30 15:21:53
MMSI: 412358753, Latitude: 32.60520, Longitude: 121.13640, SpeedOverGround: 4.1634, CourseOverGround: 288.6, UpdateTime: 2026/3/30 15:21:53
MMSI: 413379470, Latitude: 32.59230, Longitude: 121.14439, SpeedOverGround: 0.0000, CourseOverGround: 223.4, UpdateTime: 2026/3/30 15:21:53
MMSI: 412354406, Latitude: 32.55526, Longitude: 121.01909, SpeedOverGround: 0.0000, CourseOverGround: 234.8, UpdateTime: 2026/3/30 15:21:53
MMSI: 412354087, Latitude: 32.55684, Longitude: 121.02107, SpeedOverGround: 0.0000, CourseOverGround: 235.6, UpdateTime: 2026/3/30 15:21:53
MMSI: 412352943, Latitude: 32.54852, Longitude: 121.02175, SpeedOverGround: 0.0000, CourseOverGround: 185.4, UpdateTime: 2026/3/30 15:21:53
MMSI: 412364155, Latitude: 32.55184, Longitude: 121.02268, SpeedOverGround: 0.2056, CourseOverGround: 39.0, UpdateTime: 2026/3/30 15:21:53
MMSI: 412354746, Latitude: 32.54045, Longitude: 121.01155, SpeedOverGround: 0.0000, CourseOverGround: 214.8, UpdateTime: 2026/3/30 15:21:53
MMSI: 412353036, Latitude: 32.54115, Longitude: 121.01200, SpeedOverGround: 0.0000, CourseOverGround: 253.9, UpdateTime: 2026/3/30 15:21:53
MMSI: 412354995, Latitude: 32.54504, Longitude: 121.01545, SpeedOverGround: 0.0000, CourseOverGround: 115.2, UpdateTime: 2026/3/30 15:21:53
MMSI: 412353053, Latitude: 32.55741, Longitude: 121.03364, SpeedOverGround: 0.1028, CourseOverGround: 280.2, UpdateTime: 2026/3/30 15:21:53
MMSI: 412358217, Latitude: 32.55509, Longitude: 121.01947, SpeedOverGround: 0.0000, CourseOverGround: 276.1, UpdateTime: 2026/3/30 15:21:53
MMSI: 413389640, Latitude: 32.55670, Longitude: 121.03259, SpeedOverGround: 0.0000, CourseOverGround: 202.9, UpdateTime: 2026/3/30 15:21:53
MMSI: 413544340, Latitude: 32.54511, Longitude: 121.01721, SpeedOverGround: 0.0000, CourseOverGround: 216.0, UpdateTime: 2026/3/30 15:21:53
MMSI: 412352974, Latitude: 32.54831, Longitude: 121.02151, SpeedOverGround: 0.0000, CourseOverGround: 178.9, UpdateTime: 2026/3/30 15:21:53
MMSI: 412354221, Latitude: 32.54918, Longitude: 121.02056, SpeedOverGround: 0.0000, CourseOverGround: 61.1, UpdateTime: 2026/3/30 15:21:53
MMSI: 412352854, Latitude: 32.55456, Longitude: 121.02401, SpeedOverGround: 0.0514, CourseOverGround: 80.8, UpdateTime: 2026/3/30 15:21:53
MMSI: 412354331, Latitude: 32.55613, Longitude: 121.02011, SpeedOverGround: 0.0000, CourseOverGround: 53.0, UpdateTime: 2026/3/30 15:21:53
MMSI: 412354469, Latitude: 32.54406, Longitude: 121.01343, SpeedOverGround: 0.0000, CourseOverGround: 191.5, UpdateTime: 2026/3/30 15:21:53
MMSI: 413379470, Latitude: 32.59230, Longitude: 121.14439, SpeedOverGround: 0.0000, CourseOverGround: 223.4, UpdateTime: 2026/3/30 15:21:53
MMSI: 412354739, Latitude: 32.55983, Longitude: 121.03079, SpeedOverGround: 0.0000, CourseOverGround: 168.7, UpdateTime: 2026/3/30 15:21:53
MMSI: 413778117, Latitude: 32.54265, Longitude: 121.05405, SpeedOverGround: 0.0000, CourseOverGround: 320.9, UpdateTime: 2026/3/30 15:21:53
MMSI: 412352674, Latitude: 32.55793, Longitude: 121.02241, SpeedOverGround: 0.0514, CourseOverGround: 213.1, UpdateTime: 2026/3/30 15:21:53
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.