CN103810828A - Wireless communication system and method for Internet-of-Things aggregation node of machine tool - Google Patents

Wireless communication system and method for Internet-of-Things aggregation node of machine tool Download PDF

Info

Publication number
CN103810828A
CN103810828A CN201210448365.1A CN201210448365A CN103810828A CN 103810828 A CN103810828 A CN 103810828A CN 201210448365 A CN201210448365 A CN 201210448365A CN 103810828 A CN103810828 A CN 103810828A
Authority
CN
China
Prior art keywords
internet
aggregation node
radio frequency
data
sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210448365.1A
Other languages
Chinese (zh)
Other versions
CN103810828B (en
Inventor
郑一麟
林浒
邓庆绪
陶耀东
邓建军
萧延彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenyang Institute of Computing Technology of CAS
Original Assignee
Shenyang Institute of Computing Technology of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenyang Institute of Computing Technology of CAS filed Critical Shenyang Institute of Computing Technology of CAS
Priority to CN201210448365.1A priority Critical patent/CN103810828B/en
Publication of CN103810828A publication Critical patent/CN103810828A/en
Application granted granted Critical
Publication of CN103810828B publication Critical patent/CN103810828B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a wireless communication system for an Internet-of-Things aggregation node of a machine tool. The system comprises a numerical-control Internet-of-Things aggregation node, wherein the numerical-control Internet-of-Things aggregation node is in connection with a serial port of a numerical-control upper computer, and is in wireless communication with a sensor of a numerical-control machine tool and comprises an MCU (Micro Controller Unit) and a radio frequency chip, and the MCU is connected with the radio frequency chip and is in the wireless communication with the sensor of the numerical-control machine tool. According to a wireless communication method, the numerical-control Internet-of-Things aggregation node is in connection with the numerical-control upper computer and is in the wireless communication with the sensor of the numerical-control machine tool, so as to finish data transmission. According to the wireless communication system, the numerical-control Internet-of-Things aggregation node can receive data from a wireless collection node and can sent commands to the wireless collection node, and a series of problems caused by a wired connection manner utilized by a sensor network of a conventional machine tool are solved; by utilizing an external pin breakage manner, a processor can do other affairs when the wireless data are not received and sent, and thus the function extension of the numerical-control Internet-of-Things aggregation node is facilitated.

Description

Lathe Internet of Things aggregation node wireless communication system and method
Technical field
The present invention relates to the data transmit-receive of the Internet of Things aggregation node in numerically-controlled machine field, specifically a kind of lathe Internet of Things aggregation node communication system and method.
Background technology
In digital control system processing, we need timely collecting temperature, and the physical quantitys such as vibration detect the duty of lathe, the problem occurring in discovery processing in time, thus there is data control sensor device network system.The traditional sensor network using in numerically-controlled machine tool system uses the mode of wired connection, and various sensors are coupled together by wired mode and coprocessor (aggregation node).Although connect the design of hardware is become simply like this, in the process of building sensor network, the cable that is wound around bed piece can make the aesthetic property of lathe decline, and has also increased the difficulty of wiring simultaneously.In actual NC Machining Process, the vibration of lathe and the rotation of mechanical axis all may make the communications cable between sensor and aggregation node come off or even fracture, the dependable with function of traditional Internet of Things network is reduced greatly, so almost seldom carry out lathe physical quantity with traditional sensors network in the lathe of usually seeing.Along with the development of radio network technique, the appearance of wireless sensor network has solved the problems in cable network, particularly in industrial detection field.And use the system of Internet of Things detection lathe running status few for lathe both at home and abroad.Invent a kind of lathe Internet of Things aggregation node wireless communication system and method and become more important.
Summary of the invention
For weak point of the prior art, the technical problem to be solved in the present invention is to provide a kind of lathe Internet of Things aggregation node communication system and method that can receive in real time and send wireless sensor network data.
In order to have realized the real-time reception of lathe Internet of Things aggregation node to information acquisition node, solve the network communication problem between lathe Internet of Things wireless senser and digital control platform, the technical solution used in the present invention is:
Lathe Internet of Things aggregation node wireless communication system and method, comprising: numerical control Internet of Things aggregation node is connected, communicates by letter with the sensor wireless of numerically-controlled machine with numerical control host computer serial ports; Described numerical control Internet of Things aggregation node comprises MCU and radio frequency chip; MCU is connected with radio frequency chip, and communicates by letter with the sensor wireless of numerically-controlled machine.
The sensor composition Star topology network of described numerical control Internet of Things aggregation node and numerically-controlled machine; Described radio communication adopts broadcast mode.
Numerical control Internet of Things aggregation node, by completing data transmission with numerical control PC Communication and with the mode that the sensor of numerically-controlled machine carries out radio communication, comprises the following steps:
Numerical control Internet of Things aggregation node carries out initialization; If need to send sensor configuration data, send packet to numerically-controlled machine sensor by radio frequency chip, if do not needed, radio frequency chip enters dormant state, MCU processes other I/O affairs simultaneously;
If MCU receives the data that numerical control host computer is sent by serial ports, send packet to numerically-controlled machine sensor by radio frequency chip; If radio frequency chip receives the wireless data packet from numerically-controlled machine sensor, send data to numerical control host computer by MCU, complete communication.
Described MCU receives the data that numerical control host computer is sent by serial ports, sends packet comprise the following steps by radio frequency chip:
MCU forbids external interrupt and removes interrupt flag bit, reads serial ports reception area and generates wireless data packet;
Force radio frequency chip to exit sleep state and make it enter transmission state, send wireless data packet;
Whether the State-output pin that detects radio frequency chip has negative edge to arrive; If it is force radio frequency chip to enter sleep state, if NO, continue to detect;
Recover external interrupt; Send ED.
Described radio frequency chip receives from the wireless data packet of numerically-controlled machine sensor and comprises the following steps:
MCU forbids external interrupt and removes interrupt flag bit, reads reception buffer zone;
Check receives the cumulative sum of packet, and whether first of packet the cumulative sum to penultimate byte equals last byte; If equated, analyzing and processing data bag be sent to numerical control host computer by serial ports; If not etc., forgo data;
Force radio frequency chip to enter sleep state, recover external interrupt; Receive ED.
Described data packet format be followed successively by machine bed label, sensor number, order and parameter, Temperature/Vibration data, battery electric quantity, verification and.
The present invention has following beneficial effect and advantage:
1. realize lathe Internet of Things aggregation node the data receiver of wireless acquisition node and order have been sent, solved the series of problems that traditional machine tool sensor network uses wired connection mode to bring.
2. traditional Internet of Things aggregation node is only processed and wireless relevant data processing, this allows processor wait for the send and receive of wireless network at most of time, the external interrupt pin mode that this patent adopts can make processor in the time there is no wireless data transceiving, process other affairs, has facilitated the Function Extension of numerical control Internet of Things aggregation node.
3. the wireless communication section of this patent has been used the electromagnetic wave arousal function of CC1101, under sleep pattern, if receive the extraneous wireless data (electromagnetic wave) sending, CC1101 can revive automatically from sleep pattern, and complete the reception to wireless data, use electromagnetic wave arousal function can reduce the energy consumption of CC1101, the more energy-conservation aggregation node that also makes can be used the battery powered occasion of some needs.
4. the present invention adopts the method for calibration of packet cumulative sum, and short for the verification computation period of the bag that transmits and receive data, accuracy rate is high.
Accompanying drawing explanation
Fig. 1 is numerical control internet of things structure block diagram of the present invention;
Fig. 2 is total program flow diagram;
Fig. 3 is for receiving data Interrupt Subroutine process flow diagram;
Fig. 4 is serial ports Interrupt Subroutine process flow diagram.
Embodiment
Below in conjunction with accompanying drawing, the inventive method is described in further detail.Fig. 1 is whole numerical control internet of things structure block diagram, first should set up a hardware system as shown in Figure 1, with RS232 Serial Port Line connection aggregation node and numerical control host computer, and wireless acquisition node (from charged pool) is fixed on the bed piece that need to measure temperature or vibration.Then by JTAG, the LPC1768 master routine shown in Fig. 2 is downloaded to numerical control Internet of Things aggregation node.After downloading successfully, open host computer serial ports transmitting-receiving software, just can see acquisition node that aggregation node receives No. ID, the information such as physical quantity can send order and parameter to acquisition node simultaneously.
A kind of lathe Internet of Things aggregation node wireless communication system and method, first should build lathe Internet of things hardware platform and define the form of packet in Internet of Things.Then LPC1768 and CC1101 are carried out to initial configuration, LPC1768 controls CC1101 and enters park mode immediately, wait for that electromagnetic wave wakes the external pin interruption that receives data generation up, or the serial ports that sends to the data of sensor node to produce etc. host computer to be sent interrupts, and MCU can process other pending data in the time of radio frequency chip dormancy.
Lathe Internet of things hardware platform is by numerical control host computer, aggregation node (processor: LPC1768, radio frequency chip: CC1101), data acquisition node (temperature, humidity) three part compositions, wherein between numerical control host computer and aggregation node, communicate by letter by RS232 Serial Port Line, aggregation node is by USB confession electricity, the free frequency range of industry by 433Mhz between aggregation node and data acquisition node communicates, data acquisition node is fixed on bed piece, since locality condition restriction, the lithium battery power supply of employing 3.6V.After hardware platform has been built, stipulate the data layout of lathe Internet of Things according to the needs of sensor.Packet is 9 bytes altogether, first byte is lathe numbering, second byte is sensor number, the 3rd byte is order and parameter, the the 4th to the 7th byte is used for storing data (temperature or vibration), the 8th byte is battery electric quantity, and the 9th byte is the cumulative sum of eight bytes above, is used for the correctness of checking data.
Initialization aggregation node mainly comprises the configuration register of initialization radio frequency chip CC1101 and data processing MCU chip LPC1768.In the time of configuration CC1101 register, we utilize the mode of simulation SPI agreement sequential and CC1101 module to register data writing: first before front 8 rising edge clocks of SCLK signal, put into eight bit register address on SI signal wire, then before rear 8 rising edge clocks, put into data.By configuration whole 47 registers of CC1101 (address 0-0x2E), make transmitting chip be operated in following state: the free frequency range of industry that is operated in 433Mhz, in the time receiving packet or send packet, GDO0 pin sets high, after having accepted packet or having sent packet, GDO0 pin sets low, sending packet maximum length is 9 bytes, is provided with park mode and electromagnetic wave simultaneously and wakes up the correlation parameter of (WOR).After initialization radio frequency chip, initialization arranges the register of LPC1768.In order to communicate by letter with numerical control host computer, need the serial ports configuration of initialization LPC1768 here.Serial ports configuration parameter is as follows: baud rate: 9600; 9 of data bit, 1 of position of rest; No parity check position and current control.In order to process the state that sends data and receive data, need to be set to external interrupt input pin by GDO0 pin simultaneously.
After initialization, LPC1768 can check the data that whether need transmission, if there are data, sends, and then detects GDO0 pin whether negative edge occurs, and negative edge occurs and show to send success of data.CC1101 enters low-power consumption dormant state, if there is no data, and directly dormancy CC1101, circulation is simultaneously monitored from serial ports and is interrupted and with from the negative edge external interrupt of GDO0 pin.In order to make full use of the system resource of LPC1768, it can process other affairs in the time of CC1101 dormancy.
When aggregation node is received after the wireless data from data acquisition node, because be set to electromagnetic wave arouse machine processed in the initialization CC1101 stage.The electromagnetic wave of wireless signal can wake CC1101 up from sleep state, CC1101 starts to receive data, GDO0 signal generation negative edge saltus step after having accepted.After LPC1768 detects negative edge saltus step, enter receive interruption and process subroutine.
As shown in Figure 3, process in subroutine at receive interruption, first driver forbids external interrupt, then removes external pin interrupt identification and reads byte and the correctness that reads byte is carried out to verification according to the data packet length of prior agreement.The mode of check is by cumulative the 1-8 byte that receives 9 byte datas, if the cumulative sum of 1-8 byte equals the 9th byte, proves that data transmission is correct, if be not equal to, proves data transmission fails, abandons data.Then the correct data obtaining is divided into lathe No. ID, sensor type, sensor ID number, sensor values (through calculating accordingly), battery electric quantity, and convert decimal system ASC code to and be sent to host computer by serial ports.Then CC1101 is proceeded to sleep state by LPC1768, allows to interrupt simultaneously, so just completed receive interruption and processed subroutine.
In the time that host computer need to send parameter or order to data acquisition node, host computer need to send to aggregation node by serial ports the parameter sending or order, aggregation node by order or parameter according to agreement data packet format be packaged into 7 byte data bags, by CC1101 by package forward to wireless acquisition node.In the time that the serial port module of LPC1768 has detected data access, produce serial ports and interrupt, master routine proceeds to serial ports interrupt handling routine.
As shown in Figure 4, after entering serial ports interrupt handling routine, first disabled interrupt responds and removes serial ports interrupt identification, reads parameter and order in serial ports reception buffer, and they are packaged into 7 byte data bags according to the data packet format of agreement.Then LPC1768 sends SIDLE command filtering pressure CC1101 and is withdrawn into idle pulley from sleep pattern, continues to send STX command filtering under idle pulley, makes CC1101 enter sending mode.Under sending mode, the packet that CC1101 sends 7 bytes sends packet by the form of broadcast to whole lathe Internet of Things wireless acquisition node.Sending successful mark is the outside input negative edge that LPC1768 detects GDO0 pin.

Claims (6)

1. lathe Internet of Things aggregation node wireless communication system, is characterized in that comprising: numerical control Internet of Things aggregation node is connected, communicates by letter with the sensor wireless of numerically-controlled machine with numerical control host computer serial ports; Described numerical control Internet of Things aggregation node comprises MCU and radio frequency chip; MCU is connected with radio frequency chip, and communicates by letter with the sensor wireless of numerically-controlled machine.
2. lathe Internet of Things aggregation node wireless communication system according to claim 1, is characterized in that: the sensor composition Star topology network of described numerical control Internet of Things aggregation node and numerically-controlled machine; Described radio communication adopts broadcast mode.
3. lathe Internet of Things aggregation node wireless communications method, is characterized in that: numerical control Internet of Things aggregation node, by completing data transmission with numerical control PC Communication and with the mode that the sensor of numerically-controlled machine carries out radio communication, comprises the following steps:
Numerical control Internet of Things aggregation node carries out initialization; If need to send sensor configuration data, send packet to numerically-controlled machine sensor by radio frequency chip, if do not needed, radio frequency chip enters dormant state, MCU processes other I/O affairs simultaneously.
If MCU receives the data that numerical control host computer is sent by serial ports, send packet to numerically-controlled machine sensor by radio frequency chip; If radio frequency chip receives the wireless data packet from numerically-controlled machine sensor, send data to numerical control host computer by MCU, complete communication.
4. lathe Internet of Things aggregation node wireless communications method according to claim 3, is characterized in that:
Described MCU receives the data that numerical control host computer is sent by serial ports, sends packet comprise the following steps by radio frequency chip:
MCU forbids external interrupt and removes interrupt flag bit, reads serial ports reception area and generates wireless data packet;
Force radio frequency chip to exit sleep state and make it enter transmission state, send wireless data packet;
Whether the State-output pin that detects radio frequency chip has negative edge to arrive; If it is force radio frequency chip to enter sleep state, if NO, continue to detect;
Recover external interrupt; Send ED.
5. lathe Internet of Things aggregation node wireless communications method according to claim 3, is characterized in that: described radio frequency chip receives from the wireless data packet of numerically-controlled machine sensor and comprises the following steps:
MCU forbids external interrupt and removes interrupt flag bit, reads reception buffer zone;
Check receives the cumulative sum of packet, and whether first of packet the cumulative sum to penultimate byte equals last byte; If equated, analyzing and processing data bag be sent to numerical control host computer by serial ports; If not etc., forgo data;
Force radio frequency chip to enter sleep state, recover external interrupt; Receive ED.
6. lathe Internet of Things aggregation node wireless communications method according to claim 3, is characterized in that: described data packet format be followed successively by machine bed label, sensor number, order and parameter, Temperature/Vibration data, battery electric quantity, verification and.
CN201210448365.1A 2012-11-09 2012-11-09 Wireless communication system and method for Internet-of-Things aggregation node of machine tool Active CN103810828B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210448365.1A CN103810828B (en) 2012-11-09 2012-11-09 Wireless communication system and method for Internet-of-Things aggregation node of machine tool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210448365.1A CN103810828B (en) 2012-11-09 2012-11-09 Wireless communication system and method for Internet-of-Things aggregation node of machine tool

Publications (2)

Publication Number Publication Date
CN103810828A true CN103810828A (en) 2014-05-21
CN103810828B CN103810828B (en) 2017-02-08

Family

ID=50707537

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210448365.1A Active CN103810828B (en) 2012-11-09 2012-11-09 Wireless communication system and method for Internet-of-Things aggregation node of machine tool

Country Status (1)

Country Link
CN (1) CN103810828B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104640151A (en) * 2015-01-19 2015-05-20 青岛中天信通物联科技有限公司 Wireless management method for sensor
CN109586832A (en) * 2018-12-14 2019-04-05 广州智光自动化有限公司 Wireless synchronization method, wireless slave, wireless host and wireless synchronization master
CN113922924A (en) * 2021-10-08 2022-01-11 中国兵器装备集团自动化研究所有限公司 Spi-based absolute value encoder communication method and system
CN114218144A (en) * 2021-12-15 2022-03-22 苏州驶安特汽车电子有限公司 RF receiving-serial port output method based on configurable parameter tire pressure receiver

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002005199A1 (en) * 2000-07-07 2002-01-17 Metso Automation Oy A wireless diagnostic system in industrial processes
KR20070114977A (en) * 2006-05-30 2007-12-05 주식회사 케이티 Tunnel instrumentation and monitoring system by wireless sensor network
CN201754092U (en) * 2010-08-10 2011-03-02 南京瀚之显电子科技有限公司 Agricultural greenhouse temperature and humidity monitoring system based on Zigbee network
CN102095511A (en) * 2010-11-30 2011-06-15 西安瑞特快速制造工程研究有限公司 Machine tool spindle temperature measurement device and measurement method thereof
CN102158989A (en) * 2011-04-15 2011-08-17 南京信息工程大学 Grain depot environment monitoring system
CN202119545U (en) * 2011-03-04 2012-01-18 易门供电有限公司 Wireless temperature measuring system
CN102681504A (en) * 2012-04-18 2012-09-19 华中科技大学 Industrial data collection and feedback system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002005199A1 (en) * 2000-07-07 2002-01-17 Metso Automation Oy A wireless diagnostic system in industrial processes
KR20070114977A (en) * 2006-05-30 2007-12-05 주식회사 케이티 Tunnel instrumentation and monitoring system by wireless sensor network
CN201754092U (en) * 2010-08-10 2011-03-02 南京瀚之显电子科技有限公司 Agricultural greenhouse temperature and humidity monitoring system based on Zigbee network
CN102095511A (en) * 2010-11-30 2011-06-15 西安瑞特快速制造工程研究有限公司 Machine tool spindle temperature measurement device and measurement method thereof
CN202119545U (en) * 2011-03-04 2012-01-18 易门供电有限公司 Wireless temperature measuring system
CN102158989A (en) * 2011-04-15 2011-08-17 南京信息工程大学 Grain depot environment monitoring system
CN102681504A (en) * 2012-04-18 2012-09-19 华中科技大学 Industrial data collection and feedback system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104640151A (en) * 2015-01-19 2015-05-20 青岛中天信通物联科技有限公司 Wireless management method for sensor
CN109586832A (en) * 2018-12-14 2019-04-05 广州智光自动化有限公司 Wireless synchronization method, wireless slave, wireless host and wireless synchronization master
CN109586832B (en) * 2018-12-14 2023-11-14 广州智光自动化有限公司 Wireless synchronization method, wireless slave, wireless master and wireless synchronization system
CN113922924A (en) * 2021-10-08 2022-01-11 中国兵器装备集团自动化研究所有限公司 Spi-based absolute value encoder communication method and system
CN114218144A (en) * 2021-12-15 2022-03-22 苏州驶安特汽车电子有限公司 RF receiving-serial port output method based on configurable parameter tire pressure receiver

Also Published As

Publication number Publication date
CN103810828B (en) 2017-02-08

Similar Documents

Publication Publication Date Title
CN104615037B (en) A kind of CAN bus based mobile unit Rouser and method
CN103810828A (en) Wireless communication system and method for Internet-of-Things aggregation node of machine tool
CN104637273B (en) Lathe Internet of Things wireless vibration acquisition node and its collecting method
WO2015085796A1 (en) Terminal energy-saving method, terminal, and system
CN103313365B (en) Long-distance Control metering system
Ma et al. Sensors state monitoring based on labview and wireless nodes
CN102033540A (en) System for testing automobile instrument with a controller area network (CAN) bus and testing method thereof
CN208905026U (en) Versatile interface protocol conversion module based on LORA network
CN109470319A (en) A kind of NB-IOT mould group dedicated for Ultrasonic Intelligent water meter
CN102665292B (en) Sensor node device for wireless sensor network and operation method of sensor node device
CN204440629U (en) A kind of low-power consumption bus data acquisition device
CN103047997B (en) Based on the 3D acceleration of bluetooth and angular velocity Real-time Collection with send sensing module
CN203084721U (en) Multi-interface extension management system of vehicle monitoring terminal
CN102759422B (en) Intelligent type mine pressure monitoring substation and correction method thereof
CN206546326U (en) A kind of ecological soil MOISTURE MEASUREMENT SYSTEM communicated based on wireless NRF2401
CN104792112A (en) Monitoring purifier for refrigerator air
CN201852952U (en) Greenhouse environment remote monitoring early warning device
CN206146450U (en) Measurement system of low -power consumption
CN205247184U (en) House monitoring and controlling means based on thing networking
CN113238499A (en) Full-duplex narrow-band Internet of things general data acquisition device and method under symmetric channel
CN203118217U (en) Blindman traffic prompting system based on single-chip microcomputer wireless communication
CN207817957U (en) The idler wheel remote controller of dual chip kernel
CN208419993U (en) One kind is ridden carrier posture safety monitoring assembly
CN203758681U (en) Wireless intelligent pressure transmitter
CN202815477U (en) Multifunctional universal control device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant