CN106657366B - A kind of hardware, server, client data exchange method - Google Patents

A kind of hardware, server, client data exchange method Download PDF

Info

Publication number
CN106657366B
CN106657366B CN201611264798.6A CN201611264798A CN106657366B CN 106657366 B CN106657366 B CN 106657366B CN 201611264798 A CN201611264798 A CN 201611264798A CN 106657366 B CN106657366 B CN 106657366B
Authority
CN
China
Prior art keywords
data
client
module
hardware
program
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.)
Active
Application number
CN201611264798.6A
Other languages
Chinese (zh)
Other versions
CN106657366A (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.)
Xian Datang Telecom Co Ltd
Original Assignee
Xian Datang Telecom Co Ltd
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 Xian Datang Telecom Co Ltd filed Critical Xian Datang Telecom Co Ltd
Priority to CN201611264798.6A priority Critical patent/CN106657366B/en
Publication of CN106657366A publication Critical patent/CN106657366A/en
Application granted granted Critical
Publication of CN106657366B publication Critical patent/CN106657366B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • G06F9/548Object oriented; Remote method invocation [RMI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of hardware, server, client data exchange methods, this method is directed to the dynamic link library of hardware platform using C language exploitation, C# function is converted by the non-managed function in DLL, pass through the WCF interface of C# invoking server, data are uploaded onto the server end, again by the notification technique of server end, client is sent a message to, realizes the data transmission from hardware platform to client.Method of the invention can meet to system to requirement of real-time, and be able to satisfy the problem of reducing client-side program complexity and difficulty.

Description

A kind of hardware, server, client data exchange method
Technical field
The invention belongs to fields of communication technology, are related to data interaction technology, especially a kind of hardware, server, client Data interactive method.
Background technique
WCF (Windows Communication Foundation) is a series of support data communications developed by Microsoft Application framework, can be translated as Windows communication development platform.
DLL (Dynamic Link Library) file is that dynamic link library file is also known as " application program expansion " soft Part file type.In Windows, many application programs are divided into the dynamic chain of some relatively independent realization specific functions Library, i.e. dll file are connect, is placed in system and forms a complete executable file with application program.
.NET (Microsoft XML Web services) platform.It is that Microsoft is used to realize XML, Web Services, The technology of SOA (Services Oriented Achitecture service-oriented architecture) and agility.He allows to apply Program by Internet carry out communication and shared data, but regardless of it is used be which kind of operating system, equipment or programming language Speech.Microsoft.NET platform offer creation XML Web services is simultaneously together required by these Services Integrations.To a The benefit of people user is seamless, attracting experience.
Converged communication refers to, computer technology is merged with conventional communication techniques the new traffic mode of one, fusion calculation Machine network and conventional communication networks in a network platform, realize phone, fax, data transmission, audio/video conference, in calling Numerous application services such as the heart, instant messaging.
Convergence communication has become the development trend of communication field now, and current convergence communication is mainly by audio and view Frequency combines, and forms the fusion of audio-video.But the fusion of single audio-video has gradually been unable to satisfy the demand of application, more next More equipment and function merges whole system, such as GPS, wireless location instrument, alarm sensor, temperature and humidity sensing Device etc..
The development of convergence communication increasingly develops to the direction of cloud computing, existing by mysorethorn, the concentrated collection of data, data Centrally stored, the concentrations of data forwarding.
The data access of these above-mentioned hardware devices, the transmission of data become a problem of system, acquire the data come It forwards and presents also to become to multiple client and need the problem of capturing.
Traditional data transfer mode from hardware realization data first by acquiring, and the database of server is arrived in storage, together When by TCP/IP and multiple client communication realize data transmission and present.But the problem of this mode, is that various hardware Development platform disunity, the interface provided also disunity, is that client will pass through multiple forms when hardware device gradually increases Interface realize data transmission and present.The design of client-side program and the exploitation of code can become increasingly complex.Influence its efficiency And stability.
Another kind can be by acquiring from hardware realization data, and the database of server is arrived in storage, and client passes through access The transmission of database realizing data and presentation.Although this mode solves the design and development difficulty of client code, but this Under the efficiency of mode is then relatively low, the equipment information collection relatively high to requirement of real-time is then unable to satisfy.
Summary of the invention
It is an object of the invention to overcome the above-mentioned prior art, a kind of hardware, server, client data are provided Exchange method.This method can meet to system to requirement of real-time, but be able to satisfy reduce client-side program complexity and The problem of difficulty.
The purpose of the present invention is achieved through the following technical solutions:
This hardware, server, client data exchange method are as follows: the dynamic of hardware platform is directed to using C language exploitation Chained library is converted into C# function by the non-managed function in DLL, and by the WCF interface of C# invoking server, data are uploaded to Server end, then client is sent a message to by server end, realize the data transmission from hardware platform to client.Tool Body are as follows:
Including hardware module, DLL module, interface module, server program, client-side program and database;
(1) hardware module realizes hardware data acquisition by DLL module, and DLL module is provided out the visit of hardware device data Function is asked for other module accesses data, the function in DLL module is converted to C# function by interface module, realizes data c program It is mutually transmitted with the data of C# program;The mutual transmitting of interface module realization data and server program;Server program according to Received data content stores data into database, while transmitting data to client journey according to data content and target Sequence, and data content is shown on client-side program;The DLL module and interface module constitute hardware platform and access program;
(2) interface module informs how DLL module is transmitted to interface module from hardware to DLL Module registers call back function The data that module obtains;The function of DLL module is called to issue configuration number to hardware module using no trustship mode from interface module According to and parameter, process 203 number of hardware module is periodically obtained by the timer cyclic access hardware module in DLL module According to;Data are sent to interface module by registered call back function after the data that DLL module gets hardware module;
(3) client-side program passes through the registered callbacks function of invoking server program, the client side list of server program Store the registration information and call back function of client;Interface module is called by WCF interface and is serviced after getting hardware data The function reported data of device program, server program after receiving the data, are operated by data loading, store data into data Library, then the client-side program to be notified is obtained from client side list, corresponding call back function is called, sends number to client According to;It completes to store transmission process to the data of client-side program again from hardware access platform program to server program.
Further, above-mentioned interface module converts the data into XML format, passes through SOA protocol realization data and server journey The mutual transmitting of sequence.
Further, above-mentioned server program uses the push technology of SOA according to data content and target, transmits data to Client-side program.
Further, the function in DLL module is converted to C# function by non-managed mode by above-mentioned interface module.
Further, the registration information of above-mentioned storage client is client identification code.
The invention has the following advantages:
The present invention utilize WCF call back function technology, server program is accurately known, hardware access program with Data upload accurately can be issued to relevant destination by the particular number and its destination address of client-side program.It improves The forward efficiency of system data.
For more collection points, the data access of multi-client, hardware access program uniformly sends collected data to Server program, centralized processing and analysis in the server, then have a target be sent to corresponding target, can effectively reduce The quantity of data transmission reduces requirement of the network to bandwidth and flow.
WCF technology is cross-platform a, cross operating system, the technology of cross-server.For disposing equipment in a network Compliance friendship is low, and the server requirement of developing instrument and deployment to exploitation program is lower, by XML transmission mode, just It can be realized the transmission of WCF data.Without the original exploitation habit of reprogramming person, the difficulty of program development is effectively reduced.
Relative to avoid the platform in data transmission procedure, operating system, the influence of the factors such as server, to use The form of database forwarding data.The present invention has unified the transformat of data by WCF, avoids the storage reading of data Process improves the timeliness and working efficiency of data transmission.
Detailed description of the invention
Fig. 1 is system data process figure of the invention;
Fig. 2 is that hardware platform of the present invention accesses program data process figure;
Fig. 3 is that hardware platform of the invention accesses program, server program, client-side program data flowchart.
Specific embodiment
Hardware of the invention, server, client data exchange method are as follows: using C language exploitation for hardware platform Dynamic link library is converted into C# function by the non-managed function in DLL, by the WCF interface of C# invoking server, in data Server end is passed to, then client is sent a message to by server end, realizes that the data from hardware platform to client pass It is defeated.
The invention will be described in further detail with reference to the accompanying drawing:
Fig. 1 is system data process figure, and hardware module 101 realizes hardware data acquisition, DLL module by DLL module 102 102, which are provided out hardware device data access function, supplies other module accesses data, and interface module 103 will by non-managed mode Function in DLL module 102 is converted to C# function, to realize that data c program and the data of C# program mutually transmit.Interface mould Block 103 converts the data into XML format, passes through the mutual transmitting of SOA protocol realization data and WCF service routine 104.WCF clothes Program of being engaged in data content based on the received, related data is stored to database 106, while being used according to data content and target The push technology of SOA transmits data to client-side program 105, and shows in related data on client-side program 105 Hold.Hardware platform access program is made of in Fig. 1 DLL module 102 and interface module 103.
Hardware module 101 of the invention is not limited to particular device, is primarily referred to as acquiring the program of data from hardware device Or module, such as positioning device acquisition location information, angular displacement acquisition angles data.
Fig. 2 is that hardware platform accesses program data process figure, and process 201 is registered from interface module 103 to DLL module 102 Call back function informs the data how DLL module 102 obtains to the transmitting of interface module 103 from hardware module 101.Process 202 by Interface module 103 calls the function of DLL module 102 to 101 down distributing configuration data of hardware module and parameter using no trustship mode, Process 203 periodically obtains the number of hardware module 101 by the timer cyclic access hardware module 101 in DLL module 102 According to.Process 204 is after the data that DLL module 102 gets hardware module 101, by registered call back function to interface mould Block 103 sends data
Fig. 3 is that hardware platform accesses program, server program, client-side program data flowchart, and client 301,302 is logical The registered callbacks function 303 and 304 of enlightening invoking server program 104 is crossed, the client side list 306 of server program 104 stores The registration information (client identification code) and call back function (callback) of client.Hardware platform accesses program and is getting firmly Number of packages is after, and by 308 reported data of function of WCF interface invoking server program 104, server program 104 is being received After data, by data loading operation 309, database 106 is stored data into, then obtain and to notify from client side list 306 Client-side program 301,302, call corresponding call back function 311,312, to client send data.It completes from hardware access Platform program arrives the data storage transmission process of client-side program to server program again.

Claims (4)

1. a kind of hardware, server, client data exchange method, which is characterized in that including hardware module (101), DLL module (102), interface module (103), server program (104), client-side program (105) and database (106);
Exchange method is directed to the dynamic link library of hardware platform using C language exploitation, by converting the non-managed function in DLL At C# function, development platform WCF interface is communicated by the Windows of C# invoking server, data are uploaded onto the server end, then are led to It crosses server end and sends a message to client, realize the data transmission from hardware platform to client;
(1) hardware module (101) realizes hardware data acquisition by DLL module (102), and DLL module (102) is provided out hardware Device data access function supplies other module accesses data, and interface module (103) use is without trustship mode by DLL module (102) In function be converted to C# function, the data of the data for realizing c program and C# program are mutually transmitted;Interface module (103) is realized The mutual transmitting of data and server program (104);Server program (104) data content based on the received, data are stored Client-side program (105) are transmitted data to database (106), while according to data content and target, and in client journey Sequence shows data content on (105);The DLL module (102) and interface module (103) constitute hardware platform and access program;
(2) interface module (103) is to DLL module (102) registered callbacks function, informs DLL module (102) how to interface module (103) data obtained from hardware module (101) are transmitted;DLL module is called without trustship mode by interface module (103) use (102) function is to hardware module (101) down distributing configuration data and parameter, by the timer cyclic access in DLL module (102) Hardware module (101) periodically obtains the data of hardware module (101);Hardware module is got in DLL module (102) (101) data are sent to interface module (103) by registered call back function after data;
(3) client-side program (105) is used for the registered callbacks function of invoking server program (104), server program (104) The registration information and call back function of client side list (306) storage client;Interface module (103) is getting hardware data Afterwards, by the function reported data of WCF interface invoking server program (104), server program (104) is receiving data Afterwards, it operates, stores data into database (106) by data loading, then obtain the visitor to be notified from client side list (306) Family end program (105), calls corresponding call back function, sends data to client;Complete to access program from hardware platform to clothes Business device program arrives the data storage transmission process of client-side program again.
2. hardware according to claim 1, server, client data exchange method, which is characterized in that the interface mould Block (103) converts the data into XML format, passes through Services Oriented Achitecture SOA protocol realization data and server program (104) mutual transmitting.
3. hardware according to claim 1, server, client data exchange method, which is characterized in that the server Program (104) uses the push technology of service-oriented architecture SOA according to data content and target, transmits data to visitor Family end program (105).
4. hardware according to claim 1, server, client data exchange method, which is characterized in that the client Registration information be client identification code.
CN201611264798.6A 2016-12-30 2016-12-30 A kind of hardware, server, client data exchange method Active CN106657366B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611264798.6A CN106657366B (en) 2016-12-30 2016-12-30 A kind of hardware, server, client data exchange method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611264798.6A CN106657366B (en) 2016-12-30 2016-12-30 A kind of hardware, server, client data exchange method

Publications (2)

Publication Number Publication Date
CN106657366A CN106657366A (en) 2017-05-10
CN106657366B true CN106657366B (en) 2019-11-19

Family

ID=58838460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611264798.6A Active CN106657366B (en) 2016-12-30 2016-12-30 A kind of hardware, server, client data exchange method

Country Status (1)

Country Link
CN (1) CN106657366B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1739553A2 (en) * 2005-07-01 2007-01-03 Agilent Technologies Inc Dynamic mapping of shared libraries
CN102130953A (en) * 2011-03-16 2011-07-20 迈普通信技术股份有限公司 Embedded web system and interactive method
CN103763396A (en) * 2014-02-12 2014-04-30 浙江大学 Energy consumption data acquisition unit and method based on multi-protocol parallel acquisition technology
CN104486382A (en) * 2014-11-27 2015-04-01 珠海格力电器股份有限公司 Method and system for creating WCF (Windows Communication Foundation) duplex communication service

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1739553A2 (en) * 2005-07-01 2007-01-03 Agilent Technologies Inc Dynamic mapping of shared libraries
CN102130953A (en) * 2011-03-16 2011-07-20 迈普通信技术股份有限公司 Embedded web system and interactive method
CN103763396A (en) * 2014-02-12 2014-04-30 浙江大学 Energy consumption data acquisition unit and method based on multi-protocol parallel acquisition technology
CN104486382A (en) * 2014-11-27 2015-04-01 珠海格力电器股份有限公司 Method and system for creating WCF (Windows Communication Foundation) duplex communication service

Also Published As

Publication number Publication date
CN106657366A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
Cheng et al. FogFlow: Easy programming of IoT services over cloud and edges for smart cities
AU2007286155B2 (en) Distributing services in graph-based computations
CN108471366A (en) A kind of stereoscopic monitoring system of facing cloud native applications
CN101848235B (en) Real-time multimedia data P2P transmission scheme for supporting NAT traversal
CN105429858A (en) Real-time message transmission method among multiple robots
Bouloukakis et al. Automated synthesis of mediators for middleware-layer protocol interoperability in the IoT
CN101960822A (en) SIP-HTTP application correlator
CN105721512A (en) Remote process calling system and method thereof
KR101602099B1 (en) System for Service inter-working based REST in Internet of Things and Method thereof
CN102520936A (en) Method for realizing sharing of Socket communication service on Android platform
Azzara et al. Middleware solutions in WSN: The IoT oriented approach in the ICSI project
CN108206864B (en) Vehicle information synchronization real-time query system and information synchronization method based on WeChat
CN109753370A (en) A kind of low time delay, the high remote procedure calling (PRC) method handled up
KR20180105917A (en) Flexible wearable platform systems and methods for wearable data provision and intelligent wearable information services using MQTT protocols
CN102984272B (en) A kind of system of remote control mobile terminal communication capacity and method thereof
CN106657366B (en) A kind of hardware, server, client data exchange method
CN110297442B (en) WebSocket-based discussion process control system and method
JP2019125068A (en) Device cooperation server and device cooperation program and decentralized resource utilization system
CN104955153A (en) Method, device and appliances for discovering resources
US11824911B2 (en) Flexible upstream/downstream support for network-based media processing pipelines
CN103546508B (en) Information synchronization system and method
JP2011198343A (en) Method of controlling service connection in a plurality of service node servers, control node server and program
Veeramanikandan et al. Publish/subscribe broker based architecture for fog computing
CN104618517B (en) A kind of method, system and device of PUSH message
White et al. Addressing the challenges of http-based mobile/cloud interaction

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant