C#AIS解码器你好 [英] C# AIS Decoder hello
本文介绍了C#AIS解码器你好的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试制作C#AIS解码器.我正在使用此信息作为基点 http://www.bosunsmate.org/ais/ [
Hi,
I am trying to make a C# AIS decoder. I am using this information a a base point http://www.bosunsmate.org/ais/[^]
I have managed to get the binary of each character, but I do not know how to convert it into its correct format now. For example, the MMSI binary is ''010010110101011101110000101001''. I am getting this value, but how do I decode it and get the value ''316005417'' from it?
推荐答案
看看我对上一个问题的回答请求将8bit ASCII转换为6bit [
Having a look at my answer to your last request Convert 8bit ASCII to 6bit[^]
and probably having a look at
convert.ToInt32()
及其18个重载可能导致您进入
and its 18 overloads might have lead you to
Convert.ToInt32(< your binary value >, 2)
这篇关于C#AIS解码器你好的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文