登录
首页 » 通信 » a GPS NMEA format debugging data transmitter used for documents from the Log rea...

a GPS NMEA format debugging data transmitter used for documents from the Log rea...

于 2022-04-18 发布 文件大小:32.25 kB
0 157
下载积分: 2 下载次数: 1

代码说明:

一个NMEA格式的GPS数据调试使用的发送端,负责从Log文件中读取CFGPS2通用格式GPS数据向串口发送-a GPS NMEA format debugging data transmitter used for documents from the Log read CFGPS2 GPS common format for sending data to the serial port

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • linux epoll模型
    该代码是关于在linux平台下的网络编程,epoll模型,socket接受线程:C语言为了高并发所以选择了epoll。当程序启动的时候(g_net_update.c文件中main函数,会启动一个thread见函数create_accept_task)这个thread就处理一件事情,只管接收客户端的连接,当有连接进来的时候 通过epoll_ctl函数,把socket fd 加入到epoll里面去,epoll设置监听事件EPOLLIN | EPOLLET; 主要是监听的是加入到epoll中的socket是否可读(因为我的需求是客户端连上了server就会马上向server发送一份数据的)。其它的部分在主线程中处理。主线程:是一个无线循环,epoll_wait 函数相当于把客户端的连接从epoll中拿出来(因为我们监听的是EPOLLIN | EPOLLET)说明这个时候客户端有数据发送过来)。再通过recv_buffer_from_fd 函数把客户端发送过来的数据读出来。然后其他的一切就抛给线程池去处理。线程池:(代码中我会在池里面创建15个线程) 双向链表。加入线程就是在链表后面加一个链表项,链表的前面会一个一个被拿出来处理。主要是malloc 函数free函数,sem_wait函数sem_post的处理(sem_wait 会阻塞当值大于0是会减一,sem_post是值加一)。typedef void* (FUNC)(void arg, int index);是我们自定义的线程的逻辑处理部分,arg是参数,index是第几个线程处理(我们隐形的给每个线程都标了号),例如代码中的respons_stb_info,更加具体可以看看代码里面是怎么实现的。聪明的你也可以改掉这块的内容改成动态线程池,当某个时刻的处理比较多的时候能够动态的增加线程,而不像我代码里面的是固定的。数据库连接池:按照我的需求在处理客户端请求数据的时候是要访问数据库的。就是一下子创建出一堆的数据连接。要访问数据库的时候先去数据库连接池中找出空闲的连接,具体可以看下代码。使用的时候可以参考下database_process.c文件(代码中数据库连接池和线程池中的个数是一样的)。
    2022-03-20 03:15:54下载
    积分:1
  • 自己写的记录AD值的一个小软件可以运行成功,用VB写的,对这方面有需要的人可以做个参考...
    自己写的记录AD值的一个小软件可以运行成功,用VB写的,对这方面有需要的人可以做个参考-himself wrote the record value of the AD a small software can run successfully, written in VB, these are people in need can be a reference
    2023-07-17 22:45:02下载
    积分:1
  • 基于PPP链路的IP/UDP/TCP报头压缩协议。
    基于PPP链路的IP/UDP/TCP报头压缩协议。-PPP link-based IP/UDP/TCP header compression protocol.
    2022-07-08 17:33:59下载
    积分:1
  • DELPHI+MSComm串口通讯实例
    使用DELPHI进行串口通信软件的编辑,使用的控件是MSComm,可以实现串口号、波特率、校验位、停止位、通信方式等的选择。
    2022-03-24 16:22:51下载
    积分:1
  • 基于Visual C++的Winsock API研究
    基于Visual C++的Winsock API研究-A Study On WinSock API Based On Visual C++
    2023-06-20 08:55:04下载
    积分:1
  • J2ME 无线开发代码下载
    J2ME 无线开发代码下载 -J2ME wireless download code
    2022-06-20 22:09:01下载
    积分:1
  • VMware使用dynamips搭建广域网络测试环境
    使用 VMware 和 Dynamips 搭建广域网测试环境-VMware and use Dynamips to build wide area network test environment
    2022-11-14 08:50:04下载
    积分:1
  • 存C写的zip压缩、解压缩源代码。主要对文件操作,希望有经验的朋友把它改造成能对内存操作的类...
    存C写的zip压缩、解压缩源代码。主要对文件操作,希望有经验的朋友把它改造成能对内存操作的类-Depositors C written by zip compression, decompress the source code. The main operation of the document, I hope a friend has experienced it can be transformed into the type of memory operation
    2023-07-26 10:40:03下载
    积分:1
  • Web防火墙
    ModSecurity is a web application firewall (WAF). With over 70% of attacks now carried out over the web application level, organisations need all the help they can get in making their systems secure. WAFs are deployed to establish an increased external security layer to detect and/or prevent attacks before they reach web applications. ModSecurity provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring and real-time analysis with little or no changes to existing infrastructure. 
    2022-05-19 08:01:14下载
    积分:1
  • data communications lectures, training guide
    数据通信讲义,培训教程-data communications lectures, training guide
    2022-07-11 05:04:48下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载