MR13通讯协议使用说明.
金笛短信实用手册说明书

金笛软件 | | 2019年6月6日金笛短信实用手册1.0版目录一、短信历史 (4)1、短信的前世今生 (4)2、通讯与通信 (5)3、短信的优势 (5)(1)简单可靠 (5)(2)及时性 (6)(3)广泛支持 (6)(4)干净 (6)(5)优雅 (6)二、短信基础 (6)1.短信的种类 (6)2.短信AT指令 (7)3.常用 AT 指令 (8)4.短信实用工具软件 (9)检测工具 (9)发送工具 (11)发送途径 (12)5.短信编码 (13)5.1.TEXT模式 (13)5.2.PDU模式 (13)5.3.接收短信的PDU格式 SMS-DELIVER-PDU (Mobile Terminated) (15)5.4.发送短信PDU格式SMS-SUBMIT-PDU (Mobile Originated) (16)5.5.SCA 短消息服务中心地址格式 (16)5.6.PDU Type(第一个八位位组) (18)5.7.MR 信息参考 (Message Reference) (21)5.8.DA/OA 接收方地址与发送方地址 (21)5.9.PID 协议标识 (Protocol-Identifier) (22)5.10.DCS 数据编码方案 (DataCoding-Scheme) (22)5.11.VP 信息有效期(Validity Period) (23)5.12.SCTS 服务中心时间戳(Service Center TimeStamp) (24)5.13.UDL 用户数据长度 (User-Data-Length (Amount of Characters)) (24)5.14.英文编码 (24)5.15.超长短信 (24)6.短信发送速度 (26)7.4G短信与2G短信的区别 (26)8.短信服务中间件与短信控件 (27)9.linux下发送短信 (27)10.高可用短信方案 (28)三、短信硬件 (28)B口短信设备 (28)2.串口短信设备 (30)3.网口短信设备 (30)四、短信软件 (31)1.数据库+短信 (32)(1)JDBC与短信 (32)(2)ODBC与短信 (33)2.HTTP+短信 (35)3.命令行+短信 (35)4.邮件+短信 (35)五、短信架构 (35)1.单服务器 (35)2.双服务器 (36)3.局域网AP Server +DB Server分离 (37)4.云平台+短信一体机 (37)5.多端口并发方案 (38)六、短信开发 (38)1.JAVA+短信开发 (39)2.VC+短信开发 (39)3.PHP+短信开发 (39)4.Python+短信开发 (39)七、短信选型 (40)1.硬件选型 (40)2.软件选型 (41)八、短信常见问题 (41)1.我还能继续使用2G短信猫吗? (41)2.什么是短信中间件? (41)3.利用短信中间件发送短信有什么好处? (41)4.短信中间件web版和VC版我怎么选择? (42)5.2G短信猫升级为4G短信猫该怎么做? (42)6.短信设备可以使用阿里云上的数据库吗? (42)7.VMWare虚拟主机怎么配置短信? (42)8.网管软件怎么使用短信告警? (42)9.短信的常见错误有哪些? (42)九、短信的未来 (43)1.Lora (43)2.nb-iot (43)十、商务问题 (43)1.试用版限制 (43)2.购买途径 (43)一、短信历史1、短信的前世今生“大漠孤烟直,长河落日圆。
深圳为胜智控技术有限公司PLC工控板WS3U-F精速系列产品使用说明书

PLC工控板WS3U-F精速系列产品使用说明书--V1.8适用于以下型号:WS3U-14MR/MT-FWS3U-24MR/MT-FWS3U-32MR/MT-FWS3U-48MR/MT-FWS3U-56MR-F产品目录第一章产品概述 (1)1.1产品概述 (1)1.2基本参数 (1)1.3使用环境及安装方式 (1)第二章产品展示 (2)2.1产品主要硬件说明 (2)2.2产品正面效果图 (2)第三章电气设计参考 (3)3.1电源及功耗 (3)3.2232通讯口说明 (3)3.3485通讯口说明 (4)3.4输入内部等效电路与接线说明 (5)3.5输出内部等效电路与接线说明.....................6-73.6模拟量输入说明 (7)3.7模拟量输出说明 (7)3.8产品接线图 (8)3.9高速脉冲输出与脉宽调制 (8)3.10中断说明 (9)3.1产品接线图....................................9-11第四章编程参考 (12)4.1应用环境 (12)4.2元件号的分配和功能概要 (12)4.3基本指令 (13)4.4应用指令....................................13-164.5此版本不支持指令列表, (16)第五章常见问题及解决方案 (17)第六章保修条款 (17)第一章产品概述1.1产品概述·WS3U精速系列,采用ARMCortex-M332位MISC内核芯片,运算速度快,存储空间大。
·下载速度为38.4Kbps(特殊情况也可申请改9.6k);直接使用三菱GX Developer或者GX Works2编程、下载、调试、监视(不支持监控写入).·采用DC24V供电;输出继电器均不打开条件下,静态电流30MA;每打开一路增加10MA电流,如3U-48mr输出继电器全打开后电流为270MA(6.48W)。
FX2NC系列plc用户手册

Coo l mayFX2NC系列PLC用户手册版权所有:深圳市顾美科技有限公司系列PLC用户手册..安全注意事项 (1)1.FX2NC系列PLC概述 (2)1-1.功能简介 (2)1-2.型号命名 (2)1-3.型号规格 (3)1-4.性能参数一览表 (3)1-5.产品外观 (5)1-6.I/O点分布以及开关量模拟量接线图 (6)2.资源集 (7)3.PLC指令集简介 (8)3-1.基本逻辑指令一览表 (8)3-2.步进顺控指令说明 (8)3-3.功能指令一览表(和三菱PLC对照表) (9)3-4.内置高速计数器输入分配表 (10)3-5.软元件编号、错误代码一览表 (10)4.模拟扩展模块的应用 (13)4-1.模拟扩展模块的应用1 (13)4-2.模拟扩展模块的应用2 (13)5.组网 (14)附录1:coolmay FX2NC系列PLC的Modbus通信使用手册......................................................24-28附录2:coolmay FX2NC系列PLC和三菱PLC的比较 (29)安全注意事项——关于产品操作的基本说明在使用本产品之前,请仔细阅读相关手册,同时在非常注意安全的前提下,正确进行操作。
下面的内容只针对FX2NC系列产品。
注意●请勿将电源线与通讯电缆捆缚在一起或靠得太近,应保持10cm 以上距离。
●请不要随意拆卸一体机或改装接线。
否则会引起故障、误动作、损失、火灾。
●当产品发出异味或异常声音时,请立即关闭电源开关●安装本产品时,请务必拧紧螺丝,避免脱落。
●请正确地运输、安装、存储、装配及维护本产品,否则可能造成产品的损坏。
危险!●请在确认了本产品的电源电压范围和正确接线之后再通电,以避免损坏。
●通电时请不要接触端子,以免引起触电。
●请不要打开外壳。
●在安装及拆卸产品时,请务必切断所有电源,否则将引起设备误动作和故障。
RS9113 WiSeConnect TCP IP Bypass模式应用指南说明书

Implementing TCP/IP Bypass mode with RS9113 WiSeConnect TMA p p l i c a t i o n N o t eV e r s i o n1.1February 2017Table of Contents1Introduction (4)2What is TCP/IP bypass mode? (4)3Implementing the TCP/IP Bypass mode (5)3.1Create and configure a source project for toolchain (5)3.2Port SAPI HAL to your choice of MCU (5)3.3Port the OS abstraction layer (6)3.4Enable the TCP/IP Bypass mode (6)3.5Modify the host TCP/IP stack (6)3.5.1Integration with LwIP stack (7)3.5.2Network Interface Initialization (7)3.5.3Transmitting a packet (7)3.5.4Receiving a packet (8)3.6Execute the modified SAPI example (9)4References (10)5Revision History (10)Table of FiguresFigure 1 TCP/IP Bypass software architecture (5)List of TablesTable 1: Folder architecture in Silicon Labs document portal. (10)1IntroductionThis document briefly explains the TCP/IP Bypass mode using the RS9113 WiSeConnect module and outlines the steps required to implement it inan application. It uses the FreeRTOS and the lwIP stack as a reference to describe the process. The References section lists all documents that arereferred in this document.2What is TCP/IP bypass mode?The RS9113 WiSeConnect modules offer two modes of operation for Wi-Fi connectivity – 1) Embedded mode and 2) TCP/IP Bypass mode.In the Embedded mode, the module runs the TCP/IP stack and varioushigh-level application protocols, thus freeing the host MCU resources.In the TCP/IP Bypass mode, the host MCU runs the TCP/IP stack andother higher level protocol from its own memory. The TCP/IP Bypassmode allows the host MCU to implement additional protocols and increase the data throughput. The exact throughput increase and additionalfeatures depend on the host MCU’s speed and memory availability.In the TCP/IP Bypass mode, the RS9113 operates as a simple data pipeand requires that the host TCP/IP stack use the appropriate RS9113 APIs to exchange data with other nodes on the network.The TCP/IP Bypass mode may be used with or without RTOS and any off-the-shelf TCP/IP stack such as NetX, lwIP, Linux Network, Windows NDIS, etc.This document uses Silicon Labs SAPI (Simple API) host interface librarywith FreeRTOS and lwIP as a reference.Figure 1 TCP/IP Bypass software architecture3Implementing the TCP/IP Bypass modeA successful implementation of TCP/IP Bypass mode, requires following steps:1.Create and configure a source project for your toolchain2.Port the SAPI HAL to your choice of MCU3.Port the OS abstraction layer to your choice of RTOS4.Enable the TCP/IP Bypass mode5.Modify the host TCP/IP stack to use the RS9113 data interface6.Execute the modified SAPI example and verify its operation3.1Create and configure a source project for toolchainSelect a closely matching SAPI example project from“host\sapis\examples\wlan*” folder and r efer to the Section “Creation ofa project” in “RS9113-WiSeConnect-SAPI-Porting-Guide-vx.y.pdf”(7) formore info. You will also need to add RTOS and the TCP/IP Stack of yourchoice to this project.3.2Port SAPI HAL to your choice of MCUThe SAPI APIs are designed to be portable to any MCU that supports one of the supported host interfaces, GPIO and Timer resources. The standard SAPI distribution includes HAL (Hardware Abstraction Layer) for SiliconLabs WyzBee board based on Spansi on’s Cortex-M4 MCU.You must port the SAPI HAL to your choice of MCU. Refer to the “RS-9113-WiSeConnect-SAPI-Porting-Guide-vx.y.pdf” (7) for more information. 3.3Port the OS abstraction layerYou do not need to perform this step if you are developing a bare-metal ora FreeRTOS-based application. The Silicon Labs SAPI distribution includessupport FreeRTOS and bare-metal applications. For all other RTOSes, youmust port the OS abstraction layer as explained in the “OS InterfaceLayer” section in the “RS9113-WiSeConnect-SAPI-Porting-Guide-vx.y.pdf”(7).3.4Enable the TCP/IP Bypass modeAll SAPI projects use compile-time defines to enable TCP/IP Bypass modeamong other features. See Section 4.4.1 “Configure opermode parameters” in “RS9113-WiSeConnect-SAPI-Guide-vx.y.pdf” (6) for more info.Set RSI_TCP_IP_BYPASS define to ‘1’ to enable the TCP/IP bypass mode.3.5Modify the host TCP/IP stackAll commercial TCP/IP stacks support variety of network controllers usingproprietary network interfaces. The RS9113 SAPI APIs provide low-levelEthernet Layer II packet send and receive interface to support thoseinterfaces.Most TCP/IP stacks will require following three primary changes:work interface initialization2.Transmitting a packet3.Receive a packetThe Network interface initialization must include the full initialization ofthe RS9113 module. The RS9113 module needs several Wi-Fi specificinitialization steps. The SAPI example that you would have selectedearlier should be used to complete the change.As part of the network interface initialization, you will also need toretrieve the RS9113 MAC address using the ‘rsi_wlan_get’ API and set theappropriate network data structure within the host TCP/IP stack. SeeSection ‘4.1.15 rsi_wlan_get’ in ‘RS9113-WiSeConnect-SAPI-Guide-vx.y’(7) for more information.To support the Transmit and Receive interfaces, the RS9113 requires thatthe host TCP/IP stack transmit and receive valid Ethernet II packets usingrsi_wlan_send_data() and a receive data callback function respectively.See ‘rsi_wlan_send_data’ and ‘rsi_wlan_register_callbacks’ in ‘RS9113-WiSeConnect-SAPI-Guide-vx.y’(7) for more information.The RS9113 will apply necessary encryption/decryption to the Ethernet IIpackets as selected in the prior initialization of the module.The following sections describe SAPI integration with the lwIP TCP/IPstack.3.5.1Integration with LwIP stackThe lwIP provides low level interfaces to transmit and receive theEthernet packet over the underlying network interface. Following sectionsdescribe specific functions that must be modified to make use of theTCP/IP Bypass mode.3.5.2Network Interface InitializationUse the example code initialization code to complete the RS9113 moduleinitialization. Next, the lwIP network interface must be initialized with theMAC address of the Silicon Labs Wi-Fi module.The RS9113 mo dule’s MAC address can be queri ed usingRSI_MAC_ADDRESS command. Refer to SAPI API ‘rsi_wlan_get’ fromSection ‘4.1.15 rsi_wlan_get’ in ‘RS9113-WiSeConnect-SAPI-Guide-vx.y’.The MAC address should be provided to the network interface at the timeof initialization.In the initialization function, the MAC address must be copied into‘netif->hwaddr’ and length of the MAC address to ‘netif->hwaddr_len’Code snippet.err_t rsi9113_netif_init (struct netif *netif){. . .netif->hwaddr_len = 6;memcpy(netif->hwaddr, MAC_ADDR, 6);/* Maximum transmit unit */Netif->mtu = 1500;. . .}3.5.3Transmitting a packetThe lwIP“Struct pbuf”defines a data packet in lwIP, As a part ofinitialization, the application has to register a callback ‘netif->linkoutput’with a transmit callback.Function prototype.typedef err_t(* netif_linkoutput_fn) (struct netif *netif,struct pbuf *buffer)RS9113 WiSeConnect HAL API must transmit the ‘pbuf->payload’to‘rsi_send_raw_data’ API.Code Snippet:err_t rsi9113netif_init (struct netif *netif){. . .Netif->linkoutput = wlan_lwip_to_rs9113_handoff;. . .}err_t wlan_lwip_to_rs9113_post (struct netif *netif,struct pbuf *buffer){Int err;char *payload = get_avaible_tx_buffer();memcpy(payload, buffer->payload, buffer->len);err = rsi_wlan_send_data(payload, buffer->len);if (err)return -EFAULT;return ERR_OK;}3.5.4Receiving a packetThe host application needs to register a callback with the SAPI to receive Wi-Fi packets.Use following code to register the callback:‘rsi_wlan_c b->callback_list.wlan_data_receive_handler’The function implementing this callback needs to convert the raw data packet into a “struct pbuf” and pass to ‘netif->input’.The netif->input(pbuf, netif) will post the packet to the lwIP stack and the stack will take care rest of the processing.Example callback implementation:err_t wlan_rs9113_to_lwip_post (struct netif *netif, char *data,unsigned int length){int err;struct pbuf *pkt = NULL;/* allocate and copy data into pbuf */pkt = allocate_pbuf(netif, data, length);if (!pkt)return -ENOMEM;/* entry point to the lwIP stack */err = netif->input(pkt, netif);if (err != ERR_OK) {/* handle error */return err;}return err;}3.6Execute the modified SAPI exampleAs a final step, build, run, and verify the SAPI example that was modified and verify that it functions as documented.You may now add your application-logic to this project. Refer to “RS9113-WiSeConnect-SAPI-Guide-vx.y.pdf” (6) and other relevant SAPIexamples(8) to identify the APIs to implement the required wirelessfunctionality.Implementing TCP/IP Bypass mode with RS9113WiSeConnect TMApplication Note, Version 1.14ReferencesDocumentation, Software Packages, and more are available on Redpin e’s document portal. Contact Silicon Labs Sales office to obtain the NDAand instructions to login.N o Name Location on Silicon LabsDocument Portal1RS9113 EVK User Guide RS9113 Combo Modules/EVK Board2WiSeConnect Getting Started Guide RS9113 Combo Modules/EVK Board3 RS9113 Module FamilyDatasheetRS9113 Combo Modules/Datasheet4WiSeConnect Software Package including examples RS9113 ComboModules/WiSeConnect_Connect-io- n/Software/RS9113.NBZ.WC.GENO SI.x.y.z.zip5WiSeConnectProgrammer’s ReferenceManual <Uncompressed Software Package>/docs6WiSeConnect SAPI Guide <Uncompressed SoftwarePackage>/host/sapis/docs7WiSeConnect SAPI Porting Guide <Uncompressed Software Package>/host/sapi/docs8WiSeConnect SAPI Examples <Uncompressed SoftwarePackage>/host/sapis/examples9 Module IntegrationGuide, RegulatoryCertificates, 3D Models, PCBFootprints, IBIS Models etc.Various sub-folders under “RS9113Combo Module s”Table 1: Folder architecture in Silicon Labs document portal.5Revision HistoryVersion No. Date Change1.1 Feb 2017 Added Ethernet II packet typeinformation.1.0 Feb 2017 Initial.Smart. Connected. Energy-Friendly.Products /productsQuality/qualitySupport and CommunitySilicon Laboratories Inc.400 West Cesar ChavezAustin, TX 78701USADisclaimerSilicon Labs intends to provide customers with the latest, accurate, and in-depth documentation of all peripherals and modules available for system and software implementers using or intending to use the Silicon Labs products. Characterization data, available modules and peripherals, memory sizes and memory addresses refer to each specific device, and "Typical" parameters provided can and do vary in different applications. Application examples described herein are for illustrative purposes only. Silicon Labs reserves the right to make changes without further notice to the product information, specifications, and descriptions herein, and does not give warranties as to the accuracy or completeness of the included information. Without prior notification, Silicon Labs may update product firmware during the manufacturing process for security or reliability reasons. Such changes will not alter the specifications or the performance of the product. Silicon Labs shall have no liability for the consequences of use of the information supplied in this document. This document does not imply or expressly grant any license to design or fabricate any integrated circuits. The products are not designed or authorized to be used within any FDA Class III devices, applications for which FDA premarket approval is required, or Life Support Systems without the specific written consent of Silicon Labs. A "Life Support System" is any product or system intended to support or sustain life and/or health, which, if it fails, can be reasonably expected to result in significant personal injury or death. Silicon Labs products are not designed or authorized for military applications. Silicon Labs products shall under no circumstances be used in weapons of mass destruction including (but not limited to) nuclear, biological or chemical weapons, or missiles capable of delivering such weapons. Silicon Labs disclaims all express and implied warranties and shall not be responsible or liable for any injuries or damages related to use of a Silicon Labs product in such unauthorized applications.Trademark InformationSilicon Laboratories Inc.®, Silicon Laboratories®, Silicon Labs®, SiLabs® and the Silicon Labs logo®, Bluegiga®, Bluegiga Logo®, Clock B uilder®, CMEMS®, DSPLL®, EFM®, EFM32®, EFR, Ember®, Energy Micro, Energy Micro logo and combinations thereof, "the world’s most energy friendly microcontrollers", Ember®, EZLink®, EZRadio®, EZRadioPRO®, Gecko®, Gecko OS, Gecko OS Studio, ISOmodem®, Precision32®, ProSLIC®, Simplicity Studio®, SiPHY®, Telegesis, the Telegesis Logo®, USBXpress® , Zentri, the Zentri logo and Zentri DMS, Z-Wave®, and others are trademarks or registered trademarks of Silicon Labs. ARM, CORTEX, Cortex-M3 and THUMB are trademarks or registered trademarks of ARM Holdings. Keil is a registered trademark of ARM Limited. Wi-Fi is a registered trademark of the Wi-Fi Alliance. All other products or brand names mentioned herein are trademarks of their respective holders.。
MR通讯协议使用说明

