In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "what is the network control type of infrared remote controller". The content of the explanation in this article is simple and clear, and it is easy to learn and understand. let's study and learn "what is the network control type of infrared remote controller". Let's study and learn what is the network control type of infrared remote controller.
I. working mode of the module
1. TCP_SERVER, server mode
When the infrared module works in the server mode, the decoding and transmission are realized through the host computer client access module.
The following are the local default IP parameters, which can be modified by the host computer software.
3. RS232 (TTL level), serial port mode
The decoding and transmission of the infrared module are controlled through the serial port (the default serial baud rate is 115200, and other baud rates can be customized).
Introduction to the function of the module
1. The module has the functions of infrared remote control button decoding, infrared coding and transmitting to control the equipment, which is fully compatible with infrared remote control.
Functional appliances, such as air conditioners (supporting multi-online air conditioners), televisions, set-top boxes, electric fans, audio equipment, projection
Instrument, CD, DVD player, satellite machine and other equipment.
2. If the learning instruction is received through the network or serial port, and the module enters the learning state, the button signal of the infrared remote controller can be decoded and uploaded.
The data after the code, and the infrared decoding waveform can be displayed synchronously through the special software, which is convenient for the analysis of the coding.
3. After the infrared signal is picked up by the single-chip microcomputer, it is converted into specific coding by the single-chip microcomputer, and finally output through the network or serial port, and the infrared data is compiled.
The maximum length of the code is 512 bytes, which can basically meet the coding length of all infrared remote control equipment.
4. The remote control distance of infrared coding transmission is far, and the control distance is up to 6 meters.
5. Infrared emission, easy to operate, only need to send the code back to the module, and the corresponding infrared equipment control can be realized.
6. combined with central control system and intelligent home system, infrared remote control is realized through network or serial port access, and many can be abandoned.
The trouble of using the remote control is to realize the intelligent integrated control.
Third, common application schemes of modules
1. XM-IR_02 module + RJ45 network cable connection to realize remote network control.
3. XM-IR_02 module + WIFI or Bluetooth (extended through serial port) to realize remote wireless control.
1. The host computer works in two network modes, server mode and client mode, which can be selected through the menu:
2. Infrared module sets IP parameters through serial port.
B. connect the infrared module to the serial module, and then the serial module USB port is plugged into the computer.
C, open the computer special infrared analysis software, select fixed baud rate 115200bps and COM string slogans.
4. Press the learning button on the analysis software to send learning instructions (learning instruction: FF 11 11 FE)
5. The analysis software has four-way waveform display function and waveform scaling function, which is convenient for infrared waveform comparison and analysis.
6. The remote controller to be learned is aimed at the infrared receiver head of the XM-IR_02 module, press the button to be decoded, and the analysis software will output the decoded data and display the infrared waveform synchronously.
If you need to decode multiple keys, repeat this operation.
7. After having the corresponding coded data, we need to use the infrared module to transmit the infrared signal, and only need to send the corresponding data coding to the module. For the debugger.
Then, there are four launch buttons on the right side of the waveform display area. Press the button to transmit the learned infrared coding immediately, and immediately verify whether the decoded data is correct.
That's right. The following is the hexadecimal decoded data received, which is copied and reserved for transmission by other software or devices.
8. According to the specific needs, customers can design the host computer control software to complete the infrared module data decoding and transmission.
Communication instruction protocol for infrared module (fixed baud rate of 115200 bps for serial port)
1. Infrared module learning instructions (sent through the network) are sent through the network or serial port according to the hexadecimal number:
Learning instruction: FF 11 11 FE
After the module receives the learning instructions, the status light on the module will always be on, waiting for the infrared remote controller to press the button to decode, and the decoded data will be uploaded to the host computer.
If the status light is off, give an example of uploading data format:
Data received: FF 05 xx FD x1 x2 x3 x4. 16
Frame header fixed format: FF xx xx FD, 05 is the number of valid data digits
Fixed trailer format: 16
The middle of the data: x1 x2 x3 x4. It's effective infrared coding.
Special note: decoding should not be carried out in strong light, an infrared button had better be decoded in two different waveform display channels to see if the data waveforms are consistent.
2. Infrared module transmission (network transmission). You only need to send all the received decoded data (including frame header and trailer) back to the infrared module to restore the corresponding red.
External signal, so as to control the infrared equipment, the status light will flash once when the infrared transmission is completed.
3. Module infrared IP parameter setting instructions (sent through serial port). The internal data of the module can be modified by setting. After the setting is completed, the module will automatically restart and set after restart.
The parameter takes effect. The data format of the relevant settings is described as follows:
Set instruction data from front to back each group of data description
Frame header fixed format: FF 2000 FC
Module IP, module gateway, subnet mask, port: these four sets of data are valid when the module is used as a server
Target IP, port: these two sets of data are valid when the module is used as a client
Mode field (working mode of infrared module):
0, for server mode
1, for client mode
Timeout restart field (no data restart has been received within 1 minute):
0, timeout does not restart
1, time-out restart
MAC address field (in decimal number):
There are six numbers in total.
Fixed trailer format: FC
4. Infrared module IP parameter reading instructions (sent through serial port), sent according to hexadecimal number through serial port, read instructions and received IP parameters:
Read instruction: FF 00 00 FB
Frame header fixed format: FF 2000 FB
Fixed trailer format: FB
Other fields have the same effect as setting instructions.
5. Infrared module heartbeat packet acquisition instructions (sent through the network) are sent through the network according to hexadecimal numbers to obtain instructions and received heartbeat packets:
Get instruction: FF 00 00 FA
Returned data: FF 00 00 FA
Specific heartbeat packet acquisition time, whether or not to obtain heartbeat package, according to the specific system.
6. Through the above instructions, customers can write their own host computer control software to achieve the desired control functions.
VI. Module interface description
7. Instructions for work lights and status lights
1. After the module is powered on, the green working light will flash all the time.
2. Enter the infrared learning state, the red state light is always on, and go out after infrared learning.
3. Launch status, the red status light flashes once.
Module launch tube, can use 2p seat, external launch head
The module is equipped with an ordinary infrared emission tube, and you can also choose and purchase a special infrared extended emission line.
There are two kinds of wire length: 1.5m and 3m. The black and white line of VCC is positive, and the all black line of GND is negative.
Thank you for your reading. the above is the content of "what is the network control type of infrared remote controller". After the study of this article, I believe you have a deeper understanding of what is the network control type of infrared remote control. the specific use of the situation also needs to be verified by practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.