将英特尔十六进制转换为ASCII格式 [英] To convert intel hexadecimal to ascii format

查看:169
本文介绍了将英特尔十六进制转换为ASCII格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要将INTE HEXADECIMAL转换为ascii格式.
从Intel十六进制获取的数据应使用ascii值进行转换.

http://forum.allaboutcircuits.com/showthread.php?t=42375 [ ^ ]


我正在寻找像这样的手部分具有ascii值的东西.
有人可以帮我提供代码吗?

预先感谢.

Hi All,

I need to convert an INTEL HEXADECIMAL to ascii format.
The data that is got from the Intel hex should be converted with ascii values.

http://forum.allaboutcircuits.com/showthread.php?t=42375[^]


I m looking out for something like this wre d rite hand portion has ascii values.
Can anyone help me with a code?

Thanks in advance.

推荐答案

http://dev.frozeneskimo.com /software_projects/libgis [^ ]
您可以在 https://github.com/vsergeev/libGIS [ http://en.wikipedia.org/wiki/Intel_hex [
http://dev.frozeneskimo.com/software_projects/libgis[^]
You can check the C code here https://github.com/vsergeev/libGIS[^]

Try to get the idea and convert it to C#.

Ref:http://en.wikipedia.org/wiki/Intel_hex[^]


否.这个问题"显然是胡言乱语的(请参阅 http://en.wikipedia.org/wiki/胡言乱语 [ ^ ]).

没有像INTEL HEXADECIMAL这样的数据类型的格式.数值数据不能为十六进制或十进制.具有一定基数的位置数字系统的整个概念仅与数字数据的字符串(人类可读")表示形式有关,而与机器表示形式(始终为二进制")有关.请参见 http://en.wikipedia.org/wiki/Hexadecimal [
(天哪,我为什么要解释所有这些?谁会读?!我应该简单地将问题标记为主题,并解释说该论坛仅适用于软件开发人员.)



至于Intel HEX文件格式,它已经是ASCII码了.参见:
http://en.wikipedia.org/wiki/Intel_hex [
No. This "question" is apparent gibberish (see http://en.wikipedia.org/wiki/Gibberish[^]).

There is not such think as INTEL HEXADECIMAL data type of format. Numeric data cannot be hexadecimal or decimal. The whole notion of positional numeral system with certain base is only related to string ("human-readable") representation of numeric data, not to machine representation (which is always "binary"). See http://en.wikipedia.org/wiki/Hexadecimal[^].

Also, data formatted as hexadecimal or decimal cannot be "converted with ASCII values", because in .NET strings are supported in Unicode encoding UTF-16, and ASCII is only related to one of the presentations of data in form of array of byte (in case of ASCII, one byte represents one character, in contrast to all Unicode UTFs) and used in serialization of data written in stream/file.

(Gosh, why am I explaining all that? Who will read it?! I should have simply marked the question as off-topic and explain that this forum is just for software developers.)



As to the Intel HEX file format, it''s already in ASCII. See:
http://en.wikipedia.org/wiki/Intel_hex[^].

Thanks to Prerak who pointed it out and provided the link.

—SA


我搜索了您的问题,并在帖子中读到如果用"Hex"表示您是"Intel Hex",那么它已经是ASCII!十六进制是二进制数据的ASCII表示形式.
(来源
http://www.keil.com/forum/9548/ [
I searched your question and read in a post that "If by "Hex" you mean "Intel Hex", then it already is ASCII! Intel Hex is an ASCII representation of binary data.
(Source http://www.keil.com/forum/9548/[^])


这篇关于将英特尔十六进制转换为ASCII格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