2.通讯口的技术数据
1. 信号电平: 2. 通讯方式:
3. 同步系统: 4. 通讯距离:
5. 通讯速度: 6. 传输保护: 7. 数据格式:
EIA标准 RS-232C,RS-485 RS-232C 3线半双工,单台 白RS-485 2线半双工,多台 起始位-停止位同步系统 RS-232C 15 米 RS-485 500 米 (具体视通讯条件而定) 1200,2400,4800,9600,19200 波特率 无保护 数据7位,1位偶校验位,1位停止位 数据7位,1位偶校验位,2位停止位 数据7位,无校验, 1位停止位
MR13通讯协议使用说明
MR13 中文版通讯协议操作说明
(日本岛电公司MR13调节器通讯接口中文学习软件) 作为三回路九段可编程PID调解器,通讯协议为国际通信新协议,与岛电SR253相同,但与 FP21,SR25,SR53标准不兼容。 本资料和开发的学习软件,作为用户学习RS232C,RS485接口通讯指令的参考,不足之处请 给与指正。
⑽⑾
9 —— 0 ,****
⑿⒀⒁⒂⒃ ETX E 3 CR - : 7 8 CR LF
基本格式1
文本格式
基本格式2
2)仪表响应格式
起始字符
分地址
本机地址
指令类型
响应码
a
b
c
d
e
⑴
⑵ ⑶⑷
⑸
⑹
⑺
STX
0
11
R
0
0
@
0
21
W
0
0
数据
g
希曼顿产品手册

日本岛电数字调节器
SRS11A SRS12A SRS13A SRS14A 系列
日本岛电数字调节器
订货选型表 :
SRS11A SRS12A SRS13A SRS14A 系列
基本性能 :
● 多种输入和量程范围,4 种安装尺寸 ● 超薄机身 (62mm - 65mm) ,节省安装空间 ● SV 设定 : 3 点 ● PID 值 : 3 组 ● 2- 调节输出,可用于加热与制冷 ● 可编程 32 步 ( 选件 ) ● (1-4 曲线 , 32-8 步 ) ● 支持 RS-485 接口 ( 选件 ) ● ( 主 - 从功能 , Modbus/Shimaden 协议 ) ● 加热器断线 / 加热器回路报警 : 单相 / 三相 ● 多种选件适合不同用途
PAD37-T、PAC15P 、PAC35P/C、PAC16P-T、PAC36P-T、PAC03I、ZAC10-I/P、SW03A 、 XCT1、SW03-6L
公司名称:希曼顿(北京)科技有限公司
地 址:北京市中关村上地信科技园上奥世纪大厦 B 座 17 层
联系人:高艳龙 专线:010-62611201 手机:13716122959
H3340ZN H3400Z H3500Z H3600Z H3800Z U 型 H330ZU H350ZU H370ZU H3100ZU S312ZU S325ZU S340ZU
电力调整器(调功调压器)
三相 C 系列 功率调控器 PAC30D 三相 D 系列 功率调控器 PAD37 PAD36 单相 D 系列 功率调控器 PAD27 PAD26 可控硅模块 MTX/MFX56A MTX/MFX90A MTX/MFX120A MTX/MFX180A
PAC15P、PAC16P、PAC01A、PAC03I、PAC30、ZAC29C、ZAC28U 固态继电器:普通型: S203ZL/W 、S310ZK 、S340ZK 工业级增强型:H375ZF/K、H3100ZF/K、H3200Z、H3300ZD、H3340ZN、H3500Z 可控硅模块:MTX56A 、MTX90A、MTX120A、MTX180A、MTX250A、MTX350A 可控硅触发器、周波控制器/触发板单元: PAD36-T、PAD26-T、PAD15-T、PAD27-T、
W5500(socket)寄存器使用说明书

Socket 端口寄存器Sn3_MR (Socket n 模式寄存器) [R/W] [0x0000] [0x00]Sn_MR 描述3n 是 Socket 编号(0,1,2,3,4,5,6,7).n 设置了 SNUM[2:0]控制位集 n is Socketnumber (0, 1, 2, 3, 4, 5, 6, 7). n is set ‘SNUM[2:0]’ in Control Bits sets.Sn_CR (Socket n 配置寄存器) [R/W] [0x0001] [0x00]该寄存器用于设置 Socket n 的配置命令如 OPEN、CLOSE、CONNECT、LISTEN、END 和RECEIVE。
经 W5500 识别这一命令后,Sn_CR 寄存器会自动清零为 0×00。
尽管 Sn_CR 被清零为 0×00,但命令仍在处理中。
为了验证该命令是否完成,请检查 Sn_IR 或 Sn_SR 寄IR (中断寄存器) [R/W] [0x0015] [0x00]中断寄存器( IR)指明了中断的状态。
IR 的每一位都是‘0’,直到被主机写为‘1’. 如果 IR 不等于‘0×00’, INTn 引脚将会被拉低。
直到其变为‘0×00’时, INTn 才会被拉高。
表格IR说明S n_SR (Socket n 状态寄存器) [R] [0x0003] [0x00]Sn_SR指示了 Socket n 的状态,并根据 Sn_CR 或者一些TCP模式下的特殊控制包,如 SYN,FIN 包而改变。
Sn_SR状态描述Sn_PORT (Socket n 源端口寄存器) [R/W] [0x0004-0x0005] [0x0000]该寄存器配置了 Socket n 的源端口号。
当 Socket n 工作在 TCP 或 UDP 模式下,该寄 存器生效。
注意:必须在 OPEN 命令生效前,完成对该寄存器的设置。
CDP 使用指南说明书

CDP使用指南2021年05月12日目录1.文档说明 (8)2.CDP平台介绍 (8)2.1.CDP平台简介 (9)2.2.C LOUDERA M ANAGER概览 (10)2.3.C LOUDERA R UNTIME (11)2.4.工具 (11)2.5.设置对基于阿里云部署的CDP的访问权限 (12)2.5.1.配置SOCKS代理 (12)2.5.2.启动SOCKS代理 (12)2.5.3.配置Google Chrome浏览器以使用代理 (13)2.5.4.网络安全组 (14)3.CLOUDERA MANAGER (15)3.1.术语 (15)3.1.1.部署 (16)3.1.2.动态资源池 (16)3.1.3.集群 (16)3.1.4.主机 (16)3.1.5.机架 (16)3.1.6.服务 (16)3.1.7.服务实例 (17)3.1.8.角色 (17)3.1.9.角色实例 (17)3.1.10.角色组 (17)3.1.11.主机模板 (17)3.1.12.网关(Gateway) (17)3.1.13.Parcel (18)3.1.14.静态服务池 (18)3.2.C LOUDERA M ANAGER架构 (18)3.2.1.心跳 (19)3.3.状态管理 (19)3.4.C LOUDERA M ANAGER 管理控制台 (20)3.4.1.Cloudera Manager管理控制台主页 (24)3.4.2.自动登出 (28)3.5.进程管理 (30)3.6.主机管理 (30)3.7.C LOUDERA M ANAGER A GENT (31)3.7.1.cm_processes (31)3.8.资源管理 (32)3.9.用户管理 (33)3.10.安全管理 (33)3.11.使用C LOUDERA M ANAGER监控集群 (33)3.12.C LOUDERA M ANAGEMENT S ERVICE (35)3.12.1.健康测试 (35)3.12.2.指标收集和显示 (36)3.12.3.事件、警报和触发器 (36)3.13.集群配置概述 (37)3.14.服务器和客户端配置 (38)3.15.C LOUDERA M ANAGER API (39)3.16.虚拟专用集群和C LOUDERA SDX (39)3.16.1.分离计算和数据资源的优势 (40)3.16.2.架构 (40)3.16.3.权衡性能 (42)3.16.4.虚拟专用集群的兼容性注意事项 (42)3.16.5.虚拟专用集群的网络注意事项 (47)4.CDP核心组件 (53)4.1.C LOUDERA R UNTIME组件版本 (53)4.2.分布式文件系统HDFS (57)4.3.实时数据库HB ASE (58)4.4.列式存储引擎K UDU (60)4.5.统一资源管理和调度框架 (61)4.6.分布式计算框架–T EZ (66)4.7.数据仓库组件–H IVE (68)4.8.SQL分析引擎I MPALA (69)4.9.HB ASE SQL查询引擎P HOENIX (71)4.10.C LOUDERA整合全文检索引擎 (73)4.11.分布式内存计算框架–S PARK (76)4.12.数据库接入工具S QOOP (78)4.13.C LOUDERA一站式安全管理 (83)4.14.分布式消息队列K AFKA (93)4.15.A PACHE A TLAS (95)5.CLOUDERA安全概述 (98)5.1.概述 (98)5.1.1.安全要求 (99)5.1.2.安全等级 (99)5.1.3.Hadoop安全架构 (100)5.2.认证概述 (101)5.2.1.Kerberos概述 (102)5.2.2.Kerberos部署模型 (103)5.2.3.使用TLS/SSL进行安全的Keytab分发 (109)5.2.4.使用向导或手动过程来配置Kerberos身份验证 (110)5.2.5.集群组件使用的身份验证机制 (110)5.3.加密概述 (111)5.3.1.保护静态数据 (111)5.3.2.保护传输中的数据 (114)5.3.3.Hadoop项目中的数据保护 (115)5.3.4.加密机制概述 (117)5.4.授权概述 (117)5.4.1.Hadoop中的授权机制 (118)5.4.2.与身份验证机制的身份验证机制集成 (119)5.4.3.Hadoop项目中的授权 (120)5.5.治理概述 (121)5.5.1.什么是Apache Atlas? (121)5.5.2.Apache Atlas使用元数据创建血统关系 (121)5.5.3.添加到实体元数据使搜索更加容易 (121)5.5.4.Apache Atlas体系结构 (122)6.CLOUDERA最佳实践 (123)6.1.I MPALA分区 (123)6.1.1.文件计数和文件大小 (123)6.1.2.分区注意事项 (124)6.1.3.指南总结 (126)6.2.I MPALA性能 (126)6.2.1.Kudu RPC (126)6.2.2.设立专门的协调员 (127)6.2.3.按需元数据和元数据管理 (130)6.3.加速S PARK ML应用 (153)6.3.1.Spark ML的原生数学库 (153)6.3.2.启用libgfortran库 (154)6.3.3.启用英特尔MKL库 (156)6.3.4.性能比较 (157)7.故障排查 (159)7.1.安全故障排查 (159)7.1.1.错误信息和各种故障 (159)7.1.2.身份验证和Kerberos问题 (167)7.1.3.HDFS加密问题 (179)7.1.4.Key Trustee KMS加密问题 (181)7.1.5.对Cloudera Manager中的TLS/SSL问题进行故障排除 (182)7.2.YARN、MR V1和L INUX OS安全性 (185)7.2.1.MRv1和YARN:jsvc程序 (185)7.2.2.仅限MRv1:Linux TaskController (186)7.2.3.仅限YARN:Linux容器执行器 (186)7.3.对I MPALA进行故障排除 (187)7.3.1.使用Breakpad Minidumps进行崩溃报告 (188)7.4.对A PACHE Y ARN进行故障排查 (190)7.4.1.在YARN上对Docker进行故障排除 (190)7.4.2.对Linux Container Executor进行故障排除 (200)7.5.对HB ASE进行故障排除 (202)7.5.1.使用HBCK2工具修复HBase集群 (203)7.5.2.Thrift Server在收到无效数据后崩溃 (203)7.5.3.HBase正在使用比预期更多的磁盘空间 (204)7.5.4.对RegionServer分组进行故障排除 (205)7.6.对APACHE KUDU进行故障排除 (206)7.6.1.启动或重启主服务器或者Tablet服务器时出现问题 (206)7.6.2.磁盘空间使用问题 (207)7.6.3.性能问题 (208)7.6.4.可用性问题 (214)7.6.5.象征堆栈跟踪 (216)7.6.6.在多主服务器部署中从死掉的Kudu主服务器中恢复 (218)7.7.对C LOUDERA S EARCH进行故障排除 (218)7.7.1.故障排除 (218)7.7.2.动态Solr分析 (219)7.7.3.其他故障排除信息 (220)7.7.4.找出Cloudera Search部署中的问题 (220)7.7.5.Cloudera Search配置和日志文件 (223)7.8.对H UE进行故障排查 (226)7.8.1.Hue负载平衡器无法在各个Hue服务器之间平均分配用户 (226)7.8.2.无法使用SAML对Hue中的用户进行身份验证 (227)7.8.3.清理旧数据以提高性能 (227)7.8.4.无法使用提供的凭据连接到数据库 (229)7.8.5.在Hue UI上激活Hive查询编辑器 (230)7.8.6.查询执行在Hue中完成,但显示为在Cloudera Manager Impala查询页面上执行 (231)7.8.7.查找Hue超级用户列表 (232)7.8.8.通过Knox访问Hue时,用户名或密码不正确 (233)7.8.9.从Knox访问Hue UI时出现HTTP 403错误 (234)7.8.10.无法从Knox Gateway UI访问Hue (236)7.8.11.引荐检查失败,因为域与任何受信任的来源都不匹配 (239)7.8.12.无法查看Snappy压缩文件 (239)7.8.13.启用SAML时出现“未知属性名称”异常 (241)7.8.14.Impala查询因无效的查询句柄错误而失败 (242)7.8.15.PostgreSQL支持的服务失败或挂起 (243)7.8.16.验证Hue中的LDAP用户时出错 (244)7.8.17.从负载均衡器访问Hue时出现502代理错误 (245)7.8.18.提交Hive查询后,无效的方法名称:“ GetLog”错误 (246)7.8.19.在Hue中提交查询时出现“授权异常”错误 (246)7.8.20.无法更改Hue中的压缩表 (248)7.8.21.从Hue访问“搜索”应用程序(Solr)时出现连接失败错误 (249)7.8.22.从顺化下载查询结果需要时间 (250)7.8.23.启用TLS后,Hue Load Balancer无法启动 (250)7.8.24.无法终止以Kerberized集群运行的Hue作业浏览器中的Hive查询 (251)7.8.25.无法在受Knox保护的集群上的Hue中查看或创建Oozie工作流 (252)7.8.26.1040,“连接太多”异常 (253)8.参考资料 (254)1.文档说明本文档主要是基于阿里云部署的CDP的操作使用和介绍,关于CDP平台的操作和使用信息来源Cloudera官网,大家可以访问https:///cdp-private-cloud-bas e/latest/index.html来获取对应的信息。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
↓
返回
┏━━━━━┓
(接收)
<─────────── ┃返回全文件┃
↓
┗━━━━━┛
┏━━━━━┓ 发送
┃发送全文件┃ ───────────> (接收)
┗━━━━━┛
↓
返回
┏━━━━━┓
(接收)
<─────────── ┃返回全文件┃
↓
┗━━━━━┛
┏━━━━━┓ 发送
┃发送全文件┃ ───────────> (接收)
数据7位,1位偶校验位,2位停止位 数据7位,无校验, 1位停止位 数据7位,无校验, 2位停止位 数据8位,1位偶校验位,1位停止位 数据8位,1位偶校验位,2位停止位 数据8位,无校验, 1位停止位 数据8位,无校验, 2位停止位 8. 通讯码: ASCII码 9.隔 离: 传输信号与输入信号隔离,系统与输出隔离
数据发送 SD 3 数据接收 RD 2 信号地 GND 5
希曼顿 RS232/RS485转换器
1 RXD 数据接收 数据发送/接收高 TR + 10
2 TXD 数据发送 数据发送/接收低 SD - 9
3 信号地 GND 屏蔽地
SG 6
MR13 485通讯接口
+9 -3 信号地5
RS485通讯采用差动的两线发送,两线接收的双向数据总线两线制方式。上位机和下位调节器的内部接收器的接收高(RDA)和 低(RSD)线以及内部发送器的发送高(SDA)和低(SDB)线都挂在数据总线上,平时内部发送器的发送线处于高阻关闭态。如下 图通讯过程示意图所示,通常上位机是讲者,下位调节器是听者,并按主、从方式进行通讯,多台仪表的通讯靠地址(设备号) 的不同来区分。通讯中,发送方需将发送线置于低阻态。发送完成后,发送线需重新恢复到高阻关闭态。接收方在接收数据 完成后,又成为发送方。因此,RS485接口存在着双向数据总线转换冲突问题。在上位机可由软件调整,下位可由仪表的RS485 延时时间窗口调整。
参看5-6通信地址说明。
f: 数据量⑽:0~9
在读(R)或写(W)指令中,表示了读参数的个数,可以连续读顺序指令代码10个,从而提高了读指令的效率.
例如:
R0
3
0
0
9
5 2 H 3 0 H 3 3 H 3 0 H 30H 39H
表示读0300H~0309H的10个设定值的参数
在W-写指令中, f固定为0. 表示了仅能设定一个参数(编者按:出于可靠性的考虑)
存储方式:
EEP(修改参数的保存在EEPROM中)
注: EEPROM寿命为10万次
RAM(修改参数的保存在RAM中,掉电后丢失)注:调机用
在MR13[1-18B]窗口设置字符串控制符格式:
字符串控制符格式:1。STX_ETX_CR 2。STX_ETX_CRLF 3。@_:_CR
在MR13[1-19B]窗口设置BCC块校验方式:
2……回路2
3……回路3
(3)文件格式说明
文本格式类型根据指令和应答改变,请参看5-3读指令说明和5-4写指令说明。
d:指令类型(⑸):
“R”(52H/大写字符) 读指令 ,从个人微机或PLC上读MR13的数据。
“W”(57H/大写字符) 写指令 ,从个人微机或PLC上写MR13的数据。
e:⑹⑺⑻⑼指令代码:例如:0300 表示为第一设定值的参数( 可读/ 写).其它见后指令代码表
485通迅示意图
┌─────────────────────────────┐
│┌───────┐
│
││ 上位机的 │
│
││ 485
│
│
││ 通迅接口 │
│
│└──┬─┬──┘
│
│
│ │ 发送/接收双向数据总线
│
│
│ ├─────────┬─────────┐
│
│
││
│
│
│
│
├─┼───────┬─┼───────┐ │
址符合,接收字符格式和校验正确后,才能进行正常的通讯。
4. 调节器通迅参数的设置
参照MR13中文操作流程图,手动选择如下设置:
在MR13[1-14B]窗口设置通信地址:
地址:01~99
在MR13[1-15B]窗口设置波特率:
通讯波特率:1200、2400、4800、9600、19200,
在MR13[1-16B]窗口设置通讯字符格式:
★ 用户可用Windows 环境下的WORDS的"PRINT"打印指令检查或打印MR13.doc 文件内容。
2.通讯口的技术数据
1. 信号电平: 2. 通讯方式:
3. 同步系统: 4. 通讯距离:
5. 通讯速度: 6. 传输保护: 7. 数据格式:
EIA标准 RS-232C,RS-485 RS-232C 3线半双工,单台 白RS-485 2线半双工,多台 起始位-停止位同步系统 RS-232C 15 米 RS-485 500 米 (具体视通讯条件而定) 1200,2400,4800,9600,19200 波特率 无保护 数据7位,1位偶校验位,1位停止位
MR13通讯协议使用说明
MR13 中文版通讯协议操作说明
(日本岛电公司MR13调节器通讯接口中文学习软件) 作为三回路九段可编程PID调解器,通讯协议为国际通信新协议,与 岛电SR253相同,但与FP21,SR25,SR53标准不兼容。 本资料和开发的学习软件,作为用户学习RS232C,RS485接口通讯指 令的参考,不足之处请给与指正。
1. 软件清单
在软盘内,提供了下述的应用资料及其它调用文件. 中文版 通讯协议V 2.10 操作说明 (words 文件) BASICA.EXE - COMOPAQ.BASIC SRFP.BAS - BASIC参考的通讯学习软件 STAR253.BAS - BASIC参考的SR25的"DS"指令数据采集软件 232T.BAS - BASIC的PC机232口及先锋RS485口测试软件
3. 调节器通迅接线 3.1 RS-232C
上位机RS232C 9针连接器
数据发送 SD 3 数据接收 RD 2 信号地 GND 5
RD 3数据接收 SD 2数据发送 SG 7信号地
RS232接口,只能单台点对点的通迅,不能进行总线的并联。
3.3.485接口连线形式: 上位机RS232C 9针连接器
BCC块校验方式: 1。Add(求和) 2。Add_two’s cmp(求和后求反) 3。XOR(异或求和) 4。None(无)
在MR13[1-20B]窗口设置延迟时间:
范围:0~125
RS485延时时间: 延时时间=设定值 * 0。25 mS
注: 延时时间主要用于适配数据发送/接收总线的转换速度
5. standard 标准通讯协议说明: 5.1 标准通讯协议的通讯过程示意图
02H +30H +31H +31H +52H +30H +31H +30H +30H +39H +03H = 1E3H E3的求反=1DH
通讯字符格式:7E1,7E2,7N1,7N2,8E1,8E2,8N1,8N2.
格式
数据位
校验位
停止位
7E1
7
偶校验
1
7E2
7
偶校验
2
7N1
7
无
1
7N2
7
无
2
8E1
8
偶校验
1
8E2
8
偶校验
2
8N1
8
无
1
8N2
8
无
2
通讯协议方式:Standard(新标准)、SRFP(与MR13/FP21协议兼容)
在MR13[1-17B]窗口设置存储方式:
日本岛电公司中国技术服务中心 北京市希曼顿自动化研究所 毛海云 殷汉伟
2000/10/14
XF-MR13的通讯学习软件操作说明书目录
1. 软盘清单 2. 通讯口的技术数据 3. 调节器通迅接线 4. 调节器通迅参数的设置 5. standard 标准通讯协议说明: 6. 通讯数据地址列表 7. 在PC计算机上,采用BASICA语言,实现对MR13数据采集的编程例 附录一:.MR13.BAS流程图 附录二:.量程范围列表 附录三:.ASCⅡ码列表
g: 数据⑾:
W指令后,插入数头符“,”代表改写一个参数
数头符 第一数据
“,” 1 2 3 4
例: 仅一个参数的写 W03000,****( 参数) e:响应代码⑹⑺:
正常响应码为”00”。 参看5-5响应码说明。
(4)基本格式2说明 h:结束符 表示文件的结束 以 ETX(03H) 或 “:”(3AH)表示 i:两位BCC(二进制块)码 说明: MR13[1-19B]窗口设置BCC块校验方式:
500 STX$=”@” 510 ETX$=”:” 520 TEX$=”011R01009”:REM 第二部分 文件0100-0109的连续十个参数的读 550 CMD$= STX$+ TEX$ +ETX$ :REM 将要校验的字符串 555 BCC=ASC(LEFT$(BC$,1)); 560 LEC=LEN(CMD$):BCC=0 :REM 求校验字节长度 570 FOR I=1 TO LEC:S$=MID$(CMD$,I,1) 580 BCC=BCC+ASC(S$) 590 NEXT 600 BCC=BCC MOD 256:REM 取一个字节8位 610 BCC$=”0” + HEX$(BCC): BCC$=RIGHT$(BCC$, 2): REM BCC的ASC码 620 END$= ETX$+BCC$+CR$+LF$: REM 第三部分:结束文件 630 TXD$=STX$+CMD$+ END$:REM 生成发送读写字符串 630 RETURN (2)BCC 加法二进制的求反(Add-two’S CMP) 例2 BCC加法二进制求反和读指令(读): STX 0 1 1 R 0 1 0 0 9 ETX 1 D CR LF