CN104579882A - CAN (controller area network) and WiFi (wireless fidelity) data communication device and communication method - Google Patents

CAN (controller area network) and WiFi (wireless fidelity) data communication device and communication method Download PDF

Info

Publication number
CN104579882A
CN104579882A CN201410835018.3A CN201410835018A CN104579882A CN 104579882 A CN104579882 A CN 104579882A CN 201410835018 A CN201410835018 A CN 201410835018A CN 104579882 A CN104579882 A CN 104579882A
Authority
CN
China
Prior art keywords
device parameter
wifi
described device
data communication
real
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.)
Pending
Application number
CN201410835018.3A
Other languages
Chinese (zh)
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201410835018.3A priority Critical patent/CN104579882A/en
Publication of CN104579882A publication Critical patent/CN104579882A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a CAN (controller area network) and WiFi (wireless fidelity) data communication device and a communication method. The CAN and WiFi data communication device comprises a CAN receiving module for receiving equipment parameters in real time, a CAN data processing module for processing the equipment parameters received in real time, a storage module for storing the processed equipment parameters in real time according to a preset mode, a WiFi receiving module for receiving a terminal command, a WiFi data processing module for processing the terminal command and reading the corresponding equipment parameters according to the terminal command, and a WiFi transmitting module for transmitting the equipment parameters read by the WiFi data processing module. According to the CAN and WiFi data communication device and the communication method, data is received, processed and stored in real time; and when a WiFi terminal requires the corresponding equipment parameters, the equipment parameters are directly extracted from the storage module and sent, and the time for acquiring the equipment parameters and performing packaging does not need to be waited, so that the response speed can be effectively increased and the response time can be shortened.

Description

