CN108964840A - Data transmission method, equipment and computer readable storage medium - Google Patents
Data transmission method, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN108964840A CN108964840A CN201810680262.5A CN201810680262A CN108964840A CN 108964840 A CN108964840 A CN 108964840A CN 201810680262 A CN201810680262 A CN 201810680262A CN 108964840 A CN108964840 A CN 108964840A
- Authority
- CN
- China
- Prior art keywords
- data
- data frame
- address
- equipment
- terminal
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0078—Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
- H04L1/0083—Formatting with frames or packets; Protocol or part of protocol for error control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/06—Message adaptation to terminal or network requirements
- H04L51/066—Format adaptation, e.g. format conversion or compression
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/18—Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals
Abstract
The invention discloses a kind of data transmission method, equipment and computer readable storage mediums, this method comprises: obtaining the first data frame based on the first agreement that ward equipment is sent;The address of call data and terminal is extracted from the first data frame, terminal supports second protocol;Obtain the address of ward equipment;Call data are added in the second data frame based on second protocol, and the address of transmitting side marking and ward equipment is added in the preset field in the second data frame;According to the address of terminal, the second data frame is sent to terminal.According to the technique and scheme of the present invention, after receiving the call data based on the first agreement, it is converted into the call data based on second protocol and issuer mark and ward device address is added, the format is equivalent to the format that ward equipment directly sends the call data based on second protocol to terminal, it can be seen that through the invention, so that supporting that the ward equipment of the first agreement can also be with the terminal normal communication of support second protocol.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of data transmission methods, equipment and computer-readable storage
Medium.
Background technique
Now, many hospitals use wifi aware (wifi perception) technology.Wifi aware is not necessarily to network connection
Communication can be established, it is possible to provide accurately position, the information bidirectional of low capacity is supported to communicate.It is particularly suitable for indoor, crowded ring
Border and emergency.Scene: for entourage in nurse patient, there is abnormal sign in patient, needs nurse call,
There is following situations: 1, nurse, not in nurse station, it is not known that in which ward, do not get in touch with nurse.2, it is exhaled by calling set
It is nurse, does not receive response, it is very worried in waiting process, it is not known that whether to have cried out nurse next.3, nurse reaches, and also to examine
Various signs are looked into, nurse comes to worry, will not be with instrument of needs, such as clinical thermometer etc..
But the equipment component time limit of hospital is impossible have newest technology wifi aware more long, may only be propped up
Wifi or bluetooth are held, therefore the terminal based on wifi aware technology that how to allow medical staff uses and does not support wifi
The equipment of aware technology is communicated, and problem to be solved is just become.
Summary of the invention
It is a primary object of the present invention to propose a kind of data transmission method, equipment and computer readable storage medium, purport
Making normal communication between the terminal based on different communication technology and ward equipment.
To achieve the above object, the present invention provides a kind of data transmission methods, comprising: obtains the base that ward equipment is sent
In the first data frame of the first agreement;The address of call data and terminal, the terminal are extracted from first data frame
Support second protocol;Obtain the address of the ward equipment;In the second data frame based on the second protocol described in addition
Call data, and addition transmitting side marking and the ground of the ward equipment in the preset field in second data frame
Location;According to the address of the terminal, second data frame is sent to the terminal.
To achieve the above object, the present invention provides a kind of data transmission set, the data transmission set includes processing
Device, memory, communication bus;The communication bus is for realizing the communication between the processor and the memory;It is described
Processor is for executing the data distributing program stored in memory, to perform the steps of the base for obtaining ward equipment and sending
In the first data frame of the first agreement;The address of call data and terminal, the terminal are extracted from first data frame
Support second protocol;Obtain the address of the ward equipment;In the second data frame based on the second protocol described in addition
Call data, and addition transmitting side marking and the ground of the ward equipment in the preset field in second data frame
Location;According to the address of the terminal, second data frame is sent to the terminal.
To achieve the above object, the present invention provides a kind of computer readable storage medium, the computer-readable storages
Media storage has one or more program, and one or more of programs can be executed by one or more processor, with
The step of realizing data transmission method above-mentioned.
According to above technical scheme, it is known that data transmission method, equipment and computer readable storage medium of the invention is extremely
It has the advantage that less
According to the technique and scheme of the present invention, since the address of the ward equipment for second protocol is necessary, so
After receiving the call data based on the first agreement, it is converted into the call data based on second protocol and issuer is added
Mark and ward device address, the format are equivalent to ward equipment and directly send the call data based on second protocol to terminal
Format, it is seen that according to the technical solution of the present invention, so that supporting that the ward equipment of the first agreement can also be with support second protocol
Terminal normal communication.
Detailed description of the invention
The hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart according to the data transmission method of one embodiment of the present of invention;
Fig. 4 is the flow chart according to the data transmission method of one embodiment of the present of invention;
Fig. 5 is the schematic diagram according to the data transmission method of one embodiment of the present of invention;
Fig. 6 is the block diagram according to the data transmission set of one embodiment of the present of invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a distinctive meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move
The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram,
Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the peculiar function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
As shown in figure 3, a kind of data transmission method is provided in one embodiment of the present of invention, this method comprises:
Step S310 obtains the first data frame based on the first agreement that ward equipment is sent.
The technical solution of the present embodiment can be realized in gateway.In the present embodiment, to the type of the first agreement without
Limitation, for example, the first agreement can be bluetooth or wifi agreement.
Step S320, extracts the address of call data and terminal from the first data frame, and terminal supports second protocol.
In the present embodiment, the content of call data is not limited, generally, call data react the body of patient
Sign, medical history etc. information.In the present embodiment, terminal is held by medical staff, and call data are sent to terminal by ward equipment,
Medical staff can take necessary measure after checking call data.In the present embodiment, to the type of second protocol without
Limitation, for example, second protocol can be wifi aware agreement.
Step S330 obtains the address of ward equipment.
In the present embodiment, the address of ward equipment typically refers to mac (physical address).
Step S340 adds call data in the second data frame based on second protocol, and in the second data frame
Preset field in the address of transmitting side marking and ward equipment is added.
In the present embodiment, by taking wifi aware as an example, the address of issuer must be included in the data frame under the agreement.
Since ward equipment does not support wifi aware, so can only be by gateway forwards, gateway does not add in the forwarding data at this time
Enter the address of itself, but the address of ward equipment is added to be realized that is, ward equipment sends the data directly to terminal
Communication between ward equipment and terminal.
Second data frame is sent to terminal according to the address of terminal by step S350.
According to the technical solution of the present embodiment, since the address of the ward equipment for second protocol is necessary, institute
After receiving the call data based on the first agreement, to be converted into the call data based on second protocol and granting be added
Side's mark and ward device address, the format are equivalent to ward equipment and directly send the call data based on second protocol to terminal
Format, it is seen that according to the technical solution of the present invention so that support the first agreement ward equipment can also be assisted with support second
The terminal normal communication of view.
As shown in figure 4, a kind of data transmission method is provided in one embodiment of the present of invention, this method comprises:
Step S410 obtains the first data frame based on the first agreement that ward equipment is sent.
Step S420, extracts the address of call data and terminal from the first data frame, and terminal supports second protocol.
Step S430 extracts the information for identifying ward equipment, by information searching ward equipment from the equipment of ward
Address.
In the present embodiment, since the data that ward equipment is sent may be comprising the information of reaction ward equipment, for example, can
Can be ward equipment model perhaps number then according to the model of ward equipment or number with can finding ward equipment
Location.
Step S440 adds call data in the second data frame based on second protocol, and in the second data frame
Preset field in the address of transmitting side marking and ward equipment is added.
Step S450 is repeated to send the second data frame to terminal by first time interval according to the address of terminal, until receiving
To the notice for having received the second data frame of terminal.
In the present embodiment, since the call data of ward equipment sending are often very urgent, so being necessary to ensure that calling
Data can be sent in the terminal of medical staff, take the mode for repeating to send at timed intervals.
Step S460 obtains the third data frame based on second protocol that terminal is sent.
Step S470 extracts the transmitting side marking in reply data, and identification third data frame from third data frame,
And the address of ward equipment is extracted from third data frame according to transmitting side marking.
Step S480, check in reply data whether include preset kind response content, comprising pre- in reply data
If adding reply data in the 4th data frame when the response content of type based on the first agreement.
In the present embodiment, it is issued due to reply data by the terminal that medical staff holds, so wherein needing comprising doctor
The key message that shield personnel must indicate, for example, the position etc. for going to medical staff's information, the hospital personnel in ward current.
If above- mentioned information are imperfect, gateway does not send data to ward equipment, in order to avoid patient is adversely affected.
In the present embodiment, due to ward equipment receive data be not required to will good sender address, so directly by answer number
According to being sent to ward equipment.By taking wifi aware technology as an example, terminal is based on the agreement and sends data, and after gateway receives
Response content therein is only sent to ward equipment, realizes the communication between ward equipment and terminal.
Step S490 is repeated to send the second data frame to terminal by first time interval, directly according to the address of ward equipment
To the notice for having received the second data frame for receiving terminal.
In the present embodiment, since the reply data of terminal sending is often very urgent, so being necessary to ensure that reply data
It can be sent to ward equipment, take the mode for repeating to send at timed intervals.
One specific example of the present embodiment is as shown in figure 5, WIFI Aware is (NAN) agreement, Wifi aware equipment
Between can only be communicated with the terminal of the agreement is supported, but gateway group tri- kinds of bluetooth, wifi, wifi aware cluster tools
Network, in some instances it may even be possible to there are also the agreements such as agreement, such as NFC of other support, thus when wifi aware equipment want with
Wifi equipment realizes communication, then needs through a gateway.
There are some null fields customized for application in NAN agreement.Assuming that our new content sub ID in a data frame
It is 3, for identifying the practical address mac for indicating sender in network, eventually as the exclusive evidence of across a network interaction.
When including the field in the frame that gateway receives, then the data content of the frame will be forwarded to the field identification
It obtains on destination address, if illustrating that the field does not have to forwarding without this field
Fig. 5 is an interaction flow of across a network interaction:
S1 is the data that tradition wlan equipment is sent to network, uses the wlan protocol frame on basis, and in data frame
Other modes indicate the address purpose mac.
S2 interacts the wifi aware frame type that the data content of the S1 received is converted to S2 for gateway, and
Increase the field that subID is 3 in NAN Attribute to be used to indicate actual sender, the i.e. MAC Address of wlan equipment.
S3 is the frame that WIFI aware replies to gateway, including the data content of reply, and safe filling as former state
The field that subID is 3, the equipment that its distribution is determined according to the content of the field convenient for network.
S4 is after gateway receives S3, to be resolved to particular content and convert it to wlan protocol frame, and transfer it to
Sub ID is the address mac of 3 field identifications.
As shown in fig. 6, providing a kind of data transmission set in one embodiment of the present of invention, data transmission set includes
Processor 610, memory 620, communication bus 630;
Communication bus 630 is for realizing the communication between processor 610 and memory 620;
Processor 610 is for executing the data distributing program stored in memory 620, to perform the steps of
Obtain the first data frame based on the first agreement that ward equipment is sent.
The equipment of the present embodiment can be gateway.In the present embodiment, the type of the first agreement is not limited, example
Such as, the first agreement can be bluetooth or wifi agreement.
The address of call data and terminal is extracted from the first data frame, terminal supports second protocol.
In the present embodiment, the content of call data is not limited, generally, call data react the body of patient
Sign, medical history etc. information.In the present embodiment, terminal is held by medical staff, and call data are sent to terminal by ward equipment,
Medical staff can take necessary measure after checking call data.In the present embodiment, to the type of second protocol without
Limitation, for example, second protocol can be wifi aware agreement.
Obtain the address of ward equipment.
In the present embodiment, the address of ward equipment typically refers to mac (physical address).
Call data, and the preset field in the second data frame are added in the second data frame based on second protocol
The middle address that transmitting side marking and ward equipment is added.
In the present embodiment, by taking wifi aware as an example, the address of issuer must be included in the data frame under the agreement.
Since ward equipment does not support wifi aware, so can only be by gateway forwards, gateway does not add in the forwarding data at this time
Enter the address of itself, but the address of ward equipment is added to be realized that is, ward equipment sends the data directly to terminal
Communication between ward equipment and terminal.
According to the address of terminal, the second data frame is sent to terminal.
According to the technical solution of the present embodiment, since the address of the ward equipment for second protocol is necessary, institute
After receiving the call data based on the first agreement, to be converted into the call data based on second protocol and granting be added
Side's mark and ward device address, the format are equivalent to ward equipment and directly send the call data based on second protocol to terminal
Format, it is seen that according to the technical solution of the present invention so that support the first agreement ward equipment can also be assisted with support second
The terminal normal communication of view.
As shown in fig. 6, providing a kind of data transmission set in one embodiment of the present of invention, data transmission set includes
Processor 610, memory 620, communication bus 630;
Communication bus 630 is for realizing the communication between processor 610 and memory 620;
Processor 610 is for executing the data distributing program stored in memory 620, to perform the steps of
Obtain the first data frame based on the first agreement that ward equipment is sent.
The address of call data and terminal is extracted from the first data frame, terminal supports second protocol.
The information for identifying ward equipment is extracted from the equipment of ward, by the address of information searching ward equipment.
In the present embodiment, since the data that ward equipment is sent may be comprising the information of reaction ward equipment, for example, can
Can be ward equipment model perhaps number then according to the model of ward equipment or number with can finding ward equipment
Location.
Call data, and the preset field in the second data frame are added in the second data frame based on second protocol
The middle address that transmitting side marking and ward equipment is added.
According to the address of terminal, repeat to send the second data frame to terminal by first time interval, until receiving terminal
The notice of the second data frame is received.
In the present embodiment, since the call data of ward equipment sending are often very urgent, so being necessary to ensure that calling
Data can be sent in the terminal of medical staff, take the mode for repeating to send at timed intervals.
Obtain the third data frame based on second protocol that terminal is sent.
The transmitting side marking in reply data, and identification third data frame is extracted from third data frame, and according to hair
The side's of sending mark extracts the address of ward equipment from third data frame.
Check in reply data whether include preset kind response content, being answered in reply data comprising preset kind
Reply data is added in the 4th data frame when answering content based on the first agreement.
In the present embodiment, it is issued due to reply data by the terminal that medical staff holds, so wherein needing comprising doctor
The key message that shield personnel must indicate, for example, the position etc. for going to medical staff's information, the hospital personnel in ward current.
If above- mentioned information are imperfect, gateway does not send data to ward equipment, in order to avoid patient is adversely affected.
In the present embodiment, due to ward equipment receive data be not required to will good sender address, so directly by answer number
According to being sent to ward equipment.By taking wifi aware technology as an example, terminal is based on the agreement and sends data, and after gateway receives
Response content therein is only sent to ward equipment, realizes the communication between ward equipment and terminal.
According to the address of ward equipment, repeat to send the second data frame to terminal by first time interval, until receiving end
The notice for having received the second data frame at end.
In the present embodiment, since the reply data of terminal sending is often very urgent, so being necessary to ensure that reply data
It can be sent to ward equipment, take the mode for repeating to send at timed intervals.
One specific example of the present embodiment is as shown in figure 5, WIFI Aware is (NAN) agreement, Wifi aware equipment
Between can only be communicated with the terminal of the agreement is supported, but gateway group tri- kinds of bluetooth, wifi, wifi aware cluster tools
Network, in some instances it may even be possible to there are also the agreements such as agreement, such as NFC of other support, thus when wifi aware equipment want with
Wifi equipment realizes communication, then needs through a gateway.
There are some null fields customized for application in NAN agreement.Assuming that our new content sub ID in a data frame
It is 3, for identifying the practical address mac for indicating sender in network, eventually as the exclusive evidence of across a network interaction.
When including the field in the frame that gateway receives, then the data content of the frame will be forwarded to the field identification
It obtains on destination address, if illustrating that the field does not have to forwarding without this field
Fig. 5 is an interaction flow of across a network interaction:
S1 is the data that tradition wlan equipment is sent to network, uses the wlan protocol frame on basis, and in data frame
Other modes indicate the address purpose mac.
S2 interacts the wifi aware frame type that the data content of the S1 received is converted to S2 for gateway, and
Increase the field that subID is 3 in NAN Attribute to be used to indicate actual sender, the i.e. MAC Address of wlan equipment.
S3 is the frame that WIFI aware replies to gateway, including the data content of reply, and safe filling as former state
The field that subID is 3, the equipment that its distribution is determined according to the content of the field convenient for network.
S4 is after gateway receives S3, to be resolved to particular content and convert it to wlan protocol frame, and transfer it to
Sub ID is the address mac of 3 field identifications.
A kind of computer readable storage medium, computer-readable storage medium have been also provided in one embodiment of the present of invention
Matter is stored with one or more program, one or more program can be executed by one or more processor, with realize with
Lower step:
Obtain the first data frame based on the first agreement that ward equipment is sent.
The equipment of the present embodiment can be gateway.In the present embodiment, the type of the first agreement is not limited, example
Such as, the first agreement can be bluetooth or wifi agreement.
The address of call data and terminal is extracted from the first data frame, terminal supports second protocol.
In the present embodiment, the content of call data is not limited, generally, call data react the body of patient
Sign, medical history etc. information.In the present embodiment, terminal is held by medical staff, and call data are sent to terminal by ward equipment,
Medical staff can take necessary measure after checking call data.In the present embodiment, to the type of second protocol without
Limitation, for example, second protocol can be wifi aware agreement.
Obtain the address of ward equipment.
In the present embodiment, the address of ward equipment typically refers to mac (physical address).
Call data, and the preset field in the second data frame are added in the second data frame based on second protocol
The middle address that transmitting side marking and ward equipment is added.
In the present embodiment, by taking wifi aware as an example, the address of issuer must be included in the data frame under the agreement.
Since ward equipment does not support wifi aware, so can only be by gateway forwards, gateway does not add in the forwarding data at this time
Enter the address of itself, but the address of ward equipment is added to be realized that is, ward equipment sends the data directly to terminal
Communication between ward equipment and terminal.
According to the address of terminal, the second data frame is sent to terminal.
According to the technical solution of the present embodiment, since the address of the ward equipment for second protocol is necessary, institute
After receiving the call data based on the first agreement, to be converted into the call data based on second protocol and granting be added
Side's mark and ward device address, the format are equivalent to ward equipment and directly send the call data based on second protocol to terminal
Format, it is seen that according to the technical solution of the present invention so that support the first agreement ward equipment can also be assisted with support second
The terminal normal communication of view.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (10)
1. a kind of data transmission method characterized by comprising
Obtain the first data frame based on the first agreement that ward equipment is sent;
The address of call data and terminal is extracted from first data frame, the terminal supports second protocol;
Obtain the address of the ward equipment;
The call data are added in the second data frame based on the second protocol, and in second data frame
The address of transmitting side marking and the ward equipment is added in preset field;
According to the address of the terminal, second data frame is sent to the terminal.
2. the method according to claim 1, wherein further include:
Obtain the third data frame based on the second protocol that the terminal is sent;
The described sender mark in reply data, and the identification third data frame is extracted from the third data frame,
And the address of the ward equipment is extracted from the third data frame according to described sender mark;
The reply data is added in the 4th data frame based on first agreement;
According to the address of the ward equipment, the 4th data frame is sent to the ward equipment.
3. according to the method described in claim 2, it is characterized in that, described in the 4th data frame based on first agreement
Before adding the reply data, further includes:
Check in the reply data whether include preset kind response content, comprising described default in the reply data
The reply data is added in the 4th data frame based on first agreement described in executing when the response content of type.
4. the method according to claim 1, wherein the address for obtaining the ward equipment, comprising:
The information for identifying the ward equipment is extracted from the ward equipment, by ward equipment described in the information searching
Address.
5. the method according to claim 1, wherein described be sent to the terminal for second data frame,
Include:
It repeats to send second data frame to the terminal by first time interval, until receiving the institute of reception of the terminal
State the notice of the second data frame;
It is described that 4th data frame is sent to the ward equipment, comprising:
It repeats to send the 4th data frame to the ward equipment by the second time interval, until receiving the ward equipment
The notice of the 4th data frame is received.
6. a kind of data transmission set, which is characterized in that the data transmission set includes processor, memory, communication bus;
The communication bus is for realizing the communication between the processor and the memory;
The processor is for executing the data distributing program stored in memory, to perform the steps of
Obtain the first data frame based on the first agreement that ward equipment is sent;
The address of call data and terminal is extracted from first data frame, the terminal supports second protocol;
Obtain the address of the ward equipment;
The call data are added in the second data frame based on the second protocol, and in second data frame
The address of transmitting side marking and the ward equipment is added in preset field;
According to the address of the terminal, second data frame is sent to the terminal.
7. equipment according to claim 6, which is characterized in that the processor is also used to execute the data transmission journey
Sequence, to perform the steps of
Obtain the third data frame based on the second protocol that the terminal is sent;
The described sender mark in reply data, and the identification third data frame is extracted from the third data frame,
And the address of the ward equipment is extracted from the third data frame according to described sender mark;
The reply data is added in the 4th data frame based on first agreement;
According to the address of the ward equipment, the 4th data frame is sent to the ward equipment.
8. equipment according to claim 7, which is characterized in that described in the 4th data frame based on first agreement
Before adding the reply data, the processor is also used to execute the data distributing program, to perform the steps of
Check in the reply data whether include preset kind response content, comprising described default in the reply data
The reply data is added in the 4th data frame based on first agreement described in executing when the response content of type.
9. equipment according to claim 6, which is characterized in that in the address for obtaining the ward equipment, the place
It manages device and executes the data distributing program, to perform the steps of
The information for identifying the ward equipment is extracted from the ward equipment, by ward equipment described in the information searching
Address.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or
Multiple programs, one or more of programs can be executed by one or more processor, to realize in claim 1 to 5
The step of described in any item data transmission methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810680262.5A CN108964840B (en) | 2018-06-27 | 2018-06-27 | Data transmission method, device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810680262.5A CN108964840B (en) | 2018-06-27 | 2018-06-27 | Data transmission method, device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108964840A true CN108964840A (en) | 2018-12-07 |
CN108964840B CN108964840B (en) | 2022-07-19 |
Family
ID=64487283
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810680262.5A Active CN108964840B (en) | 2018-06-27 | 2018-06-27 | Data transmission method, device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108964840B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020196781A1 (en) * | 1999-12-02 | 2002-12-26 | Heikki Salovuori | Call routing in a telecommunication system |
US20040044792A1 (en) * | 2002-09-03 | 2004-03-04 | Timberlake Holdings | Data translation architecture |
WO2008145901A1 (en) * | 2007-04-24 | 2008-12-04 | France Telecom | Method and device for interfacing between the udp or tcp and sctp protocols |
CN101977192A (en) * | 2010-10-21 | 2011-02-16 | 大连理工大学 | Family medical insurance gateway device and protocol conversion method |
CN102377632A (en) * | 2010-08-06 | 2012-03-14 | 北京乾唐视联网络科技有限公司 | Method and system compatible with Ethernet |
US20130195109A1 (en) * | 2011-08-22 | 2013-08-01 | Keiko Ogawa | Network gateway apparatus |
US20160295383A1 (en) * | 2013-10-25 | 2016-10-06 | Zte Corporation | M2m-based information processing method and m2m service platform |
CN108063741A (en) * | 2016-11-07 | 2018-05-22 | 北京视联动力国际信息技术有限公司 | A kind of transport protocol conversion method and apparatus |
-
2018
- 2018-06-27 CN CN201810680262.5A patent/CN108964840B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020196781A1 (en) * | 1999-12-02 | 2002-12-26 | Heikki Salovuori | Call routing in a telecommunication system |
US20040044792A1 (en) * | 2002-09-03 | 2004-03-04 | Timberlake Holdings | Data translation architecture |
WO2008145901A1 (en) * | 2007-04-24 | 2008-12-04 | France Telecom | Method and device for interfacing between the udp or tcp and sctp protocols |
CN102377632A (en) * | 2010-08-06 | 2012-03-14 | 北京乾唐视联网络科技有限公司 | Method and system compatible with Ethernet |
CN101977192A (en) * | 2010-10-21 | 2011-02-16 | 大连理工大学 | Family medical insurance gateway device and protocol conversion method |
US20130195109A1 (en) * | 2011-08-22 | 2013-08-01 | Keiko Ogawa | Network gateway apparatus |
US20160295383A1 (en) * | 2013-10-25 | 2016-10-06 | Zte Corporation | M2m-based information processing method and m2m service platform |
CN108063741A (en) * | 2016-11-07 | 2018-05-22 | 北京视联动力国际信息技术有限公司 | A kind of transport protocol conversion method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN108964840B (en) | 2022-07-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108924364A (en) | Message prompt method, mobile terminal and computer readable storage medium | |
CN108768775A (en) | Information processing method, electronic equipment and computer storage media | |
CN108566484A (en) | Message treatment method, terminal device and computer readable storage medium | |
CN110180181A (en) | Screenshot method, device and the computer readable storage medium of Wonderful time video | |
CN108917765A (en) | A kind of indoor navigation method, server and mobile terminal | |
CN109462700A (en) | A kind of call method, mobile terminal and computer readable storage medium | |
CN109151216A (en) | Using starting method, mobile terminal, server and computer readable storage medium | |
CN108829302A (en) | A kind of interaction regulation method, equipment and computer readable storage medium | |
CN109428923A (en) | Information push method, server, terminal and computer readable storage medium | |
CN110401806A (en) | A kind of video call method of mobile terminal, mobile terminal and storage medium | |
CN109618377A (en) | Call processing method, terminal, network side apparatus and computer readable storage medium | |
CN109445660A (en) | A kind of wearable device control method, mobile terminal and wearable device | |
CN108966162A (en) | Data communications method, communication processing equipment, terminal and readable storage medium storing program for executing | |
CN108900503A (en) | Data communications method, communication processing equipment, terminal and readable storage medium storing program for executing | |
CN109068084A (en) | Video calling picture display process, mobile terminal and computer readable storage medium | |
CN109101301A (en) | A kind of display control method, mobile terminal and computer readable storage medium | |
CN108879117A (en) | Mobile terminal and its antenna structure | |
CN109451438A (en) | A kind of finding method of intelligent terminal, intelligent terminal and storage medium | |
CN109089258A (en) | ESIM card operating method, mobile terminal and eSIM card apparatus | |
CN108833686A (en) | Processing method for paging message, terminal device, network side equipment and storage medium | |
CN108964840A (en) | Data transmission method, equipment and computer readable storage medium | |
CN110324488A (en) | A kind of contact information display methods, terminal and computer readable storage medium | |
CN110069291A (en) | A kind of display control method, mobile terminal and computer readable storage medium | |
CN109379719A (en) | A kind of application program broadcast processing method, equipment and computer readable storage medium | |
CN109495948A (en) | A kind of communication connecting method, equipment and computer readable storage medium |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20220628 Address after: 050000 room 3005, 30 / F, Ximei Wuzhou building, southeast corner of the intersection of Huai'an East Road and Yaqing street, Yuhua District, Shijiazhuang City, Hebei Province Applicant after: Hebei Qianhe e-commerce Co.,Ltd. Address before: 518000 6-8 / F, 10-11 / F, 6 / F, 6-10 / F, C zone, Han's innovation building, No. 9018, Beihuan Avenue, high tech Zone, Nanshan District, Shenzhen City, Guangdong Province Applicant before: NUBIA TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |