remote模块的使用
remote模块的使用
在Node.js中,remote模块是一个内置模块,用于提供对本地和远程对象的功能。它提供了与远程过程调用(RPC)相关的功能,可以用于在本地和远程对象之间进行通信。
使用remote模块,您可以在Node.js应用程序中创建和使用本地对象,并通过RPC与远程对象进行交互。下面是一个详细的介绍和示例说明:
1. 创建远程对象
首先,您需要使用remote模块创建一个远程对象。您可以通过在remote模块上调用createObject方法来创建远程对象。例如:
在上面的示例中,我们创建了一个具有一个属性message的远程对象。这个属性可以通过RPC从远程访问。
2. 暴露远程对象的方法 接下来,您可以暴露远程对象的方法,以便从远程调用它们。要暴露方法,您可以使用remote模块的expose方法。例如:
在上面的示例中,我们将远程对象remoteObj暴露为myRemoteObject,这意味着可以从远程访问该对象的所有属性和方法。
3. 访问远程对象的方法和属性
一旦您暴露了远程对象的方法和属性,您可以从本地访问它们。要访问远程对象的属性,您可以使用点号操作符(.)。要调用远程对象的方法,您可以使用括号操作符(0)。例如:
在上面的示例中,我们获取了远程对象的message属性的值,并调用了它的doSomething方法。请注意,这些操作是在本地执行的,但实际上是对远程对象的操作。
4. 使用HTTP协议进行RPC调用 除了上面的直接方法外,您还可以使用HTTP协议进行RPC调用。在这种情况下,您需要使用Node.js的内置HTTP模块与远程对象进行通信。例如:
在服务器端:
在客户端: 在上述示例中,客户端向服务器发送一个HTTP GET请求,以获取远程对象的属性。服务器使用remote模块创建一个远程对象,并将其暴露为myRemoteObject。然后,它通过HTTP响应将该对象发送回客户端。客户端接收到响应后,可以访问远程对象的属性和方法。
Wifi模块使用说明
Wifi模块使用说明
供电范围 6-16V
接口:
VCC 5V供电端(电压必须是5V,可以做电源输出)
TXD 接 单片机的 RXD
RXD 接 单片机的 TXD
GND接 单片机的 GND
默认波特率9600
wifi无线名称:TOLNK 密码:12345678
web页面地址:http://192.168.10.1
视频地址 :http://192.168.10.1:8080
(可以使用chrome或者Firefox浏览器直接访问摄像头) 使用方法
1, 将模块供电,电源要求6.5-16V之间
2, 供电正常之后,用手机或者笔记本 搜索wifi网络
搜索到TOLNK之后,连接TOLNK,密码为12345678
3, 电脑软件接收视频
运行MJPG.exe 软件
然后点击“连接”按钮即可
摄像头上面有一个灯,如果没有亮灯,就说明摄像头连接异常。
只有摄像头上的灯是亮的才可以使用无线视频。
连接电脑wifi,名称为TOLNK ,密码为12345678
设置参数 打开浏览器,输入 http://192.168.10.1,登陆用户和密码都是admin
修改系统设置: 无线网类型AP 和 Infra AP是将wifi模块当路由器使用,这样手机和电脑就可以直接连接wifi模块了。 Infra 是将wifi模块当基础设备使用,用于连接别的路由器。 两个用途: 如果你要将wifi模块当路由器使用,方便你的手机和电脑连接,那么请注意以下设置: 无线网类型必须是AP。 无线网名称可以任意。 无线网密钥就是你的手机和电脑连接wifi模块时,需要的密码。 无线网络IP,就是你建议不要修改。 别的选项无需修改,保存参数,然后重启wifi模块。 如果你想将wifi模块连接到别的路由器使用,那么请注意以下设置: 无线网类型必须是Infra。 无线网名称必须填写需要连接的路由器名称(任何一个符合都不能出错,大小写也不能出错)。 无线网名称必须填写需要连接的路由器密码(任何一个符合都不能出错,大小写也不能出错)。 无线网络IP,修改为0.0.0.0。让他自动获取 别的选项无需修改,保存参数,然后重启wifi模块。
MINISIM900A模块使用手册
思诺智嵌电子科技
苏州有限公司
工业级MINISIM900A模块
使用说明书
该产品:
1.可直接内嵌到你的产品
2.带音频输入输出接口,利用调试软件可直接拨打接听电话
3.该产品分为普通版本和带语音合成的TTS两个版本,您可
根据需要选择。
淘宝店铺:
模块图片:
【1】模块特点:
1.本模块上电自启动,无需手动启动。
2.低电压启动,我们的模块只要5V的电源就能稳定的启动并运行,但电流必须大于1A 随
后我们会推出与之配套的电源模块 。
3.省去大量IO,仅保留最常用的引脚,板子更小更节省空间。更适合内嵌入您的产品。更
低廉的价格。
4.使用GPRS天线可选配 ,分专业级和试验级别。还预留更小的RF小头天线的接口。方
便配合您的产品外壳设计,
5.整个模块供电部分有TVS瞬态保护二极管。防止短路对模块造成的损坏。SIM卡预留有
ESD保护电路,即保护你的SIM卡又保护SIM900A自身的安全。
【2】引脚定义:
电源口:+5V GND; 通信端口:GND RX TX;
控制备用端口:RTC:后备电源接入口
IGT:外部信号启动模块,和低功耗应用有关,具体请查阅资料。
RST:模块复位信号输入端,低电平复位。
【3】:模块确认及验证:
收到模块后,确认模块完好无损的情况下,
1:无SIM卡上电:将5V 1A(以上)电源正负极正确接入模块,
观察指示灯:PWR灯长亮;NET灯长亮1秒之后闪烁。表明模块无异常。
2:断电,将准备好的SIM卡【(移动或联通)请确保该卡无欠费,并能在手机上正
常接打电话,收发短信。】方式SIM卡槽内,注意SIM卡缺口和翻盖式SIM卡座缺口一一
对应。
3:串口调试:首先应确保USB TO 232模块在电脑上正确识别。查看并记下所占用串
口(如串口1)波特率默认9600
接线:usb to rs232 TX-->miniSIM900A-RX
蓝牙模块使用说明书
天祥电子
1蓝牙模块使用说明 一、模块简介: 1、芯片简介 该蓝牙模块采用台湾胜普科技有限公司的BMX-02X模块为核心,它采用CSR BLUEcore4-External芯片并配置8Mbit的软件存储空间,成本低,使用方便。 CSR BlueCore4是英国Cambridge Silicon Radio(CSR)公司日前推出的第四代蓝牙硅芯片。这种硅芯片用于蓝牙技术推广小组(SIG)推出的增强数据传输率(EDR)蓝牙。CSR的BlueCore4的数据传输率将比现有的v 1.2蓝牙装置快三倍,并且使蓝牙移动电话或手机的耗电量较低。 蓝牙EDR的最大数据传输率为每秒2.1兆比特,而目前v1.2标准传输率则为每秒721千比特。传输率的提高意味着对一个特定量的数据来说,EDR无线电的工作将比v1.2无线电快三倍,从而减少耗电量,大大有利于依赖蓄电池的移动设备。 CSR BlueCore4完全能与现有蓝牙v1.1和v1.2装置兼容。蓝牙EDR用一种相移键控(PSK)调制模式取代标准传输率的Gaussian频移键控(GFSK),实现更高的数据传输率。 CSR BlueCore4正在以两种形式提供——一种用于外部“快闪”存储器,一种用于掩模ROM。BlueCore4-External以一种8×8mm BGA(球形格栅矩阵)封装提供,是十分灵活的解决方案,能够适应迅速更新的市场。例如,由于 天祥电子
2是目前可以得到的唯一能够支持蓝牙v1.2规格的所有强制和可选功能的硅芯片,BlueCore4-External为PC应用程序提供了理想的解决方案,使它们得益于以三倍速度的传输率无线传输文件,或者同时操作多个高需求的蓝牙链路。 鉴于蓝牙固件安装在芯片只读存储器上,CSR BlueCore4-ROM的成本较低,占用面积小得多(在小片尺寸包装中为3.8×4mm,在与BC2-ROM和BC3-ROM引脚兼容的BGA中为6×6mm)。ROM芯片的尺寸和成本使它日益成为要求蓝牙功能综合起来的移动电话、手机和其它批量生产和成本敏感的应用产品的选择。 BlueCore4提供48KB的RAM,而以前的BlueCore硅芯片仅为32KB。部分这种额外的记忆存储用于对付增强数据传输率的附加缓冲空间,而其余部分则确保象Scattermode这样的未来规格得到充分支持。 BlueCore4-External和BlueCore4-ROM将先把蓝牙EDR快速数据传输率的优越性带给现有一些主要的蓝牙市场,加快文件传送,降低耗电并实现多个同时链路的操作。它还将为这种技术开辟某些潜在的新应用领域。 2、主要特性 ◆蓝牙版本:V2.0+EDR ◆输出功率:class II ◆Flash存储容量:8Mbit ◆供应电压:5V 天祥电子
IGBT模块的使用及保管
第l7卷第6期 2008年l1月 平顶山工学晓学敏 Journal of Pi】 b萨l瑚Institute ofTechnology V01.17 No.6 Nov.2008
文章编号:1671—9662(20os)o6—0053—03
IGBT模块的使用及保管
晋卫国 ,王银安2
(1.河南神马赛尔项目,河南平顶山467000;2.河南质量工程职业学院,河南平顶山467001)
摘要:对IGBT的特性厦使用时的注意事项进行探讨,提出了选择和安装过程中应该注意的问题。
关键词:IGBT模块;氧化膜;MOSFEr
中图分类号:TN'/09 文献标识码:A
电力电子器件是电力电子技术的基础,也是电力电子
技术发展的“龙头”。新型电力电子器件中又以IGBT的发
展和应用最为广泛。
1 IGBT模块简介 IGBT是Insulated Gate Bipolar Transistor(绝缘栅双极型
晶体管)的缩写,IGBT是由MOSFET和双极型晶体管复合
而成的一种器件,其输入极为MOSFZr,输出极为PNP晶体
管,它融和了这两种器件的优点,既具有MOSFET器件驱动
功率小和开关速度快的优点,又具有双极型器件饱和压降
低而容量大的优点,其频率特性介于MOSFET与功率晶体
管之间,可正常工作于几十kHz频率范围内,在现代电力电
子技术中得到了越来越广泛的应用,在较高频率的大、中功
率应用中占据了主导地位。
IGBq'的等效电路如图1所示。由图1可知,若在IGBT
的栅极和发射极之间加上驱动正电压,则MOSFET导通,这 样PNP晶体管的集电极与基极之间成低阻状态而使得晶
体管导通;若IGBT的栅极和发射极之间电压为0 V,则
MOSFET截止,切断PNP晶体管基极电流的供给,使得晶体
管截止。IGBT与MOSFET一样也是电压控制型器件,在它
的栅极一发射极问施加十几v的直流电压,只有 级的
漏电流流过,基本上不消耗功率。
关于SpringCloudBusRemoteApplicationEvent使用注意事项
关于SpringCloudBusRemoteApplicationEvent使⽤注意事项
最近使⽤SpringCloud Bus ⽤于服务直接消息通信,遇到⼀些问题,记录下来给⼀样碰到问题的你⼀个解决⽅案开发环境 :
springboot 2.3.9.RELEASE
spring-cloud-alibaba-starters 2.2.5.RELEASE
rabbitmq
问题⼀:消息publishEvent出去,监听服务收不到消息
监听服务的类没有注⼊到spring容器中,未加RemoteApplicationEventScan注解扫描⾃定义的Event对象,配置加⼊以下即可
消息发送的时候originService传⼊的服务id和springcloud bus
的不⼀致
在spring-cloud-bus包中的BusAutoConfiguration配置信息可以看到,发送消息时会匹配serviceId,配置⼀致才发送,⽽默认情况下bus会⾃
动⽣成⼀个serviceId,如果我们发送的时候⽤的是⾃⼰随便定义的id,则⽆法发送消息。
建议在配置⽂件中配置busId,然后从BusProperties类中获取。这样就保证了⼆者⼀致
获取配置的bus id
消息发送者和接收者的rabbitmq
消息序列化配置不⼀致
默认情况下,rabbitmq有⾃⼰的消息序列化规则,由于我在消息发送服务配置过rabbitmq的序列化为json格式,但是接收服务没有使⽤的默
认的格式,导致消息发出去之后,接收服务⽆法正确反序列化,导致消息消费失败。所以要么就都不配置,要么所有服务都配置
问题⼆:消息发送成功,监听服务也收到消息,但是Event的source字段为空。
这个问题困扰了我很久,明明source字段传了值,但是别的服务就是拿不到,⽽且发送服务⾃⼰创建监听服务,是能拿到的。经过查询离职
发现,RemoteApplicationEvent的烦序列化的时候忽略了source,也就是说就算你传值了,也不会处理,可能是怕使⽤者传的数据⼤?
wifi模块使用指南
1 wifi模块使用指南
2 目录
1 wifi模块简介 ..................................................................................................................... 1
1.1 主要功能................................................................................................................. 1
1.2 应用领域................................................................................................................. 1
1.3 用法简介................................................................................................................. 1
2 wifi模块的技术规格........................................................................................................... 2
3 电脑连接wifi模块 ............................................................................................................ 4
4 设置wifi模块 .................................................................................................................... 5
温度模块EM231的使用
问题1: S7-200模拟量输入模块(EM231,EM235)如何寻址? 回答: 模拟量输入和输出为一个字长,所以地址 必须从偶数字节开始, 精度为12位, 模拟量值为0-32000的数值。 格式: AIW[起始字节地址] AIW6 ; AQW[起始字节地址] AQW0 每个模拟量输入模块,按模块的先后顺序地址为固定的,顺序向后排。 例: AIW0 AIW2 AIW4 AIW6每个模拟量输出模块占两个通道,即使第一个模块只有一个输出AQW0 (EM235只有一个模拟量输出), 第二个模块模拟量输出地址也应从AQW4开始寻址,依此类推。 (注: 每一模块的起始地址都可在step7 micro/win 中 Plc/Information里在线读到)。 问题2: 如何将传感器连接到S7-200
模拟量输入模块(EM231,EM235)以及有哪些注意事项? 回答: 模拟量输入模块可以通过拨码开关设置为不同的测量方法。开关的设置应用于整个模块,一个模块只能设置为一种测量范围。(注:开关设置只有在重新上电后才能生效) 输入阻抗与连接有关:电压测量时,输入是高阻抗为10 MOhm ;电流测量时,需要将Rx 和 x 短接,阻抗降到250 Ohm 。 注意: 为避免共模电压,须将M端与所有信号负端连接, 未连接传感器的通道要短接, 如下列各图。 下列各图是各种传感器连接到S7-200 模拟量输入模块的示例
图1: 4线制-外供电-测量
图2: 2线制-测量 为了防止模拟量模块短路,可以串入传感器一个750 Ohm电阻 。它将串接在内部250 Ohm电阻上并保证电流在 32 m A以下。
图 3: 电压测量 注意: 如果你使用一个4-20mA 传感器, 测量值必须通过编程进行相应的转换. 输入转换: X=32000 *(AIWx – 6400) /(32000 – 6400) 输出转换: Y=计算值*(32000 –
Whelen 车灯遥控模块说明书
Page 1©2012 Whelen Engineering Company Inc.Form No.14555 (021116)Automotive:
For warranty information regarding this product, visit /warranty•Proper installation of this product requires the installer to have a good understanding of automotive electronics, systems and procedures.•Whelen Engineering requires the use of waterproof butt splices and/or connectors if that connector could be exposed to moisture.•Any holes, either created or utilized by this product, should be made both air- and watertight using a sealant recommended by your vehicle manufacturer.•Failure to use specified installation parts and/or hardware will void the product warranty.•If mounting this product requires drilling holes, the installer MUST be sure that no vehicle components or other vital parts could be damaged by the drilling process. Check both sides of the mounting surface before drilling begins. Also de-burr the holes and remove any metal shards or remnants. Install grommets into all wire passage holes.•If this manual states that this product may be mounted with suction cups, magnets, tape or Velcro®, clean the mounting surface with a 50/50 mix of isopropyl alcohol and water and dry thoroughly.•Do not install this product or route any wires in the deployment area of your air bag. Equipment mounted or located in the air bag deployment area will damage or reduce the effectiveness of the air bag, or become a projectile that could cause serious personal injury or death. Refer to your vehicle owner’s manual for the air bag deployment area. The User/Installer assumes full responsibility to determine proper mounting location, based on providing ultimate safety to all passengers inside the vehicle.•For this product to operate at optimum efficiency, a good electrical connection to chassis ground must be made. The recommended procedure requires the product ground wire to be connected directly to the NEGATIVE (-) battery post (this does not include products that use cigar power cords).•If this product uses a remote device for activation or control, make sure that this device is located in an area that allows both the vehicle and the device to be operated safely in any driving condition. •Do not attempt to activate or control this device in a hazardous driving situation.•This product contains either strobe light(s), halogen light(s), high-intensity LEDs or a combination of these lights. Do not stare directly into these lights. Momentary blindness and/or eye damage could result.•Use only soap and water to clean the outer lens. Use of other chemicals could result in premature lens cracking (crazing) and discoloration. Lenses in this condition have significantly reduced effectiveness and should be replaced immediately. Inspect and operate this product regularly to confirm its proper operation and mounting condition. Do not use a pressure washer to clean this product.•It is recommended that these instructions be stored in a safe place and referred to when performing maintenance and/or reinstallation of this product.•FAILURE TO FOLLOW THESE SAFETY PRECAUTIONS AND INSTRUCTIONS COULD RESULT IN DAMAGE TO THE PRODUCT OR VEHICLE AND/OR SERIOUS INJURY TO YOU AND YOUR PASSENGERS!Warnings to InstallersWhelen’s emergency vehicle warning devices must be properly mounted and wired in order to be effective and safe. Read and follow all of Whelen’s writteninstructions when installing or using this device. Emergency vehicles are often operated under high speed stressful conditions which must be accounted forwhen installing all emergency warning devices. Controls should be placed within convenient reach of the operator so that they can operate the system withouttaking their eyes off the roadway. Emergency warning devices can require high electrical voltages and/or currents. Properly protect and use caution aroundlive electrical connections.Grounding or shorting of electrical connections can cause high current arcing, which can cause personal injury and/or vehicledamage, including fire. Many electronic devices used in emergency vehicles can create or be affected by electromagnetic interference. Therefore, afterinstallation of any electronic device it is necessary to test all electronic equipment simultaneously to insure that they operate free of interference from othercomponents within the vehicle. Never power emergency warning equipment from the same circuit or share the same grounding circuit with radiocommunication equipment. All devices should be mounted in accordance with the manufacturer’s instructions and securely fastened to vehicle elements ofsufficient strength to withstand the forces applied to the device. Driver and/or passenger air bags (SRS) will affect the way equipment should be mounted. Thisdevice should be mounted by permanent installation and within the zones specified by the vehicle manufacturer, if any. Any device mounted in the deploymentarea of an air bag will damage or reduce the effectiveness of the air bag and may damage or dislodge the device. Installer must be sure that this device, itsmounting hardware and electrical supply wiring does not interfere with the air bag or the SRS wiring or sensors. Mounting the unit inside the vehicle by amethod other than permanent installation is not recommended as unit may become dislodged during swerving; sudden braking or collision. Failure to followinstructions can result in personal injury. Whelen assumes no liability for any loss resulting from the use of this warning device. PROPER INSTALLATIONCOMBINED WITH OPERATOR TRAINING IN THE PROPER USE OF EMERGENCY WARNING DEVICES IS ESSENTIAL TO INSURE THE SAFETY OFEMERGENCY PERSONNEL AND THE PUBLIC.Warnings to UsersWhelen’s emergency vehicle warning devices are intended to alert other operators and pedestrians to the presence and operation of emergency vehicles andpersonnel. However, the use of this or any other Whelen emergency warning device does not guarantee that you will have the right-of-way or that otherdrivers and pedestrians will properly heed an emergency warning signal. Never assume you have the right-of-way. It is your responsibility to proceed safelybefore entering an intersection, driving against traffic, responding at a high rate of speed, or walking on or around traffic lanes. Emergency vehicle warningdevices should be tested on a daily basis to ensure that they operate properly. When in actual use, the operator must ensure that both visual and audiblewarnings are not blocked by vehicle components (i.e.: open trunks or compartment doors), people, vehicles, or other obstructions. It is the user’s responsibilityto understand and obey all laws regarding emergency warning devices. The user should be familiar with all applicable laws and regulations prior to the use ofany emergency vehicle warning device. Whelen’s audible warning devices are designed to project sound in a forward direction away from the vehicleoccupants. However, because sustained periodic exposure to loud sounds can cause hearing loss, all audible warning devices should be installed andoperated in accordance with the standards established by the National Fire Protection Association.Safety FirstThis document provides all the necessary information to allow your Whelen product to be properly and safely installed. Before beginning the installation and/oroperation of your new product, the installation technician and operator must read this manual completely. Important information is contained herein that couldprevent serious injury or damage. WARNING: This product can expose you to chemicals including Methylene Chloride which is known to the State of California to cause cancer, andBisphenol A, which is known to the State of California to cause birth defects or other reproductive harm. For more information go .Installation Guide:Century™ Elite Lightbar51 Winthrop RoadChester, Connecticut 06412-0684Phone: (860) 526-9504Internet: Salese-mail:*******************CustomerServicee-mail:*******************®ENGINEERING COMPANY INC.
DRT1-ID OD 芯片遥控模块说明书
70TransistorRemoteModulesDRT1-ID/OD
Compact8-pointand16-point
TransistorizedModules
TwoindependentpowersuppliescanbeusedbecausetheI/Oterminalsareinsulatedfromtheinternalcircuits.
ApprovedbyULandCSA.
OrderingInformationI/OclassificationInternalI/OcircuitcommonI/OpointsTerminalRatedvoltageI/OratedvoltageModel
NPN(+common)DRT1-ID08Input
PNP(--common)8Screwterminal24VDC24VDC
DRT1-ID08-1NPN(--common)DRT1-OD08Output
PNP(+common)DRT1-OD08-1NPN(+common)DRT1-ID16Input
PNP(--common)16
DRT1-ID16-1NPN(--common)DRT1-OD16Output
PNP(+common)DRT1-OD16-1
Note:Acommunicationscable,GCN1--004,isincludedwitheachmodule.
SpecificationsDRT1-ID/ODDRT1-ID/OD
71OutputItemDRT1-ODjj(-1)
Ratedoutputcurrent0.3A/point(seenote)
Residualvoltage1.2Vmax.
Leakagecurrent0.1mAmax.
InsulationmethodPhotocoupler
OutputindicatorsLED(yellow)
Note:DonotconnecttheDRT1-OD16(-1)toloadsconsumingatotalcurrentexceeding2.4A.
nVent RAYCHEM RMM3远程监控模块用户指南说明书
/RAYCHEM |
13
PRODUCT OVERVIEWHeat-tracing remote monitoring module
The Remote Monitoring Modules (RMM3) provide temperature monitoring capability for the nVent RAYCHEM Elexant and NGC controller family. The RMM3 accepts inputs from up to eight PT 100 temperature sensors that measure pipe or ambient temperatures in a heat-tracing system. Multiple RMM3 units communicate with a single nVent RAYCHEM User Interface providing centralised monitoring of temperatures.
A single, twisted pair RS-485 cable connects up to 247 RMM3
modules in the field.
Control and monitoring
A nVent RAYCHEM control network can consist of many heat-tracing circuits based on ambient and/or pipe temperatures. The RMM3 may be used to collect both ambient and pipe temperatures for control or for extensive monitoring of the heat-tracing system. The RMM3 units are placed near desired monitoring locations, even in hazardous areas (Zone 2). Multiple temperature sensor inputs are networked over a single cable, significantly reducing installation cost for temperature monitoring.
