通过串口发送大号

编程入门 行业动态 更新时间:2024-10-11 13:22:54
本文介绍了通过串口发送大号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

你好每一个 i我试图通过串口发送一组大数(3000及以上)使用vb是否有任何方法发送此(3000)一次(即不转换到字节)

hello every one i am trying to send a group of large numbers(3000 and above) over serial port using vb is there any method to send this (3000)once (i.e. not convert to bytes)

推荐答案

数字本身只是一堆字节,所以为什么要担心。您可以将其作为二进制文件发送(首选方式,需要两个字节,如果您不超过 65535 )或使用其字符串表示形式(如果您不使用,则需要4个字节) t超过 9999 )。在任何情况下,您都必须通过串行线发送字节。请注意,您可以在单个函数调用中发送所有字节。 The number itself is just a bunch of bytes, so why worry. You may send it as binary (preferred way, two bytes needed, if you don''t exceed 65535) or using its string representation (4 bytes needed if you don''t exceed 9999). In any case you have to send bytes over the serial line. Note that you may send all the bytes in a single function call.

更多推荐

通过串口发送大号

本文发布于:2023-11-29 13:58:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1646584.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:大号   串口

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!