登录
首页 » Others » (原创)modbus 协议c实现 C 语言 实现功能1 2 3 4 5 6 15 16.rar

(原创)modbus 协议c实现 C 语言 实现功能1 2 3 4 5 6 15 16.rar

于 2021-11-25 发布
0 323
下载积分: 1 下载次数: 2

代码说明:

(原创)MODBUS协议的 C语言实现 学习MODBUS 可以参考下 实现功能 1 2 3 4 5 6 15 16

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

发表评论

0 个回复

  • ECI惯性坐标系转ECEF地心地固坐标系
    Convert ECI (CIS, Epoch J2000.0) Coordinates to WGS 84 (CTS, ECEF)
    2021-05-06下载
    积分:1
  • PSCAD内外环控制逆变器模型 三相逆变器模型
    PSCAD内外环控制逆变器模型 三相逆变器模型。PSCAD搭建的三相逆变器模型,看起来和CSDN另外一个三相逆变器模型差不多。差别在于那个不能把有功/无功控制到指定值,而这个文件修正了里面的错误。注意六个管子只有两个打开了interpolation(但基本不影响输出结果)。下载后可以自己决定是否改为一致。PSCAD 逆变器 三相 双环
    2020-12-05下载
    积分:1
  • 大气湍流模型_.pdf
    激光(Laser:Light Amplification by Stimulated Emission of Radiation)是光受激辐射放大的简称。原子受光子照射时不仅发生受激辐射同时还发生受激吸收。这两种过程是矛盾的。通常情况下吸收过程是主要的,受激辐射过程是次要的. 如果能够通过某种方法破坏粒子数的热平衡分布,受激辐射能量将大于吸收能量,受激过程将胜于吸收过程。这里E[v2]是单位为(m/s)2的速度平方平均值,离开地面高度h的单位为km,h的范围5~20km。近期实验证实了这个模型的近似合理性,并指出在儿百米以卜的近地面范围内,在白天Cn(h)≈C2()h43,在仅晚C2(h)≈C2()h23,另外Hal!发现8在草地覆盖面上空,Cn(h)≈C2()h3, Davidson发现海面上空C(h)≈C2()h23,1m≤h≤10m。一般m言,在近地面处C2的典型值从102m23(对于强湍流)到108m23(对于弱湍流)的范围内折射率功率谱密度折射率的随机起伏n1(r)主要是由温度空间分布中的随机微观结构而引起的,这种微观结构的起源则在于地球表面不同区域被太阳不同加热而引起的极大尺度的温度非均匀性,这种大尺度的温度非均匀性进而又引起大尺度的折射率非均匀性,它们最后被湍流风和对流冲碎,使非均匀性的尺度变得越来越小。湍流的大小范围通常从几毫米到几米,分别用内长度l和外长度L表示通常把大气折射率的非均匀性称为湍流“旋涡”,可以把他们想像成一些空气包,每个空气包鄞有一个特征的折射率。均匀湍流的功率谱密度Φ,(K)可以看成是尺度为L=2x/k,L=2x/和L,=2x/k的旋涡的相对丰度的一种量度。在各向同性湍流的情况下,Φ(K)仪是波数k的函数,k通过L=2x/k与旋涡大小L相联系。在 Kolmogorov关于湍流理论的终典工作的基础,普遍认为功率谱密度Φn(K)包括三个不同的区。对于很小的k=2n/L0(很大规模的尺寸)的区域叫输入区,在这个区域内谱的形状取决于特定的湍流是如何发生的,而且它通常是各向异性的。在这个区域被理论不能预言Φ(K)的数学形式。但当k大于某一临界波数λ时,Φ(K)的形状由制约着大湍流旋涡破碎为小旋涡的物理定律来决定。当k大于k0时,k0≈2x/,就进入了谱的惯性子区间。这里的Φn的形式可以由已确立的制约湍流的物理定律描述。由Kσ oImogoro湍流理论,Φ,为D(K)=0033C2k-1/32.5)当k达到了另一个临界值k的形式再次改变,这个区域叫耗散区,在这个区域里能量的耗散超过了动能。因此能量很小。所以,当k>k时,Φ很快下降。这里kn≈2π/l。 Tatarski川如下模型来概括k>k时Φn的快速下降:29C1994-2010ChinaAcademicJournalElcctronicPublishinghOusc.Allrightsrescrved.http://www.cnki.ncton(k)=0.033C, exp(k/km)(2.6)若选取kn=5.92/l,并且k>kn,上式是一个合理的近似。由式(25)和(2.6)所表示的谱在原点均偶不可积的极点,为了克服这种模型的缺点,常采用一种称为Ⅴ on karman谱的形式。这时谱近似地表示为0.033CΦ(k)≈(k2+k2)16 exp(- /km)Andrews提出了一个的近似谱8Φ(0.033 CR exp(-k2/k2)7/61+aQ2((k2+k2)16(28)k1k1其屮,a1=1.802,a2=0.254,k,-3.3/。注意,在a1=a2=0和作k=kn代换后Andrews模式简化为 Von karman谱;当k=l=0时,上式退化为(25)式。激光在大气中的传输方程假定大气的磁导率为常数,介电常量是随空间变化的。对于单色电磁波在地球大气中的传播,这时 Maxwell方程取以下形式l9V·H=0V×E=jboH(2.9)EOoEV·(EE)=0式(2.9)中,E是电场;H是磁场;a是角频率;而V矢量的分量为(O/ax,0/Cy,O/az)。把V×运算应用于式(29)的第二个方程,并将第二方程代入第三个方程,并考虑第四个方程,我们得到V·E+AHEE+V(E·Vlns)=0(2.10)这里代表以e为底的对数。波传播的局域速度即某点上的速度是(e)12,它也等于ch,式中,c是自由空间中的光速,而n是同一点上的局部折射率,因此u8=n/(2.11)由于和c是常数,有VIne=2vIn n(2.12)将式(2.11)和(2.12)代入式(210),得到C1994-2010ChinaAcademicJournalElcctronicPublishinghOusc.Allrightsrescrved.http://www.cnki.nct
    2020-12-04下载
    积分:1
  • arduino鼠标点击绝对坐标
    arduino自带的鼠标库有坐标限制,坐标单位无法对应屏幕像素,把此库放在arduino库中即可使用,使用方法基本相同,初始化时输入屏幕的分辨率。如果出现找不到HID.h等提示,请下载最新版的arduino。
    2020-11-04下载
    积分:1
  • MIPI Alliance Specification for D-PHY
    MIPI Alliance Specification for D-PHY Version 1.00.00 – 14 May 2009配合“MIPI Alliance Specification for Camera Serial Interface 2 (CSI-2)“ 一起看。http://download.csdn.net/detail/micro_st/4242724Version1.00.0014-May-2009MIPI Alliance Specification for D-PHY2 The material contained herein is not a license, either expressly or impliedly, to any IPR owned or3 controlled by any of the authors or developers of this material or MIPl. The material contained herein is4 provided on an"as iS basis and to the maximum extent permitted by applicable law, this material is5 provided AS IS AND WITH ALL FAULTS, and the authors and developers of this material and MIP6 hereby disclaim all other warranties and conditions, either express, implied or statutory, including, but not7 limited to, any (ifany)inplied warranties, duties or conditions of merchantability, of fitness for a8 particular purpose, of accuracy or completeness of responses, of results, of workmanlike effort, of lack of9 viruses, and of lack of negligence10 All materials contained herein are protected by copyright laws, and may not be reproduced, republisheddistributed, transmitted, displayed, broadcast or otherwise exploited in any manner without the express12 prior written permission of MIPI Alliance. MIPl, MIPI Alliance and the dotted rainbow arch and all related3 trademarks, tradenames, and other intellectual property are the exclusive property of MIPI Alliance and14 cannot be used without its express prior written permission15 ALSO, THERE IS NO WARRANTY OF CONDITION OF TITLE, QUIET ENJOYMENT, QUIET16 POSSESSION. CORRESPONDENCE TO DESCRIPTION OR NON-INFRINGEMENT WITH17 REGARD TO THIS MATERIAL OR THE CONTENTS OF THIS DOCUMENT.IN NO EVENT WILLI8 ANY AUTHOR OR DEVELOPER OF THIS MATERIAL OR THE CONTENTS OF THIS DOCUMENT9 OR MIPI BE LIABLE TO ANY OTHER PARTY FOR THE COST OF PROCURING SUBSTITUTE20 GOODS OR SERVICES. LOST PROFITS. LOSS OF USE. LOSS OF DATA OR ANY INCIDENTAL.21 CONSEQUENTIAL, DIRECT, INDIRECT, OR SPECIAL DAMAGES WHETHER UNDER22 CONTRACT TORT WARRANTY OR OTHERWISE ARISING IN ANY WAY OUT OF THIS OR23 ANY OTHER AGREEMENT SPECIFICATION OR DOCUMENT RELATING TO THIS MATERIAL24 WHETHER OR NOT SUCH PARTY HAD ADVANCE NOTICE OF THE POSSIBILITY OF SUCH25 DAMAGES26 Without limiting the generality of this Disclaimer stated above, the user of the contents of this Document is27 further notified that MIPI: (a)does not evaluate, test or verify the accuracy, soundness or credibility of the28 contents of this Document;(b)does not monitor or enforce compliance with the contents of this Document29 and (c)does not certify, test, or in any manner investigate products or services or any claims of compliance30 with the contents of this Document. The use or implementation of the contents of this Document may31 involve or require the use of intellectual property rights ("IPR")including(but not limited to) patents32 patent applications, or copyrights owned by one or more parties, whether or not Members of MIPIMIPI33 does not make any search or investigation for IPR, nor does miPi require or request the disclosure of any34 IPR or claims of IPR as respects the contents of this document or otherwise35 Questions pertaining to this document, or the terms or conditions of its provision, should be addressed36 MIPI Alliance. Inc37 c/o IEEE-ISTO38 445 Hoes lane39 Piscataway, NJ0885440 Alin: Board SecretaryCopyright C 2007-2009 MIPl Alliance, Inc. All rights reservedMIPI Alliance Member ConfidentialVersion1.00.0014-May-2009MIPI Alliance Specification for D-PHY42 Contents43 Draft Version 1.00.00-14 May 2009441 Overview1451.2 Purpose.…..,.,.,,.,..472 Terminology…2.1 Definitions162.2 Abbreviations…172.3 Acronyms51 3 D-PHY Introduction523.1 Summary of Phy functionality533.2 Mandatory Functionality················2054 4 Architecture21554.1 Lane modules…564.2 Master and slave2254.3 High Frequency Clock Generation22584.4 Clock lane data lanes and the phy-Protocol interface.224.5 Selectable Lane Options·;····················234.6 Lane Module Types4.6.1 Unidirectional Data Lane…264.6.2 Bi-directional data lanes26634.6.3 Clock lane.274.7 Configurations….7654.7.1 Unidirectional Configurations............664.7.2Bi-Dal Half-Duplex Configurations674.7.3 Mixed Data Lane configurations32Copyright C 2007-2009 MIPl Alliance, Inc. All rights reservedMIPI Alliance Member Confidential111Ⅴ ersion1.00.0014-May-2009MIPI Alliance Specification for D-PHY695.1Transmission Data Structure,………………………∴335.1.1Data unitsa勹5.1.2 Bit order Serialization and De-Serialization33725.1.3 Encoding and decoding735.1.4 Data Buffering,33745.2 Lane States and Line levels755.3 Operating Modes: Control, High-Speed, and Escape5. 4 High-Speed Data Transmission··········;·5. 41 Burst payload data785.4.2 Start-of-Transmission795.4.3End-of-transmission805.4.4 HS Data Transmission burst.365.5 Bi-directional data Lane turnaround5.6 Escape Mode41835.6.1Remote triggers42845.6.2 Low-Power data Transmission43855.6.3 Ultra-Low Power State865.6.4 Escape Mode State Machine43875.7 High-Speed Clock Transmission885. 8 Clock lane Ultra-Low Power State50959 Global Operation Timing Parameters.……5.10 System Power States56915.11 Initialization56925.12 Calibration5.13 Global Operation Flow Diagram57945.14 Data Rate Dependent Parameters(informative)955. 14.1 Parameters Containing Only UI values965. 14.2 Parameters Containing Time and Ul values59Copyright C 2007-2009 MIPl Alliance, Inc. All rights reservedMIPI Alliance Member ConfidentialVersion1.00.0014-May-2009MIPI Alliance Specification for D-PHY5.14.3 Parameters Containing Only Time Values…………5.14.4 Parameters Containing Only Time Values That Are Not Data Rate Dependent6 Fault detection611006.1 Contention detection1016.2 Sequence Error Detection.……611026.2.1 SoT Error621036.2.2 SOT Sync Error1046.2.3 EoT Sync Error1056.2. 4 Escape Mode Entry Command error.1066.2.5 LP Transmission Sync error621076.2.6 False Control error1086.3 Protocol Watchdog Timers(informative)62l096.3.1 HS RX Timeout6.3.2HS TX Timeout………………·················+···:··:·················∴62l116.3.3Escape mode timeout62l126.3. 4 Escape Mode Silence Timeout6.3.5 Turnaround errors114 7 Interconnect and Lane Configuration.641157.1 Lane configuration1167.2 Boundary Conditions.....…647.3 Definitions………64l187.4S- parameter Specifications………….651197.5 Characterization Conditions207.6 nterconnect Specifications………1217.6.1 Differential characteristics1227. 6.2 Common-mode characteristics671237.6.3 Intra-Lane Cross-Coupling1247. 6. 4 Mode-Conversion limitsCopyright C 2007-2009 MIPl Alliance, Inc. All rights reservedMIPI Alliance Member ConfidentialVersion1.00.0014-May-2009MIPI Alliance Specification for D-PHY1257.6.5 Inter-Lane Cross-Coupling671267. 6.6 Inter-Lane static skew1277.7 Driver and receiver Characteristics1287.7.1 Differential Characteristics1297. 7.2 Common-Mode characteristics1307.7.3 Mode-Conversion Limits1317.7.4 Inter-Lane Matching132 8 Electrical Characterislics701338.1 Driver characteristics1348.1.1 High-Speed Transmitter1358.1.2 Low-Power Transmitter1368.2 Receiver Characteristic·…············…·······…8301378.2.1 High-Speed Receiver801388.2.2Low- Power receiver.................….….821398.3 Line contention detection1408.4 Input Characteristics8441 9 High-Speed Data-Clock Timing1429.1 High-Speed Clock Timing861439.2 Forward High-Speed Data Transmission Timing871449.2.1 Data-Clock Timing Specifications1459.3 Reverse High-Speed Data Transmission Timing89146 10 Regulatory Requirements91147 Annex A Logical PHY-Protocol Inter face Description(informative)92148A 1 Signal Description149A 2 High-Speed Transmit from the Master Side150A3 High-Speed receive at the slave Sidel00151A 4 High-Speed Transmit from the Slave side152A.5 High-Speed Receive at the Master SideIOICopyright C 2007-2009 MIPl Alliance, Inc. All rights reservedMIPI Alliance Member ConfidentialVersion1.00.0014-May-2009MIPI Alliance Specification for D-PHY153A6 Low-Power Data Transmission102154A7 Low-Power Data Reception.103155A 8 Turn-around156 Annex B Interconnect Design Guidelines (informative)105157B. 1 Practical distances105158B 2 RF Frequency Bands: Interference.105B3 Transmission Line design160B4 Reference Layer.106161B 5 Printed-Circuit board106162B6 Flex-foils106163B 7 Series resistance106164B 8 Connectors106165 Annex C 8b9b Line Coding for D-PHY(normative)107166C 1 Line Coding Features...·············108167C.1.1Enabled Features for the Protocol108l68C 1. 2 Enabled Features for the Phy108169C2 Coding scheme170C 2.1 8b9b Coding Properties.....108171C 2.2 Data Codes: Basic Code Set……….109C.2.3 Comma Codes: Unique Exception Codes110173C 2.4 Control Codes: Regular Exception Codes…10174C.2.5 Complete Coding Scheme………175C 3 Operation with the D-PhY…11117yload: Data and Control177C.3.2 Details for Hs transmission………112178C.3.3 Details for LP Transmissionl12179C 4 Error Signal180C5 Extended PplCopyright C 2007-2009 MIPl Alliance, Inc. All rights reservedMIPI Alliance Member ConfidentialⅤ ersion1.00.0014-May-2009MIPI Alliance Specification for D-PHYl81C.6 Complete Code Set.….….l15182Copyright C 2007-2009 MIPl Alliance, Inc. All rights reservedMIPI Alliance Member Confidentialv111Version1.00.0014-May-2009MIPI Alliance Specification for D-PHYl83Figures184 Figure 1 Universal Lane Module functions21185 Figure2 Two Data Lane PHY Configuration.…………23186 Figure 3 Option Selection Flow Graph4187 Figure 4 Universal Lane Module Architecture25188 Figure 5 Lane Symbol Macros and Symbols Legend189 Figure 6 All Possible Data Lane Types and a basic Unidirectional Clock lane190 Figure 7 Unidirectional Single Data Lane Configuration30191 Figure 8 Unidirectional Multiple Data Lane Configuration without LPDT∴.30192 Figure 9 Two Directions Using Two Independent Unidirectional PHYs without LPDT.........31193 Figure 10 Bidirectional Single Data Lane Configuration31194 Figure 1l Bi-directional Multiple Data Lane Configuration......32195 Figure 12 Mixed Type multiple data Lane Configuration32196 Figure 13 Line level34197 Figure 14 High-Speed Data Transmission in Bursts36198 Figure 15 TX and rX State Machines for High-Speed Data Transmission37Figure16 Turnaround Procedure.……39200 Figure 17 Turnaround State Machine40201 Figure 18 Trigger-Reset Command in Escape Mode202 Figure 19 Two Data Byte Low-Power Data Transmission Example203 Figure 20 Escape Mode State Machine204 Figure2 I Switching the Clock Lane between Clock Transmission and low- Power mode………….47205 Figure 22 High-Speed Clock Transmission State Machine49206 Figure 23 Clock Lane Ultra-Low Power State State Machine········+·+···+·4···207 Figure 24 Data Lane Module State Diagram57208 Figure 25 Clock Lane Module state diagram58209 Figure 26 Point-to-point InterconnectCopyright C 2007-2009 MIPl Alliance, Inc. All rights reservedMIPI Alliance Member Confidential
    2020-12-08下载
    积分:1
  • 无刷直流电机全桥驱动电路(原理图+PCB)
    无刷直流电机全桥驱动电路,原理图+PCB,PCB带3D视图,方便直观查看PCB。此驱动板可同时独立的驱动两路无刷直流电机。
    2020-12-06下载
    积分:1
  • 最优阵列处理技术源代码
    最优阵列处理全书以及课后题代码包含各种阵列优化设计方法
    2020-12-12下载
    积分:1
  • ThinkPad 刷号工具汇总
    1、ThinkPad 1.89版,适用于大部分机型2、ThinkPad UEFI版,适用于大部分支持UEFI BIOS机型,以及部分平板机型X1 Helix 1代(3697等)、X1 Helix 2代(20CG等),无需配合1.89版刷号,直接可以引导刷号,确保U盘为FAT32,U:/EFI/BOOT/bootx64.efi即可3、ThinkPad Tablet,安卓机型4、老ThinkPad8 Tablet2,部分FRU的ThinkPad8和Tablet2机型使用此版本5、新ThinkPad 8 ThinkPad10,适用于ThinkPad8、ThinkPad10 1代(20C3
    2020-11-06下载
    积分:1
  • STM32 CAN总线双机通讯程序示例(中断接收)
    1、该程序为STM32 CAN 双机通讯实例,接收数据时通过中断程序进行接收的。2、Node的主芯片为STM32F103ZET,node2的芯片为STM32F103C8. 双机均工作在正常模式下。为了能够完整的完成双机通讯,还需要配备CAN接收器。本例程中采用的是TJA1050 CAN控制芯片.可从网上购买,约6元左右。3、在运行过程中,只能某一STM32发送(程序中没有设置数据重发,因此在两个节点的主程序中都有发送程序的话,会进行总线总裁,失败方无法再次发送发送数据)。大家可以再我的基础上进行修改。4、该程序没有设置错误处理程序,大家可以进行完善
    2020-12-02下载
    积分:1
  • 一个能够给图像添加指定噪声然后再进行图像恢复的软件.zip
    【实例简介】一个图像处理系统,能够给图像添加噪声,高斯噪声或椒盐噪声,然后提供了一些方法对图像进行恢复。
    2021-12-08 00:33:31下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载