CAN and WiFi data communication apparatus and the means of communication
Technical field
The present invention relates to data communication field, in particular to a kind of CAN and WiFi data communication apparatus and the means of communication.
Background technology
The data processing equipment that CAN turns WiFi is used for transferring CAN data to WiFi data, also transfer WiFi data to CAN data simultaneously, thus complete the mutual communication of CAN and WiFi, wired to wireless information transmission in other words, thus realize WiFi terminal and control to the display of the parameter of equipment or to equipment.
In prior art, the connection diagram of equipment and terminal as illustrated in fig. 1 and 2.Shown in composition graphs 5 and 6, intact for CAN data packing normally passes by existing technology in WiFi, or the data in WiFi are unpacked remain untouched pass to CAN end.Especially when the equipment that equipment end connects is many, the transfer capability of WiFi is limited, and the response time caused is longer, experiences very poor.
Summary of the invention
The present invention aims to provide a kind of CAN and WiFi data communication apparatus and the means of communication that can improve response speed.
The invention provides a kind of CAN and WiFi data communication apparatus, comprising: CAN receiver module, real-time reception device parameter; CAN data processing module, the device parameter of process real-time reception; Memory module, by the device parameter after process according to predetermined manner real-time storage; WiFi receiver module, receiving terminal order; WiFi data processing module, processing terminal order, and read corresponding device parameter according to station command; WiFi sending module, sends the device parameter that WiFi data processing module reads.
Further, also comprise CAN sending module, for sending CAN data.
Further, memory module comprises renewal submodule, for the device parameter of up-to-date process correspondence is covered original equipment parameter.
Further, memory module comprises multiple memory block, and the device parameter corresponding stored of each equipment is in a memory block.
Further, WiFi data processing module comprises extraction submodule, for according to station command resolution data address information, and extracts corresponding device parameter according to data address information.
Present invention also offers a kind of CAN and WiFi data communication method, comprising: real-time reception device parameter; The device parameter of process real-time reception; By the device parameter after process according to predetermined manner real-time storage; Receiving terminal order; Processing terminal order, and read corresponding device parameter according to station command; Send the device parameter read.
Further, the device parameter after process is comprised according to predetermined manner real-time storage: the device parameter of up-to-date process correspondence is covered original equipment parameter.
Further, the device parameter after process is comprised according to predetermined manner real-time storage: by the device parameter corresponding stored of each equipment in a memory block.
Further, read corresponding device parameter according to station command and comprise: according to station command resolution data address information, and extract corresponding device parameter according to data address information.
According to CAN and WiFi data communication apparatus of the present invention and the means of communication, process by real-time reception data, store, when WiFi terminal needs corresponding device parameter, directly extract from memory module and send, no longer need the time waiting for collecting device parameter and packing process, thus effectively can improve response speed, reduce the reaction time.In addition, the present invention is owing to storing device parameter in a storage module, the device parameter of necessity is only needed to feed back to WiFi terminal, instead of all data in CAN are all packed be transferred to WiFi terminal, so the data volume of WiFi end transmission is little, the bandwidth taking WiFi is few, can improve response speed further.
Accompanying drawing explanation
The accompanying drawing forming a application's part is used to provide a further understanding of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
The network connection layout that Fig. 1 is equipment end when being single equipment;
The network connection layout that Fig. 2 is equipment end when being multiple equipment;
Fig. 3 is the transfer of data schematic diagram of CAN and WiFi data communication apparatus of the present invention;
Fig. 4 is data acquisition flow figure of the present invention;
Fig. 5 is the transfer of data schematic diagram of CAN and WiFi data communication apparatus of the prior art;
Fig. 6 is data acquisition flow figure of the prior art.
Embodiment
Below with reference to the accompanying drawings and describe the present invention in detail in conjunction with the embodiments.
As depicted in figs. 1 and 2, equipment and terminal generally have two kinds by CAN and WiFi data communication apparatus communication connected mode, man-to-man mode as shown in Figure 1, i.e. terminal, an equipment and a CAN and WiFi data communication apparatus; Or as shown in Figure 2, terminal, a CAN and WiFi data communication apparatus and a multiple equipment.
Described in composition graphs 3 and Fig. 4, according to CAN and WiFi data communication apparatus of the present invention, comprising: CAN receiver module, for real-time reception device parameter, i.e. the device parameter that sends of real-time reception equipment; CAN data processing module, the device parameter of process real-time reception; Memory module, by the device parameter after process according to predetermined manner real-time storage; WiFi receiver module, receiving terminal order; WiFi data processing module, processing terminal order, and read corresponding device parameter according to station command; WiFi sending module, sends the device parameter that WiFi data processing module reads.
The present invention is by real-time reception data and process, store, when WiFi terminal needs corresponding device parameter, directly extract from memory module and send, no longer needing the time waiting for collecting device parameter and packing process, thus effectively can improve response speed, reduce the reaction time.In addition, the present invention is owing to storing device parameter in a storage module, the device parameter of necessity is only needed to feed back to WiFi terminal, instead of by CAN so data are all packed be transferred to WiFi terminal, so the data volume of WiFi end transmission is little, the bandwidth taking WiFi is few, can improve response speed further.
Further, shown in composition graphs 3, CAN and WiFi data communication apparatus also comprises CAN sending module, sends CAN data for answering equipment or to equipment.
Preferably, memory module comprises renewal submodule, for the device parameter of up-to-date process correspondence is covered original equipment parameter, namely no matter how many device parameters are acquired, the up-to-date device data in capital upgrades the original device parameter preserved, only retain device parameter after upgrading, thus effectively reduce data volume, be convenient to search and extract.In addition, the data of up-to-date collection are directly covered former data, also can improve storage speed.
Preferably, conveniently store and search, by the device parameter partitioned storage of each equipment, namely memory module comprises multiple memory block, and the device parameter corresponding stored of each equipment is in a memory block.
Shown in composition graphs 3, WiFi data processing module comprises extraction submodule, extract submodule to be used for according to station command resolution data address information, and extract corresponding device parameter according to data address information, improve data extraction rate, also make WiFi sending module only send necessary device parameter, reduce volume of transmitted data, improve response speed.
Shown in composition graphs 4, present invention also offers the means of communication corresponding with aforesaid CAN and WiFi data communication apparatus, specifically comprise: real-time reception device parameter; The device parameter of process real-time reception; By the device parameter after process according to predetermined manner real-time storage; Receiving terminal order; Processing terminal order, and read corresponding device parameter according to station command; Send the device parameter read.
More specifically, composition graphs 4 is described for the parameter B obtaining equipment a.
After powering on, the acquisition device parameter that the CAN receiver module of CAN and WiFi data communication apparatus is real-time, and preserve up-to-date device parameter by equipment, when WiFi terminal needs the data of the parameter B of acquisition equipment a, only need following steps:
1, WiFi terminal sends order and informs that CAN and WiFi data communication apparatus needs the parameter B of equipment a;
2, CAN and WiFi data communication apparatus is by the order of WiFi receiver module receiving terminal, and resolves station command by WiFi data processing module;
3, at the parameter B of the total readout equipment a of memory module;
4, the parameter B of equipment a is issued WiFi terminal by WiFi
The link that whole process is not waited for, altogether through four processes, the time of each link is very short, thus effectively improves response speed.
In order to further illustrate the present invention, composition graphs 5 and Fig. 6 illustrate in prior art the mode of the parameter B obtaining equipment a.
In the prior art, after powering on, processing unit does not preserve data, obtains data, directly sent by WiFi from CAN, when WiFi terminal needs the data of the parameter B of acquisition equipment a, need through following steps, as shown in Figure 6:
1, parameter B is sent to CAN by waiting facilities a;
2, CAN and WiFi data communication apparatus collects the parameter B of equipment a by CAN acquisition module;
3, data packing;
4, wait for WiFi bus free, the parameter B of equipment a is sent by WiFi.
Although the link of process is also few in prior art, all there is wait in first link and four processes, can cause reaction time longer experience lf being influenced effect, and the time of wherein first link wait is mainly reflected in:
1) have multiple equipment in bus, equipment a will queue up transmission data, needs to wait for;
2) equipment a not necessarily can send out the data of parameter B out at short notice, needs to wait for;
3) equipment a sends the data of parameter B once make mistakes in certain link, again experiences again the wait of situation 1 and situation 2 possibly;
The time that four processes is waited for is embodied in:
1) data being sent to WiFi are many, need to queue up to send
2) because having little time to send, loss of data, needs the four processes again performed again above.
In sum, the response speed of CAN and WiFi data communication apparatus of the present invention and the means of communication is obviously better than prior art.
As can be seen from the above description, the above embodiments of the present invention achieve following technique effect:
According to CAN and WiFi data communication apparatus of the present invention and the means of communication, process by real-time reception data, store, when WiFi terminal needs corresponding device parameter, directly extract from memory module and send, no longer need the time waiting for collecting device parameter and packing process, thus effectively can improve response speed, reduce the reaction time.In addition, the present invention is owing to storing device parameter in a storage module, the device parameter of necessity is only needed to feed back to WiFi terminal, instead of by CAN so data are all packed be transferred to WiFi terminal, so the data volume of WiFi end transmission is little, the bandwidth taking WiFi is few, can improve response speed further.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. a CAN and WiFi data communication apparatus, is characterized in that, comprising:
CAN receiver module, real-time reception device parameter;
CAN data processing module, the described device parameter of process real-time reception;
Memory module, by the described device parameter after process according to predetermined manner real-time storage;
WiFi receiver module, receiving terminal order;
WiFi data processing module, processes described station command, and reads corresponding described device parameter according to described station command;
WiFi sending module, sends the described device parameter that described WiFi data processing module reads.
2. CAN and WiFi data communication apparatus according to claim 1, is characterized in that, also comprises CAN sending module, for sending CAN data.
3. CAN and WiFi data communication apparatus according to claim 1, is characterized in that,
Described memory module comprises renewal submodule, for the described device parameter correspondence of up-to-date process is covered former described device parameter.
4. CAN and WiFi data communication apparatus according to claim 1, is characterized in that,
Described memory module comprises multiple memory block, and the described device parameter corresponding stored of each equipment is in a described memory block.
5. CAN and WiFi data communication apparatus according to claim 1, is characterized in that,
Described WiFi data processing module comprises extraction submodule, for according to described station command resolution data address information, and extracts corresponding described device parameter according to described data address information.
6. a CAN and WiFi data communication method, is characterized in that, comprising:
Real-time reception device parameter;
The described device parameter of process real-time reception;
By the described device parameter after process according to predetermined manner real-time storage;
Receiving terminal order;
Process described station command, and read corresponding described device parameter according to described station command;
Send the described device parameter read.
7. CAN and WiFi data communication method according to claim 6, is characterized in that, is comprised by the described device parameter after process according to predetermined manner real-time storage: the described device parameter correspondence of up-to-date process is covered former described device parameter.
8. CAN and WiFi data communication method according to claim 6, is characterized in that, is comprised by the described device parameter after process: according to predetermined manner real-time storage by the described device parameter corresponding stored of each equipment in a memory block.
9. CAN and WiFi data communication method according to claim 6, is characterized in that,
Read corresponding described device parameter according to described station command to comprise: according to described station command resolution data address information, and extract corresponding described device parameter according to described data address information.
CN201410835018.3A 2014-12-26 2014-12-26 CAN (controller area network) and WiFi (wireless fidelity) data communication device and communication method Pending CN104579882A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410835018.3A CN104579882A (en) 2014-12-26 2014-12-26 CAN (controller area network) and WiFi (wireless fidelity) data communication device and communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410835018.3A CN104579882A (en) 2014-12-26 2014-12-26 CAN (controller area network) and WiFi (wireless fidelity) data communication device and communication method

Publications (1)

Publication Number Publication Date
CN104579882A true CN104579882A (en) 2015-04-29

Family

ID=53095136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410835018.3A Pending CN104579882A (en) 2014-12-26 2014-12-26 CAN (controller area network) and WiFi (wireless fidelity) data communication device and communication method

Country Status (1)

Country Link
CN (1) CN104579882A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391133A (en) * 2015-12-09 2016-03-09 奇瑞汽车股份有限公司 Automobile wireless charging system and control method therefor
CN109993955A (en) * 2019-03-27 2019-07-09 上海工程技术大学 A kind of General Aviation Flight data radio transmission apparatus based on G1000 system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103280090A (en) * 2013-06-21 2013-09-04 国家电网公司 Mobile acquisition control system and control method thereof
CN103809587A (en) * 2014-02-26 2014-05-21 安徽安凯汽车股份有限公司 Electric car automatic diagnostic system and method based on wireless network
CN103916418A (en) * 2012-12-31 2014-07-09 上海汽车集团股份有限公司 Wireless data transmission control method for vehicle remote monitoring system
CN104076752A (en) * 2013-03-28 2014-10-01 珠海格力电器股份有限公司 Monitoring method, device and equipment
CN204498146U (en) * 2014-12-26 2015-07-22 珠海格力电器股份有限公司 CAN and WiFi data communication apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916418A (en) * 2012-12-31 2014-07-09 上海汽车集团股份有限公司 Wireless data transmission control method for vehicle remote monitoring system
CN104076752A (en) * 2013-03-28 2014-10-01 珠海格力电器股份有限公司 Monitoring method, device and equipment
CN103280090A (en) * 2013-06-21 2013-09-04 国家电网公司 Mobile acquisition control system and control method thereof
CN103809587A (en) * 2014-02-26 2014-05-21 安徽安凯汽车股份有限公司 Electric car automatic diagnostic system and method based on wireless network
CN204498146U (en) * 2014-12-26 2015-07-22 珠海格力电器股份有限公司 CAN and WiFi data communication apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391133A (en) * 2015-12-09 2016-03-09 奇瑞汽车股份有限公司 Automobile wireless charging system and control method therefor
CN109993955A (en) * 2019-03-27 2019-07-09 上海工程技术大学 A kind of General Aviation Flight data radio transmission apparatus based on G1000 system
CN109993955B (en) * 2019-03-27 2020-11-20 上海工程技术大学 General aviation flight data wireless transmission equipment based on G1000 system

