资源简介
利用nodejs实现串口通信,可以更改波特率,接收数据类型等
代码片段和文件信息
/*
Test performance of native C UUID generation
To Compile: cc -luuid benchmark-native.c -o benchmark-native
*/
#include
#include
#include
#include
int main() {
uuid_t myid;
char buf[36+1];
int i;
struct timeval t;
double start finish;
gettimeofday(&t NULL);
start = t.tv_sec + t.tv_usec/1e6;
int n = 2e5;
for (i = 0; i < n; i++) {
uuid_generate(myid);
uuid_unparse(myid buf);
}
gettimeofday(&t NULL);
finish = t.tv_sec + t.tv_usec/1e6;
double dur = finish - start;
printf(“%d uuids/sec“ (int)(n/dur));
return 0;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-05-14 20:50 串口通信nodejs\
文件 33 2016-03-21 00:05 串口通信nodejs\.gitignore
目录 0 2018-05-14 20:50 串口通信nodejs\.idea\
目录 0 2018-05-14 12:11 串口通信nodejs\.idea\inspectionProfiles\
文件 296 2018-05-14 12:10 串口通信nodejs\.idea\modules.xm
文件 458 2018-05-14 12:10 串口通信nodejs\.idea\web-serialDebug-master.iml
文件 16339 2018-05-14 12:31 串口通信nodejs\.idea\workspace.xm
文件 58997 2016-03-21 00:05 串口通信nodejs\2016-03-20 23_42_33屏幕截图.png
文件 858 2016-03-21 00:05 串口通信nodejs\index.html
文件 733 2016-03-21 00:05 串口通信nodejs\README.md
目录 0 2018-05-14 20:50 串口通信nodejs\serial-webDebug\
目录 0 2018-05-14 20:50 串口通信nodejs\serial-webDebug\.idea\
目录 0 2018-05-09 12:58 串口通信nodejs\serial-webDebug\.idea\inspectionProfiles\
文件 282 2018-05-09 12:57 串口通信nodejs\serial-webDebug\.idea\modules.xm
文件 458 2018-05-09 12:57 串口通信nodejs\serial-webDebug\.idea\serial-webDebug.iml
文件 25854 2018-05-14 20:49 串口通信nodejs\serial-webDebug\.idea\workspace.xm
文件 1515 2018-05-14 12:11 串口通信nodejs\serial-webDebug\app.js
目录 0 2018-05-14 20:50 串口通信nodejs\serial-webDebug\bin\
文件 1601 2018-05-14 12:34 串口通信nodejs\serial-webDebug\bin\www
目录 0 2018-05-14 20:50 串口通信nodejs\serial-webDebug\node_modules\
目录 0 2018-05-14 20:50 串口通信nodejs\serial-webDebug\node_modules\.bin\
文件 293 2018-05-09 14:11 串口通信nodejs\serial-webDebug\node_modules\.bin\mime
文件 170 2018-05-09 14:11 串口通信nodejs\serial-webDebug\node_modules\.bin\mime.cmd
文件 335 2018-05-09 14:16 串口通信nodejs\serial-webDebug\node_modules\.bin\serialportlist
文件 212 2018-05-09 14:16 串口通信nodejs\serial-webDebug\node_modules\.bin\serialportlist.cmd
文件 343 2018-05-09 14:16 串口通信nodejs\serial-webDebug\node_modules\.bin\serialportterm
文件 220 2018-05-09 14:16 串口通信nodejs\serial-webDebug\node_modules\.bin\serialportterm.cmd
目录 0 2018-05-14 20:50 串口通信nodejs\serial-webDebug\node_modules\accepts\
文件 3294 2015-09-07 10:58 串口通信nodejs\serial-webDebug\node_modules\accepts\HISTORY.md
文件 5194 2015-06-08 12:30 串口通信nodejs\serial-webDebug\node_modules\accepts\index.js
文件 1167 2015-06-08 12:03 串口通信nodejs\serial-webDebug\node_modules\accepts\LICENSE
............此处省略2654个文件信息
相关资源
- 解决win10串口无法使用
- 串口-Lin通信主、从工程代码.zip
- 使用MSP432-ESP8266实现小车红外测距和数
- 整理的三个nodejs项目
- STM32L051C8T6_USART1.zip
- STM32 IIC驱动DRV10983
- stm32 mpu6050 串口输出
- GPS模拟器数据通过串口发送
- QT4.6实践编写串口调试助手原创全源码
- 串口调试工具,共4个XCOM V2.0 原子+C
- Node.js参考手册-新版.CHM
- 串口通讯VC例程源码
- ESP8266_8285_32系列透传固件 JFirmwareESP
- FPGA VGA lcd1602 显示时钟 闹钟 按键控制
- HT32F52352串口通信
- NB-IoT串口调试工具
- 虚拟串口软件VSPD 6.0WinXP/Win7)
- QT下写的界面程序,可以实现串口和
- 串口工具.zip
- STM 32 虚拟串口 驱动 WIN7 64位
- 简洁好用的串口调试助手
- 多功能串口助手 DLT645/DLT698.45软件 模
- Proteus虚拟串口l里面包括虚拟串口软件
- STM32F030 串口升级全套完整源码
- MPU6050_DMP模式STM32(库函数版本)--串
- PL2303 串口 Windows 10 驱动 + 工具
- stm32-PN532串口驱动
- 串口调试助手VC源码
- Virtual Serial Port Driver虚拟串口
- 格西烽火 2.0 完美破解版
评论
共有 条评论