Network communication method, device, equipment and storage medium
By adopting network communication methods in the medical system, message queues and WebSockets are used to realize audio and video interaction between intranet and external network clients, solving the problems of data sensitivity and telemedicine needs, and realizing the convenience and convenience of data sharing and mobile office. Security.
Patent Information
- Application Number
- CN202310899281.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-20
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-07-20
AI Technical Summary
Existing medical systems have data sensitivity and security issues when sharing information between intranets and external networks, and the need for telemedicine is urgent but difficult to achieve, especially when the brands of information systems in different medical institutions are inconsistent. Data sharing is not possible directly.
Through a network communication method, respond to the client's meeting request, generate meeting room information, send invitation information, and conduct audio and video information interaction after confirmation, and use message queues and WebSocket to realize information interaction between intranet and external network clients. , using an update mechanism for differential frame images and input trajectory information to ensure data security and convenience.
It realizes the safe sharing of patient medical data and information system data, avoids the cost of data integration, and improves the convenience and efficiency of work. The communication between intranet and external network clients is convenient, and it is clinically easy to use and universal.
Smart Images

Figure CN117041468B
Abstract
Description
Technical Field
[0001] The present application relates to the field of information technology of medical systems, and in particular to a network communication method, apparatus, device and storage medium. Background Art
[0002] At present, for security reasons, most hospitals' information systems will be run in the intranet, which is physically isolated from the external network. At the same time, in the construction of the national medical alliance, the promotion of a hierarchical diagnosis and treatment pattern with top-down linkage is required, which requires both ensuring information security and realizing the "sharing" of patient information and expert resources across hospital districts. Summary of the invention
[0003] The embodiments of the present application provide a network communication method, apparatus, device and storage medium to solve the problems existing in the related technologies. The technical solutions are as follows:
[0004] In a first aspect, an embodiment of the present application provides a network communication method, including:
[0005] generating conference room information in response to the received conference request information from the first client;
[0006] Based on the conference room information, generate invitation information and send the invitation information to the second client;
[0007] When receiving confirmation information from the second client, generating notification information based on the conference room information;
[0008] According to the notification information, audio and video information is exchanged between the first client and the second client, wherein one of the first client and the second client is an external network client and the other is an internal network client.
[0009] In one embodiment, the method further comprises:
[0010] Creating at least two groups of first waiting queues and monitoring the first waiting queues, where the first waiting queues are used to wait for conference information of the first client;
[0011] At least two groups of second waiting queues are created and the second waiting queues are monitored, where the second waiting queues are used to wait for conference information of the second client.
[0012] In one implementation, upon receiving confirmation information from the second client, generating notification information based on the conference room information includes:
[0013] When confirmation information from the second client is received, second notification information is generated based on the conference room information to notify the second client to receive the audio and video information.
[0014] In one implementation, according to the notification information, the interaction of audio and video information between the first client and the second client further includes:
[0015] According to the notification information, a video information channel and an audio information channel are generated, the video information channel is used for exchanging video information between the first client and the second client, and the audio information channel is used for exchanging audio information between the first client and the second client.
[0016] In one implementation, the interaction of audio and video information between the first client and the second client according to the notification information includes:
[0017] Generate a first audio queue and a first video queue according to the notification information;
[0018] Using the first audio queue, receiving the first audio information sent by the first client;
[0019] Sending the first audio information to the second client to implement audio information interaction between the first client and the second client;
[0020] Using the first video queue, receiving first video information sent by the first client;
[0021] The first video information is sent to the second client to implement the interaction of video information between the first client and the second client.
[0022] In one embodiment, the method further comprises:
[0023] Acquire difference frame image information of the first client, the difference frame image information including difference frame image segments and position data corresponding to the difference frame image segments, the difference frame image segments are determined by the first client dividing each shared frame image into a plurality of image segments when at least one image segment between adjacent frame images is different;
[0024] Based on the difference frame image information of the first client, updated image information is generated and sent to the second client, and the updated image information is used to control the second client to update the image in the picture display area according to the difference frame image fragment and the position data corresponding to the difference frame image fragment.
[0025] In one embodiment, the method further comprises:
[0026] Acquire input information of the second client, the input information including input track information and position information corresponding to the input track, the input track information is generated by the second client in response to a received input device input event in the picture display area;
[0027] According to the input information of the second client, updated input information is generated and sent to the first client, where the updated input information is used to control the first client to restore the input track and the position corresponding to the input track.
[0028] In a second aspect, an embodiment of the present application provides a network communication device, including:
[0029] A first generating module, configured to generate conference room information in response to the received conference request information from the first client;
[0030] A second generating module, configured to generate invitation information based on the conference room information and send the invitation information to the second client;
[0031] A third generating module, configured to generate notification information based on the conference room information when receiving confirmation information from the second client;
[0032] The first interaction module is used to interact audio and video information between the first client and the second client according to the notification information, wherein one of the first client and the second client is an external network client and the other is an internal network client.
[0033] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising: a memory and a processor. The memory and the processor communicate with each other through an internal connection path, the memory is used to store instructions, the processor is used to execute the instructions stored in the memory, and when the processor executes the instructions stored in the memory, the processor executes the method in any one of the above-mentioned embodiments.
[0034] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program runs on a computer, the method in any one of the above-mentioned embodiments is executed.
[0035] The advantages or beneficial effects of the above technical solution include at least:
[0036] The technical solution of the embodiment of the present disclosure establishes a conference room by responding to the conference request information received from the first client, that is, generates conference room information, sends invitation information to the second client through the conference room information, and generates notification information based on the conference room information when the confirmation information of the second client is received, and exchanges information between the first client and the second client through the notification information, wherein one of the first client and the second client is an external network client and the other is an internal network client, so that information interaction can be achieved between the internal network and the external network. The sensitivity of data going out of the external network in the medical field and the urgent need for telemedicine are solved, and the pain points and difficulties of clinical practice are effectively solved. In addition, the clients of the internal network and the external network are no longer restricted to fixed places, and the convenience of use is greatly improved, with the characteristics of clinical ease of use and universality. Moreover, the technical solution of this embodiment can realize data sharing and mobile office when the patient's medical data does not leave the hospital and the information system data is not integrated. On the one hand, it ensures the security of data and avoids the implementation cost of data integration. On the other hand, it realizes the communication between any client of the internal network and the workstation or mobile terminal of the external network, which improves the convenience and efficiency of work.
[0037] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present application will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application.
[0039] Figure 1 A flowchart of a network communication method according to an embodiment of the present application;
[0040] Figure 2 A structural block diagram of a network communication method according to an embodiment of the present application;
[0041] Figure 3 A flowchart of a network communication method according to another embodiment of the present application
[0042] Figure 4 A structural block diagram of a network communication device according to an embodiment of the present invention is shown;
[0043] Figure 5 A structural block diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0044] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.
[0045] In the relevant technologies, the current mainstream telemedicine system uses an audio and video conferencing system in a pure external network mode at the bottom layer, and develops corresponding business functions on this basis. This solution is mature in technology and is suitable for patients and doctors to conduct relevant diagnosis and treatment without relying on the hospital information system; if the hospital's information system is needed, log in to a specific workstation on the hospital's intranet through VPN, and then perform relevant operations. Due to the isolation of the hospital's internal and external networks, it is generally necessary to set up a dedicated remote consultation room. In addition, VPN is a point-to-point access, which greatly limits the people and places that use it. Due to its sensitivity and security, medical data usually runs on the hospital's intranet, which is physically isolated from the external network. In addition, different medical institutions have different information system brands, and data cannot be directly shared.
[0046] The essence of telemedicine is to integrate medical resources, improve primary medical service capabilities, use information technology to promote the vertical flow of resources, and improve the accessibility of high-quality medical resources and the overall efficiency of medical services.
[0047] Figure 1 FIG. 1 is a flow chart showing a network communication method according to an embodiment of the present application. Figure 1 and Figure 2 As shown, a network communication method may include:
[0048] S110: generating conference room information in response to the received conference request information from the first client;
[0049] S120: Generate invitation information based on the conference room information and send the invitation information to the second client;
[0050] S130: upon receiving confirmation information from the second client, generating notification information based on the conference room information;
[0051] S140: According to the notification information, audio and video information is exchanged between the first client and the second client, wherein one of the first client and the second client is an external network client and the other is an internal network client.
[0052] In this embodiment, the first client may be a cloud client, i.e., an extranet client. The cloud client may log in to the cloud server to communicate with the cloud server. The second client may be an intranet client. The intranet client logs in to the cloud server through the intranet front-end processor and is connected to the cloud server through the intranet front-end processor. Both the cloud client and the intranet client may be mobile terminals, such as mobile phones, tablets, or laptop computers. The intranet front-end processor may be an intranet PC host or other servers, etc., and the extranet client may be an extranet workstation, etc. Among them, the first client and the second client may be opposite, i.e., the first client is an intranet client and the second client is an extranet client. The method of this embodiment may be executed on a cloud server or on a PC host.
[0053] In this embodiment, by responding to the received conference request information of the first client, a conference room is established, that is, conference room information is generated, and invitation information is sent to the second client through the conference room information. When the confirmation information of the second client is received, notification information can be generated based on the conference room information, and information interaction is performed between the first client and the second client through the notification information, wherein one of the first client and the second client is an external network client and the other is an internal network client, so that information interaction can be achieved between the internal network and the external network. The sensitivity of data going out of the external network in the medical field and the urgent need for telemedicine are solved, and the pain points and difficulties of clinical practice are effectively solved. In addition, the clients of the internal network and the external network are no longer restricted to fixed places, and the convenience of use is greatly improved, with the characteristics of clinical ease of use and universality. Moreover, the technical solution of this embodiment can realize data sharing and mobile office when the patient medical data does not leave the hospital and the information system data is not integrated. On the one hand, it ensures the security of data and avoids the implementation cost of data integration. On the other hand, it realizes the communication between any client of the internal network and the workstation or mobile terminal of the external network, which improves the convenience and efficiency of work.
[0054] In step S110, in response to the received conference request information from the first client, conference room information is generated.
[0055] In this embodiment, in response to the received conference request information from the first client, the cloud server generates conference room information according to the conference request information, where the conference room information includes a room number and room information.
[0056] Prior to this embodiment, the message queue service software RabbitMQ was deployed on the cloud server, and a public static IP was assigned to allow the intranet front-end to access through the specified IP and port. In addition, interface services, application services and databases on the cloud server and interface services on the intranet front-end were also deployed.
[0057] Among them, when the interface service is started, the first client logs in to the rabbit account and password on the intranet front-end machine, so that the first client establishes a long connection with RabbitMQ on the cloud server side. The long connection is used for the first client to receive messages from MQ and send messages to MQ.
[0058] In order to improve the efficiency of message interaction, multiple waiting queues are created and monitored when the interface service is started. For example, 10 waiting queues are created in the format of QUE_interface code_ElektaCloudAPI_waiting_N. The cloud interface code is C001, N=0~9; the intranet front-end interface code is H001, N=0~9.
[0059] When the intranet interface service sends a request to the cloud MQ queue, it creates and listens to a queue named ElektaCloudClientAPI_response_UUIDV4 to obtain the response data. UUIDV4 is a random unique number representing a unique message. The request queue contains parameters and response queues (parameters define what to do, and the response queue is to whom the result is returned).
[0060] The cloud service obtains requests by listening to the queue, and returns the results to the response queue after completing the internal logic processing.
[0061] The second client establishes communication with the cloud server through the configuration file and WebSocket. Similarly, the first client establishes communication with the hospital intranet front-end through the configuration file and WebSocket, thereby enabling the first client and the second client to connect to the cloud server.
[0062] The first client sends a requestMeeting interface request to the MQ random waiting queue (such as QUE_C001_ElektaCloudAPI_waiting_0) of the cloud service through the intranet front-end;
[0063] The cloud server's pleaseMeeting interface obtains the request and creates an audio and video conference room. The room rule is: ROOM_UUIDV4 (UUIDV4 is a random unique number, where UUIDV4 is the identifier of the room number and is randomly generated by the system. This ensures that each room is unique and will not conflict with other room numbers). The room is created to meet the needs of multiple video conferencing scenarios. The information for creating and generating the room is the conference room information.
[0064] In step S120, based on the conference room information, invitation information is generated and sent to the second client;
[0065] In this embodiment, the conference room information includes the room rules and room number of the conference room. The cloud server sends the message to the cloud server through the MQ audio and video message queue QUE_C001_PushPleaseMeeting based on the conference room information. The cloud service can determine the received conference invitation information by monitoring the queue. The cloud server generates the invitation information, which is the conference invitation information. The cloud server sends the conference invitation to the second client through websocket.
[0066] In step S130, when confirmation information from the second client is received, notification information is generated based on the conference room information.
[0067] After the cloud server sends the conference invitation to the second client, the second client can receive the invitation information. The invitation information will be displayed on the interface of the second client, for example, by displaying a conference invitation dialog box in a pop-up box. After the second client confirms the information by clicking "Confirm" on the interface or by voice input confirmation, the second client generates a confirmation message and returns the confirmation message to the cloud server via websocket.
[0068] When the cloud server receives the confirmation information sent by the second client, the cloud server can generate notification information based on the confirmation information and the conference room information. The notification information generated by the cloud server may include information to notify the second client to monitor the audio and video queue and information to notify the first client to send audio and video. The notification information is monitored by the askmeeting interface through QUE_C001_ElektaCloudAPI_waiting_0.
[0069] In step S140, audio and video information is exchanged between the first client and the second client according to the notification information, wherein one of the first client and the second client is an external network client and the other is an internal network client.
[0070] Based on the notification information, the cloud server receives the audio and video information sent by the first client and sends the audio and video information to the second client. At the same time, it can also receive the audio and video information of the second client and send the audio and video information of the second client to the first client, thereby realizing the interaction of audio and video information between the first client and the second client.
[0071] In this embodiment, the cloud server creates an audio
[0072] The two message channels, MT_AUDIO_PUSH_ROOMID_MACID and MT_VEDIO_PUSH_ROOMID_MACID, are used to forward the audio and video sent by the first client, where ROOMID is the room number and MACID is the MACID of the viewer.
[0073] Notify the cloud server through the message channel QUE_HOO1_AUDIO_PUSH_ROOMID_MACID to generate and subscribe to the audio queue according to ROOMID (queue name:
[0074] MT_AUDIO_PUSH_ROOMID_MACID), receives audio data from the first client, and sends audio to the second client.
[0075] The cloud service is informed through the message channel QUE_H001_PUSH_START_MEETING, a video queue (queue name MT_VEDIO_PUSH_ROOMID_MACID) is generated and subscribed, the video data of the first client is received, and the video is sent to the second client.
[0076] The first client calls the ClientServerMuiltSeeVedio interface through the intranet front-end, generates and subscribes to the MQ video queue (queue name:
[0077] MT_VEDIO_PUSH_ROOMID_MACID), sends the video to the second client.
[0078] The first client calls the startMeetingAudio interface through the intranet front-end, generates and subscribes to an MQ audio queue based on the ROOMID (queue name:
[0079] MT_AUIDO_PUSH_ROOMID_MACID), and sends audio to the second client. At this time, the second client can watch the audio and video of the first client. Similarly, according to the above content, it can be known that by swapping the first client and the second client, the first client can watch the audio and video of the second client. Thus, the interaction between the first client and the second client can be achieved.
[0080] Through the method of this embodiment, data sharing and mobile office are realized without the patient medical data leaving the hospital and the information system data being integrated. On the one hand, data security is guaranteed and the implementation cost of data integration is avoided. On the other hand, communication between any client on the intranet and a workstation or mobile terminal on the extranet is realized, thereby improving the convenience and efficiency of work.
[0081] Audio and video transmission and remote collaboration in a pure external or internal network environment are relatively mature, but communication in the internal and external network modes can more effectively achieve confidentiality while enhancing the role of collaborative communication. The internal network front-end does not require an external static IP, saving IP resources and reducing the risk of being attacked; and it is not limited to a fixed client location, greatly improving the convenience of use.
[0082] like Figure 3 As shown, in one embodiment, the method further includes:
[0083] S310: creating at least two groups of first waiting queues, and monitoring the first waiting queues, where the first waiting queues are used to wait for conference information of the first client;
[0084] S320: Create at least two groups of second waiting queues and monitor the second waiting queues, where the second waiting queues are used to wait for conference information of the second client.
[0085] In this embodiment, before responding to the meeting request information received from the first client, a waiting queue can be established on the cloud server. For example, when the interface service of the cloud server is started, 10 groups of second waiting queues are created and monitored. The second waiting queue is used to wait for the meeting information of the second client. The format is: QUE_interface code_ElektaCloudAPI_waiting_N, and the interface code of the second client is C001, N=0~9; when the interface service of the cloud server is started, 10 groups of first waiting queues are created and monitored. The first waiting queue is used to wait for the meeting information of the first client. The intranet front-end interface code corresponding to the first client is H001, N=0~9.
[0086] When the first client sends a request to the MQ queue of the cloud server through the interface service of the intranet front-end, a queue named ElektaCloudClientAPI_response_UUIDV4 is created and monitored to obtain the response data. Among them, UUIDV4 is a random unique number representing a unique message. At the same time, the request queue contains parameters and response queues (parameters define what to do, and the response queue is to whom the results are returned).
[0087] The method of this embodiment can improve the efficiency of information interaction between the first client and the second client.
[0088] In one implementation, upon receiving confirmation information from the second client, generating notification information based on the conference room information includes:
[0089] When confirmation information from the second client is received, second notification information is generated based on the conference room information to notify the second client to receive the audio and video information.
[0090] In this embodiment, after the cloud server sends a conference invitation to the second client, the second client can receive the invitation information. The invitation information will be displayed on the interface of the second client, for example, by displaying a conference invitation dialog box in a pop-up box. After the second client confirms the information by clicking "Confirm" on the interface or by voice input confirmation, the second client generates a confirmation message and returns the confirmation message to the cloud server via websocket.
[0091] When the cloud server receives the confirmation information sent by the second client, the cloud server can generate notification information based on the confirmation information and the conference room information. The notification information generated by the cloud server may include second notification information for notifying the second client to monitor the audio and video queue. The second notification information can notify the second client to receive audio and video information by monitoring the audio and video queue. That is, the second client can receive audio and video information from the first client in this way.
[0092] In one implementation, according to the notification information, the interaction of audio and video information between the first client and the second client further includes:
[0093] According to the notification information, a video information channel and an audio information channel are generated, the video information channel is used for exchanging video information between the first client and the second client, and the audio information channel is used for exchanging audio information between the first client and the second client.
[0094] In this embodiment, when the cloud server receives the confirmation information from the second client, the cloud server creates two message channels, audio (MT_AUDIO_PUSH_ROOMID_MACID) and video (MT_VEDIO_PUSH_ROOMID_MACID), on MQ to forward the audio and video sent by the first client, where ROOMID is the room number and MACID is the MACID of the viewer.
[0095] Inform the cloud server through the audio message channel QUE_HOO1_AUDIO_PUSH_ROOMID_MACID, generate and subscribe to the audio queue according to ROOMID (queue name:
[0096] MT_AUDIO_PUSH_ROOMID_MACID), receives audio data from the first client, and sends audio to the second client.
[0097] The cloud service is informed through the video message channel QUE_H001_PUSH_START_MEETING, a video queue (queue name MT_VEDIO_PUSH_ROOMID_MACID) is generated and subscribed, the video data of the first client is received, and the video is sent to the second client.
[0098] Through the audio message channel and the video message channel in the method of this embodiment, information interaction between the first client and the second client can be effectively achieved.
[0099] In one implementation, the interaction of audio and video information between the first client and the second client according to the notification information includes:
[0100] Generate a first audio queue and a first video queue according to the notification information;
[0101] Using the first audio queue, receiving the first audio information sent by the first client;
[0102] Sending the first audio information to the second client to implement audio information interaction between the first client and the second client;
[0103] Using the first video queue, receiving first video information sent by the first client;
[0104] The first video information is sent to the second client to implement the interaction of video information between the first client and the second client.
[0105] In this embodiment, the first client calls the intranet front-end
[0106] ClientServerMuiltSeeVedio interface, the cloud server generates and subscribes to the first video queue (queue name: MT_VEDIO_PUSH_ROOMID_MACID) according to ROOMID, and the cloud server receives the first video information sent by the first client through the first video queue, and then sends the received first video information to the second client through the video channel, thereby realizing the first video information being sent from the first client to the second client, and realizing the video information interaction between the first client and the second client.
[0107] The first client calls the startMeetingAudio interface through the intranet front-end, and the cloud server generates and subscribes to the first audio queue (queue name:
[0108] MT_AUIDO_PUSH_ROOMID_MACID), the cloud server sends the first audio information to the second client according to the first audio team. Thus, the second client can watch the audio and video sent by the first client, thereby realizing. Similarly, according to the above content, it can be known that by swapping the first client and the second client, the first client can watch the audio and video of the second client. Thus, the interaction between the first client and the second client can be realized.
[0109] In one embodiment, the method further comprises:
[0110] Acquire difference frame image information of the first client, the difference frame image information including difference frame image segments and position data corresponding to the difference frame image segments, the difference frame image segments are determined by the first client dividing each shared frame image into a plurality of image segments when at least one image segment between adjacent frame images is different;
[0111] Based on the difference frame image information of the first client, updated image information is generated and sent to the second client, and the updated image information is used to control the second client to update the image in the picture display area according to the difference frame image fragment and the position data corresponding to the difference frame image fragment.
[0112] In this embodiment, in order to reduce video delay and bandwidth traffic, only the changed images are transmitted to the participants in real time through image segmentation and difference comparison technology.
[0113] Specifically, the first client captures the desktop screenshot of the first client's PC computer through the screenshot technology every 30 milliseconds, and usually the screenshot can also be the video location or the specified area. Usually, the meeting can use a shared screen, because the content on the screen will change all the time (such as playing a video), so the system needs to reflect the changes in the other party's interface in real time. The technology used is to take a screenshot every 30 milliseconds. At this time, a static image is obtained. This static image is compared with the previous static image, and the changes are extracted, and then updated on the other party's screen. In this way, the animation effect of the change can be seen visually.
[0114] The captured image is divided into 20*20 parts (it can also be divided in other ways, such as the form of 9 squares, or other image segmentation modules). That is, the difference frame image fragment is that the first client divides each shared frame image into several image fragments. Then the image of the last screenshot is compared with the image of the current screenshot, wherein the comparison process is to compare the image of the last screenshot with the image of the current screenshot according to the divided image fragments, and then use the RGBA value to match the difference of each fragment. If there is a difference, the image buff of the current fragment (the buffer is a memory area used to temporarily store data so that it can be transferred or processed between programs. In graphics processing, the buffer is used to store image data for pixel-level operations and processing) and the coordinates of the current image fragment are uploaded, that is, the difference frame image fragment and the position data corresponding to the difference frame image fragment.
[0115] The first client uploads the difference frame image fragment and the position data corresponding to the difference frame image fragment to the intranet front-end through WebSocket, and then forwards it to the waiting queue of rabbitMQ and uploads it to the cloud server. Among them, the picture is transmitted in RabbitMQ, the picture data is converted into a byte stream, and it is sent as a message. The receiver can receive this byte stream and convert it back to the picture format, that is, generate updated image information through rabbitMQ of the cloud server, and send the updated image information to the second client.
[0116] When the second client is sharing, it first creates a picture canvas, which is used to display the received picture information. For each changed picture segment, it first writes the buff of the picture segment to the specified coordinates of the picture display area of the participant, and locally updates the changes in the picture, that is, updates the image information to control the second client to update the image in the picture display area according to the difference frame image segment and the position data corresponding to the difference frame image segment.
[0117] Through the method of this embodiment, the desktop or the screen of the designated area can be shared between the first client and the second client, and the patient data of the hospital intranet is shared to the external network terminal through audio and video, realizing the functions of desktop sharing and control, and the patient data is still in the hospital intranet, thereby ensuring the security and privacy of the hospital data. It is no longer dependent on a specific workplace, and the needs of mobile office are met, which improves the convenience and efficiency of work.
[0118] In one embodiment, the method further comprises:
[0119] Acquire input information of the second client, the input information including input track information and position information corresponding to the input track, the input track information is generated by the second client in response to a received input device input event in the picture display area;
[0120] According to the input information of the second client, updated input information is generated and sent to the first client, where the updated input information is used to control the first client to restore the input track and the position corresponding to the input track.
[0121] In this embodiment, the input information of the second client includes input track information and position information corresponding to the input track, such as the sliding trace of the mouse, or the input track information generated by the sliding trace of the touch pad and the position information corresponding to the input track. The position information corresponding to the input track can be coordinate information. For example: obtaining the coordinate changes and mouse events of the second client monitoring the mouse in the picture display area.
[0122] The second client uploads the mouse events and coordinates to the rabbitMQ queue through the WebSocket of the cloud server. The cloud server converts the mouse coordinates into the coordinates and corresponding events of the first client, that is, updates the input information. The rabbitMQ of the cloud server sends the updated input information to the intranet front-end, and then sends it to the first client through the intranet front-end.
[0123] After the first client receives the update information, that is, receives the converted coordinates and corresponding events of the first client, the coordinates and events of the mouse are restored through C#user32.
[0124] Through the method of this embodiment, remote control between the first client and the second client can be effectively implemented, thereby improving the interaction capability between the first client and the second client.
[0125] Figure 4 FIG. 2 shows a structural block diagram of a network communication device according to an embodiment of the present invention. Figure 4 As shown, in a second aspect, an embodiment of the present application provides a network communication device, which may include:
[0126] A first generating module 410 is used to generate conference room information in response to the received conference request information from the first client;
[0127] The second generating module 420 is used to generate invitation information based on the conference room information and send the invitation information to the second client;
[0128] The third generating module 430 is used to generate notification information based on the conference room information when receiving the confirmation information from the second client;
[0129] The first interaction module 440 is used to interact audio and video information between the first client and the second client according to the notification information.
[0130] The technical solution of the embodiment of the present disclosure establishes a conference room by responding to the conference request information received from the first client, that is, generates conference room information, sends invitation information to the second client through the conference room information, and generates notification information based on the conference room information when the confirmation information of the second client is received, and exchanges information between the first client and the second client through the notification information, wherein one of the first client and the second client is an external network client and the other is an internal network client, so that information interaction can be achieved between the internal network and the external network. The sensitivity of data going out of the external network in the medical field and the urgent need for telemedicine are solved, and the pain points and difficulties of clinical practice are effectively solved. In addition, the clients of the internal network and the external network are no longer restricted to fixed places, and the convenience of use is greatly improved, with the characteristics of clinical ease of use and universality. Moreover, the technical solution of this embodiment can realize data sharing and mobile office when the patient's medical data does not leave the hospital and the information system data is not integrated. On the one hand, it ensures the security of data and avoids the implementation cost of data integration. On the other hand, it realizes the communication between any client of the internal network and the workstation or mobile terminal of the external network, which improves the convenience and efficiency of work.
[0131] In one embodiment, the device further comprises:
[0132] A first creation module, used for creating at least two groups of first waiting queues and monitoring the first waiting queues, where the first waiting queues are used for waiting for conference information of the first client;
[0133] The second creation module is used to create at least two groups of second waiting queues and monitor the second waiting queues, where the second waiting queues are used to wait for conference information of the second client.
[0134] In one embodiment, the third generation module is further used for:
[0135] When confirmation information from the second client is received, second notification information is generated based on the conference room information to notify the second client to receive the audio and video information.
[0136] In one embodiment, the first interaction module is further used for:
[0137] According to the notification information, a video information channel and an audio information channel are generated, the video information channel is used for exchanging video information between the first client and the second client, and the audio information channel is used for exchanging audio information between the first client and the second client.
[0138] In one embodiment, the first interaction module includes:
[0139] A first generating unit, configured to generate a first audio queue and a first video queue according to the notification information;
[0140] A first utilizing unit, configured to utilize a first audio queue to receive first audio information sent by a first client;
[0141] A first sending unit, configured to send the first audio information to the second client, so as to implement audio information interaction between the first client and the second client;
[0142] A second utilizing unit is used to utilize the first video queue to receive first video information sent by the first client;
[0143] The second sending unit is used to send the first video information to the second client to implement the interaction of video information between the first client and the second client.
[0144] In one embodiment, the device further comprises:
[0145] A first acquisition module is used to acquire difference frame image information of the first client, where the difference frame image information includes difference frame image segments and position data corresponding to the difference frame image segments, where the difference frame image segments are determined when the first client divides each shared frame image into a plurality of image segments and at least one image segment between adjacent frame images is different;
[0146] The fourth generation module is used to generate updated image information based on the difference frame image information of the first client and send the updated image information to the second client. The updated image information is used to control the second client to update the image in the picture display area according to the difference frame image fragments and the position data corresponding to the difference frame image fragments.
[0147] In one embodiment, the device further comprises:
[0148] A second acquisition module is used to acquire input information of the second client, the input information including input track information and position information corresponding to the input track, the input track information is generated by the second client in response to a received input device input event in the picture display area;
[0149] The fifth generating module is used to generate updated input information according to the input information of the second client and send the updated input information to the first client, wherein the updated input information is used to control the first client to restore the input track and the position corresponding to the input track.
[0150] The functions of the modules in the devices in the embodiments of the present invention can be found in the corresponding descriptions of the above methods, which will not be described in detail here.
[0151] Figure 5 FIG. 2 shows a structural block diagram of an electronic device according to an embodiment of the present invention. Figure 5As shown, the electronic device includes: a memory 910 and a processor 920, wherein the memory 910 stores a computer program that can be run on the processor 920. When the processor 920 executes the computer program, the network communication method in the above embodiment is implemented. The number of the memory 910 and the processor 920 can be one or more.
[0152] The electronic device / terminal / server also includes:
[0153] The communication interface 930 is used to communicate with external devices and perform data exchange transmission.
[0154] If the memory 910, the processor 920 and the communication interface 930 are implemented independently, the memory 910, the processor 920 and the communication interface 930 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0155] Optionally, in a specific implementation, if the memory 910, the processor 920 and the communication interface 930 are integrated on a chip, the memory 910, the processor 920 and the communication interface 930 can communicate with each other through an internal interface.
[0156] An embodiment of the present invention provides a computer-readable storage medium storing a computer program, which implements the method provided in the embodiment of the present application when the program is executed by a processor.
[0157] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present application.
[0158] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the application.
[0159] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the advanced RISC machines (ARM) architecture.
[0160] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus RAM (DR RAM).
[0161] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
[0162] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.
[0163] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0164] Any process or method description in the flow chart or otherwise described herein can be understood to represent a module, fragment or portion of a code including one or more executable instructions for implementing the steps of a specific logical function or process. And the scope of the preferred embodiment of the present application includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved.
[0165] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.
[0166] It should be understood that the various parts of the present application can be implemented with hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium, and when the program is executed, it includes one of the steps of the method embodiment or a combination thereof.
[0167] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.
[0168] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A network communication method, It is characterized in that include: generating conference room information in response to the received conference request information from the first client; Based on the conference room information, generate invitation information and send the invitation information to the second client; In the case of receiving confirmation information from the second client, generating notification information based on the conference room information; wherein the notification information includes second notification information for notifying the second client to receive audio and video information; Generate a video information channel and an audio information channel according to the notification information, wherein the video information channel is used for exchanging video information between the first client and the second client, and the audio information channel is used for exchanging audio information between the first client and the second client; Wherein, one of the first client and the second client is an external network client, and the other is an internal network client; The method further comprises: Creating at least two groups of first waiting queues and monitoring the first waiting queues, where the first waiting queues are used to wait for conference information of the first client; At least two groups of second waiting queues are created, and the second waiting queues are monitored, where the second waiting queues are used to wait for conference information of the second client.
2. The network communication method according to claim 1, It is characterized in that The exchanging of audio and video information between the first client and the second client according to the notification information includes: Generate a first audio queue and a first video queue according to the notification information; receiving, using the first audio queue, first audio information sent by the first client; Sending the first audio information to the second client to implement audio information interaction between the first client and the second client; receiving, using the first video queue, first video information sent by the first client; The first video information is sent to the second client to implement video information interaction between the first client and the second client.
3. The network communication method according to claim 1, It is characterized in that The method further comprises: Acquire difference frame image information of the first client, the difference frame image information including difference frame image segments and position data corresponding to the difference frame image segments, the difference frame image segments are determined by the first client dividing each shared frame image into a plurality of image segments when at least one image segment between adjacent frame images is different; Based on the difference frame image information of the first client, updated image information is generated and sent to the second client, and the updated image information is used to control the second client to update the image in the picture display area according to the difference frame image fragment and the position data corresponding to the difference frame image fragment.
4. The network communication method according to claim 1, It is characterized in that The method further comprises: Acquire input information of the second client, the input information including input track information and position information corresponding to the input track, the input track information is generated by the second client in response to a received input device input event in the picture display area; Generate updated input information according to the input information of the second client and send the updated input information to the first client, wherein the updated input information is used to control the first client to restore the input track and the position corresponding to the input track.
5. A network communication device, It is characterized in that include: A first generating module, configured to generate conference room information in response to the received conference request information from the first client; A second generating module, configured to generate invitation information based on the conference room information and send the invitation information to a second client; A third generating module is used to generate notification information based on the conference room information when receiving confirmation information from the second client; wherein the notification information includes second notification information for notifying the second client to receive audio and video information; A first interaction module, configured to generate a video information channel and an audio information channel according to the notification information, wherein the video information channel is used to exchange video information between the first client and the second client, and the audio information channel is used to exchange audio information between the first client and the second client; A first creation module, used for creating at least two groups of first waiting queues and monitoring the first waiting queues, where the first waiting queues are used for waiting for conference information of the first client; The second creation module is used to create at least two groups of second waiting queues and monitor the second waiting queues, where the second waiting queues are used to wait for conference information of the second client.
6. An electronic device, It is characterized in that include: A processor and a memory, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