Similar Documents

Publication Publication Date Title
CN105260250B (en) A kind of dual system communication device of linux system and android system
US9706571B2 (en) Method, device and module device for transmitting data via Wifi
JP2013243723A5 (en)
CN103415062B (en) A kind of network connection device, wireless router and method for connecting network
CN103746938A (en) Method and device for transmitting data packet
CN104375484A (en) Distributed control system based on CAN open protocol
CN104579882A (en) CAN (controller area network) and WiFi (wireless fidelity) data communication device and communication method
CN104184834A (en) File transmission method and device and terminal
CN102780633A (en) Device and method for transmitting data based on CAPWAP (control and provisioning of wireless access points) protocol
EP2767915A3 (en) A communication method and a mobile telecommunication device for controlling a server of a telecommunication system
CN204498146U (en) CAN and WiFi data communication apparatus
CN206061023U (en) A kind of of the OTT set-top box with 4G networks and router feature
CN105871663B (en) Wireless ethernet network control method and wireless ethernet network system
CN103885910B (en) The method that many equipment carry out IIC communications under holotype
CN202374285U (en) Real-time data communication system employing programmable logic controller
CN106658388A (en) Bluetooth gateway
CN105182807B (en) A kind of data processing method of the data acquisition processing system based on 3G network
CN113949417B (en) Power grid data transmission method and device based on hybrid communication
CN101197778B (en) Data package transmission method, device and system
CN101415025B (en) Method, apparatus and system for processing network data
CN203775214U (en) Infrared gate unidirectional data transmission machine
CN107359961A (en) From apparatus control method
CN107870876B (en) The processing method and processing device of input/output signal for robot
CN104243436A (en) Service processing method, device and system
CN103873391A (en) Two-layer adapter selection system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150429