Microservice control method, microservice supply method, device and system

By monitoring the microscope broadcast configuration service list, automatically identifying and calling the microscope functions, the inefficiency of user manual connection and function recognition in existing systems is solved, and more flexible and efficient microscope control is achieved.

CN120223740APending Publication Date: 2025-06-27LEICA MICROSYSTEMS CMS GMBH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311810177.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-26
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

In existing digital microscope systems, users need to manually enter the microscope IP address to establish communication connections, resulting in inflexible control and inefficient controls, and the inability to flexibly identify services supported by the microscope, resulting in additional inquiries to find the microscope with the required functions.

Method used

By monitoring the broadcasts sent by the microscope, configure the service list, including the name, IP address and function of the microscope, query the service list to select the main service microscope, and check whether the main service microscope supports the required functions according to the function call command. If not, feedback and switch to the secondary service microscope that supports the function.

Benefits of technology

The function of automatically discovering and identifying online microscopes is realized, and the function of flexibly identifying and calling microscopes is improved, and the flexibility and efficiency of user operations is reduced, and the workload of manual query and connection is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120223740A_ABST
    Figure CN120223740A_ABST
Patent Text Reader

Abstract

The invention relates to a microservice control method, a microservice supply method, a corresponding device and a system. According to the method, interactive connection between a user side and a microscopic server side is established based on a local area network, real-time broadcast is added in microscope platform software, broadcast sent by an online microscope is monitored on a terminal in a system, and a service list is configured based on the broadcast; inquiring the service list, selecting a corresponding microscope as a main service microscope according to the first function, establishing communication connection with the main service microscope, and calling the first function; in response to the primary service microscope not supporting the second function, feeding back further microscopes supporting the second function according to the service list; and in response to selecting another microscope as an auxiliary service microscope, starting a new thread to establish communication connection with the auxiliary service microscope and call a corresponding second function. Therefore, automatic discovery of the on-line microscope and information acquisition of functions supported by the microscope are realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention generally relates to the field of microscopes, particularly digital microscopes, and specifically relates to the function scheduling of microscopes, particularly the function scheduling of digital microscopes. Background Art

[0002] A microscopic service system including multiple digital microscopes is known. For example, in a microscopic service system, one or more microscopes respectively image a target area of an object, identify and count objects within the target area, etc. Generally, a user selects and uses a microscope and corresponding functions through a control device to complete required operation tasks.

[0003] In existing microscopic service systems, the topological connection between a control device and each microscope is generally achieved through a local area network. For this purpose, each microscope accesses the local area network via a gateway and uses its own IP address respectively.

[0004] However, the topological connection of existing systems must be established by the user. That is to say, when accessing a microscope, the user needs to manually input the IP address of the relevant microscope on the control device to establish a communication connection between the control device and the corresponding microscope. This results in inflexible control of the microscope by the user and low efficiency.

[0005] In addition, due to the manual connection method, in the current system, the control device can only obtain the IP information of a single microscope and cannot flexibly identify the services supported by this microscope, such as hardware control services, cell counting services, etc. Moreover, the existing system only supports the establishment of a communication connection between the control device and one microscope. Therefore, when the connected microscope does not have the required functions, the connection between the control device and this microscope needs to be disconnected and a new connection needs to be established with another microscope. However, since the services supported by each microscope cannot be flexibly identified, the user needs to additionally query the name of the microscope supporting the required functions and its corresponding IP information through other means, which undoubtedly increases the workload and reduces the efficiency.

[0006] Therefore, an improved method and system are needed to solve the above existing problems. Summary of the Invention

[0007] The object of the present invention is to provide an improved microscopic service control method, microscopic service supply method, corresponding device and system, so as to at least partially solve the problems of the prior art.

[0008] Based on the foregoing object, on the one hand, the present invention provides a microscopic service control method, wherein the microscopic service control method includes the following steps:

[0009] Listen to the broadcasts sent by online microscopes and configure a service list based on the broadcasts. The service list includes at least the names of the online microscopes, their corresponding IP addresses, and functions.

[0010] Query the service list, select a corresponding microscope as the primary service microscope according to the first function, establish a communication connection with the primary service microscope through the IP address corresponding to the name of the primary service microscope, and call the first function.

[0011] In response to a call instruction for another second function, check whether the primary service microscope supports the second function.

[0012] In response to the primary service microscope not supporting the second function, feedback the names of other microscopes that support the second function according to the service list for selection as secondary service microscopes.

[0013] In response to selecting another microscope as the secondary service microscope, start a new thread to establish a communication connection with the secondary service microscope through the IP address corresponding to the name of the secondary service microscope and call the corresponding second function.

[0014] According to some embodiments of the microscopic service control method of the present invention, where listening to the broadcasts sent by online microscopes and configuring a service list based on the broadcasts, the service list including at least the names of the online microscopes, their corresponding IP addresses, and functions further includes:

[0015] In response to listening to the broadcasts sent by online microscopes, receive and parse the corresponding broadcast packets. The broadcast packets contain at least information on the names of the microscopes, their corresponding IP addresses, and functions; and

[0016] Create a service list according to the information on the names, their corresponding IP addresses, and functions; or

[0017] Update the service list according to the information on the names, their corresponding IP addresses, and functions.

[0018] According to some embodiments of the microscopic service control method of the present invention, where in response to a call instruction for another second function, checking whether the primary service microscope supports the second function further includes:

[0019] In response to a call instruction for another second function, query the functions corresponding to the name of the primary service microscope in the service list.

[0020] In response to the functions corresponding to the name of the primary service microscope including the second function, call the second function of the primary service microscope.

[0021] In response to the function corresponding to the name of the main service microscope not including the second function, it is determined that the main service microscope does not support the second function.

[0022] According to some embodiments of the microscopic service control method of the present invention, wherein in response to selecting another microscope as the secondary service microscope, a new thread is started to establish a communication connection with the secondary service microscope through the IP address corresponding to the name of the secondary service microscope and call the corresponding second function, which further includes:

[0023] In response to the second function depending on the data generated by the first function, a data acquisition instruction is sent to the main service microscope to acquire the data generated by the first function, and the data sent by the main service microscope is received and forwarded to the secondary service microscope;

[0024] Or

[0025] In response to the second function depending on the data generated by the first function, a data forwarding instruction is sent to the main service microscope, and a data transmission path is established between the main service microscope and the secondary service microscope according to the data forwarding instruction to send the data generated by the first function to the secondary service microscope.

[0026] According to some embodiments of the microscopic service control method of the present invention, wherein the microscopic service control method further includes receiving the intermediate result generated by the secondary service microscope executing the second function.

[0027] According to some embodiments of the microscopic service control method of the present invention, wherein the service list is sorted according to at least one of the listening broadcast time, the microscope online time, the number of microscope function types, or the microscope function type priority.

[0028] According to some embodiments of the microscopic service control method of the present invention, wherein the first function includes at least one microscope function type, the second function includes at least one microscope function type different from the first function, and the first function and the second function are selected from a function group, and the function group includes at least the following function types: image acquisition, cell counting, cell confluence, transfection efficiency, AI model, AI cell counting, AI cell confluence, stitching, hardware control.

[0029] According to some embodiments of the microscopic service control method of the present invention, wherein the microscopic service control method further includes:

[0030] Configure the initial state of the functions of the online microscopes as available in the broadcast;

[0031] In response to a function being called, mark the state of the corresponding function of the corresponding microscope as occupied from available;

[0032] In response to the completion of a function call and the release of the function, mark the status of the corresponding function of the corresponding microscope as available from occupied.

[0033] According to some embodiments of the microscopic service control method of the present invention, listening to the broadcasts sent by the online microscopes and configuring a service list based on the broadcasts, the service list at least including the names of the online microscopes and their corresponding IP addresses and functions further includes:

[0034] Parse the broadcast to obtain the names of the online microscopes and their corresponding IP addresses and functions and the status of the corresponding functions;

[0035] Configure the service list according to the names of the online microscopes and their corresponding IP addresses and the functions marked as available.

[0036] On the other hand, the present invention also provides a microscopic service control component, wherein the microscopic service control component includes:

[0037] An online broadcast listening module, the online broadcast listening module is configured to listen to the broadcasts sent by the online microscopes and configure a service list based on the broadcasts, the service list at least including the names of the online microscopes and their corresponding IP addresses and functions;

[0038] A main service call module, the main service call module is configured to query the service list, select a corresponding microscope as the main service microscope according to the first function, establish a communication connection with the main service microscope through the IP address corresponding to the name of the main service microscope and call the first function;

[0039] A service query module, the service query module is configured to, in response to a call instruction for another second function, check whether the main service microscope supports the second function;

[0040] A secondary service scheduling module, the secondary service scheduling module is configured to, in response to the main service microscope not supporting the second function, feedback the names of other microscopes that support the second function according to the service list for selection as secondary service microscopes;

[0041] A secondary service call module, the secondary service scheduling module is configured to, in response to selecting another microscope as the secondary service microscope, start a new thread to establish a communication connection with the secondary service microscope through the IP address corresponding to the name of the secondary service microscope and call the corresponding second function.

[0042] In another aspect of the present invention, there is also provided a microscopic service control device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, it executes the microscopic service control method according to any one of the above embodiments.

[0043] In still another aspect of the present invention, there is also provided a microscopic service supply method based on the microscopic service control method according to the present invention, wherein the microscopic service supply method includes the following steps:

[0044] Periodically send a broadcast in the online state, wherein the broadcast carries at least information about the name of the microscope, its corresponding IP address, and functions.

[0045] In response to receiving a communication request sent by the microscopic service control device, establish a communication connection with the microscopic service control device and accept the function call of the microscopic service control device.

[0046] Execute corresponding functions according to the call.

[0047] Send the execution result of the called function to the microscopic service control device.

[0048] According to some embodiments of the microscopic service control supply of the present invention, wherein the microscopic service supply method further includes:

[0049] Listen to the broadcast, and in response to the function called by the microscopic service control device not being supported, establish a communication connection with the IP address with the corresponding function according to the broadcast and call the corresponding function.

[0050] Or

[0051] In response to receiving a communication request sent by another entity, establish a communication connection with the other entity and accept the function call of the other entity.

[0052] According to some embodiments of the microscopic service control supply of the present invention, wherein the microscopic service supply method further includes:

[0053] In response to receiving a data acquisition instruction sent by the microscopic service control device, send relevant data generated by the corresponding function to the microscopic service control device.

[0054] Or

[0055] In response to receiving a data forwarding instruction sent by the microscopic service control device, establish a data transmission path with the corresponding IP address according to the data forwarding instruction to send relevant data generated by the corresponding function.

[0056] According to some embodiments of the microscopic service control supply of the present invention, wherein the microscopic service supply method further includes:

[0057] In response to the data required by the invoked function being generated by other functions, send a data request to the microservice control device, and receive the relevant data generated by the corresponding function forwarded by the microservice control device;

[0058] Or

[0059] In response to the data required by the invoked function being generated by other functions, send a data request to the microservice control device, and establish a data transmission path with the IP address where the other function is located to receive the relevant data generated by the corresponding function.

[0060] Another aspect of the present invention further provides a microscope, which includes a microscope main body, a memory, and a processor. A computer program is stored in the memory, and when the computer program is executed by the processor, it implements the microservice supply method according to any one of the foregoing embodiments of the present invention.

[0061] The last aspect of the present invention further provides a microservice system, which includes at least one microservice control device according to the present invention and multiple microscopes according to the present invention.

[0062] The present invention at least has the following beneficial technical effects: The microservice control method, microservice supply method, corresponding device and system according to the present invention realize the discovery of all online microscopes and the acquisition of information on the functions supported by the microscopes. At the same time, it also realizes the establishment of a function call connection with other microscopes while maintaining the connection with the currently connected main service microscope, so as to complete the call of other microscopes supporting the corresponding functions within the local area network. Description of the Drawings

[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other embodiments can be obtained based on these drawings without creative efforts.

[0064] In the figure:

[0065] Figure 1 Shows the instruction and process schematic diagram of an embodiment of the microservice system according to the present invention;

[0066] Figure 2 Shows the schematic block diagram of an embodiment of the microservice control method according to the present invention;

[0067] Figure 3Shows a schematic block diagram of an embodiment of a microscopic service control component according to the present invention;

[0068] Figure 4 Shows a schematic diagram of the hardware structure of an embodiment of a microscopic service control device according to the present invention;

[0069] Figure 5 Shows a schematic block diagram of an embodiment of a microscopic service supply method according to the present invention;

[0070] Figure 6 Shows a schematic diagram of the hardware structure of an embodiment of a microscope according to the present invention;

[0071] Figure 7 Shows a schematic diagram of an embodiment of a microscopic service system according to the present invention;

[0072] Figure 8 Shows a schematic diagram of a further embodiment of a microscopic service system according to the present invention; and

[0073] Figure 9 Shows a schematic diagram of another embodiment of a microscopic service system according to the present invention. Detailed implementation manners

[0074] To make the objectives, technical solutions, and advantages of the present invention clearer and more understandable, the following further elaborates on the embodiments of the present invention in detail with reference to specific embodiments and the accompanying drawings.

[0075] It should be noted that all the expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities or non-identical parameters with the same name. It can be seen that "first" and "second" are only for the convenience of expression and should not be construed as a limitation on the embodiments of the present invention. In addition, the terms "include" and "have" and any of their variations are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units inherently includes other steps or units. Additionally, regarding the description of the step numbers in the following methods, unless there is a specific association in the method steps, the numbers are only for the convenience of description and explanation and should not be construed as simply having a limiting effect.

[0076] The present invention provides an improved microscopic service system, which establishes an interactive connection between a user terminal and a microscopic service terminal based on a local area network. In order to be able to discover all online microscopes in the local area network in real time and understand the functions supported by the microscopes so as to use these functions, the system according to the present invention adds a UDP service to the microscope platform software to send broadcasts in real time, adopting the UDP broadcast C / S mode, that is, the mode where the user terminal (client) listens and the microscopic service terminal (server) broadcasts. In addition, other conceivable broadcast forms include TCP, multicast, WebSocket, and so on.

[0077] Here, as shown on the left side in Figure 1 On the one hand, the microscope acting as the microscopic service terminal broadcasts its own information to the entire local area network by sending broadcasts. On the other hand, the microscopic service control device (preferably configured as a mobile device) acting as the user terminal listens to the broadcasts in the local area network and automatically discovers and identifies all microscopes accessing the network based on the information carried in the listened broadcasts, and then enables the services supported by the corresponding microscopes, such as image acquisition, cell counting, cell confluency, transfection efficiency, AI (artificial intelligence) functions such as AI models, AI cell counting, AI cell confluency, etc., stitching, hardware control, and so on.

[0078] At the same time, if a function not supported by the currently connected microscope needs to be used, the system according to the present invention also realizes that without disconnecting from the currently connected microscope, other microscopes in the local area network that support this function are called, as shown in the example on the right side in Figure 1 As shown in the example in the figure, the user terminal is connected to microscope 1 and calls the functions of turning on the camera of microscope 1 to collect images and turning on hardware control. At the same time, according to the present invention, while remaining connected to microscope 1, the cell counting function of microscope 2 is called.

[0079] For this reason, the first aspect of the present invention provides a microscopic service control method. Figure 2 The schematic block diagram showing an embodiment of the microscopic service control method according to the present invention is shown. In the embodiment as shown in Figure 2 the microscopic service control method includes:

[0080] Step S110: Listen to the broadcasts sent by the online microscopes and configure a service list based on the broadcasts. The service list at least includes the names of the online microscopes, their corresponding IP addresses, and functions;

[0081] Step S120: Query the service list, select the corresponding microscope as the main service microscope according to the first function, establish a communication connection with the main service microscope through the IP address corresponding to the name of the main service microscope, and call the first function;

[0082] Step S130: In response to a call instruction for another second function, check whether the main service microscope supports the second function;

[0083] Step S140: In response to the main service microscope not supporting the second function, feedback the name of another microscope that supports the second function in the service list for selection as the secondary service microscope;

[0084] Step S150: In response to selecting another microscope as the secondary service microscope, start a new thread to establish a communication connection with the secondary service microscope through the IP address corresponding to the name of the secondary service microscope and call the corresponding second function.

[0085] Specifically, when the client in accordance with the present invention schedules the microscopic services in the system, that is, executes the microscopic service control method according to the present invention. First, the networked microscopes send broadcasts to the local area network based on the UDP protocol. Therefore, in step S110, the client listens to the broadcasts sent by the online microscopes, and at the same time, configures the service list according to the information carried in the listened broadcasts, where the service list integrates the information of the online microscopes, and this information at least includes the name of the online microscope, the IP address occupied by the microscope, and the functions supported by the microscope.

[0086] Subsequently, according to the requirements of the microscopic operation task, according to the first function selected by the user on the microscopic service control device, query the service list configured in the previous step in step S120, and select the corresponding microscope as the main service microscope according to the first function. For example Figure 1 Microscope 1 in the right example. Here, through the name of the main service microscope, obtain the corresponding IP address in the service list, so as to establish a communication connection with the main service microscope through the IP address. After establishing the communication connection with the main service microscope, execute the call of the first function to complete the corresponding microscopic operation task. Thus, according to the present invention, the discovery of all online microscopes in the local area network and the acquisition of information on the functions supported by the microscopes are realized.

[0087] Further, some microscopic operation tasks require multiple microscopic functions to be completed together. At this time, when it is necessary to call another second function, step S130 responds to the call instruction of the second function and first checks whether the currently connected main service microscope supports this function. If the current main service microscope itself can support this function, the corresponding function can be directly called. Once it is found that the current main service microscope does not support this second function, in step S140, the name of another microscope that meets the requirements and can support this second function is fed back according to the service list configured in step S110, to be selected as the secondary service microscope.

[0088] After selecting another microscope as the secondary service microscope based on the alternative names fed back in step S140, in step S150, a new thread is started, and through the name of this secondary service microscope, the corresponding IP address is obtained in the service list, so as to establish a communication connection with it through the IP address corresponding to this secondary service microscope on the new thread. After establishing the communication connection with the secondary service microscope, the corresponding second function is called, thus completing the corresponding microscopic operation task. Thus, according to the present invention, it is also realized that without disconnecting the connection with the currently connected main service microscope, a function call connection is established with other microscopes at the same time, so as to complete the call of other microscopes that support the corresponding function within the local area network.

[0089] Preferably, in the method of the present invention, it is preferably to use the UDP protocol for broadcasting. The UDP protocol is called the User Datagram Protocol, which is a transport layer protocol in the OSI (Open System Interconnection) reference model. It is mainly used in transmissions that do not require packet order arrival, providing a simple unreliable information transmission service for transaction-oriented applications. The UDP protocol provides a method for application programs to send encapsulated IP data packets without establishing a connection. UDP packets do not have reliability guarantees, order guarantees, and flow control fields, etc., and the reliability is relatively poor.

[0090] However, precisely because the UDP protocol has fewer control options and has low latency and high data transmission efficiency during data transmission, it is particularly suitable for application programs with low requirements for reliability. As mentioned before, UDP is a connectionless protocol. Before transmitting data, no connection is established between the source and the destination. When data needs to be transmitted, it simply grabs the data from the application program and sends it to the network as quickly as possible. Therefore, the timeliness of data can be maximally guaranteed. In addition, precisely because no connection is established for data transmission, there is no need to maintain connection status, including sending and receiving status, etc. Therefore, a "source" can simultaneously transmit the same message to multiple "destinations", and a "destination" can also receive messages sent by multiple "sources". Therefore, in the method of the present invention, it is particularly advantageous to use the UDP protocol for broadcasting, as Figure 8 shown. Taking the Figure 8 embodiment shown as an example, when microscopes 1, 2, 3, etc. are online, the UDP broadcasts sent can all be monitored by the user terminal (such as Figure 8 the mobile phone, Pad, PC shown). At the same time, if other user terminals join this local area network, they can also monitor all UDP broadcasts in this network.

[0091] In addition, the header of the UDP datagram is very short, generally only 8 bytes. Compared with other protocols, the additional overhead of UDP is very small, which is more conducive to being used for broadcast transmission in systems with relatively strict requirements for network transmission bandwidth, such as when the total bandwidth is limited or it is necessary to ensure that the bandwidth for other data transmissions in network transmission is sufficient, etc.

[0092] Generally speaking, UDP broadcast has at least the following advantages:

[0093] 1. Simplicity: UDP broadcast is a simple communication method that does not require establishing a connection, and it does not care whether the data has reached the destination;

[0094] 2. Low latency: Since UDP broadcast does not require establishing a connection and maintaining status information, it usually has low transmission latency;

[0095] 3. Suitable for broadcast scenarios: UDP broadcast is suitable for one-to-many communication scenarios, where one node needs to send the same information to all other nodes in the network;

[0096] 4. Bandwidth saving: Since UDP broadcast can send data to multiple nodes on the network simultaneously, compared with point-to-point communication, it can save bandwidth in some cases, especially when multiple nodes need to receive the same information.

[0097] In some embodiments of the microscopic service control method 100 according to the present invention, step S110 listens for broadcasts sent by online microscopes and configures a service list based on the broadcasts. The service list at least includes the name of the online microscope, its corresponding IP address, and functions, and further includes:

[0098] Step S111: In response to listening for a broadcast sent by an online microscope, receive and parse the corresponding broadcast packet, which at least contains information about the name of the microscope, its corresponding IP address, and functions; and

[0099] Step S112: Create a service list based on the information about the name, its corresponding IP address, and functions; or

[0100] Step S113: Update the service list based on the information about the name, its corresponding IP address, and functions.

[0101] Specifically, listening for broadcasts sent by online microscopes in step S110 and configuring a service list based on the broadcasts can preferably be further implemented as follows: when a broadcast sent by an online microscope is listened for, in sub-step S111, receive and parse the listened-for broadcast packet. The name of the microscope, such as the serial number SN, can be obtained from the broadcast packet. In addition, the IP address of the microscope that sent the broadcast packet can be obtained from the broadcast packet. At the same time, the functions that the microscope can provide or support carried in the broadcast packet can also be parsed accordingly.

[0102] In the initial stage of the system, based on the relevant information obtained in sub-step S111, such as the name or serial number SN, IP address, function information, etc., a service list can be first created in sub-step S112 and the corresponding information can be filled into the service list in sequence. Or, in the case where a service list already exists in the system, the relevant information in the subsequently received and parsed broadcast packet can be used to update the service list in sub-step S113, that is, add new entries to the service list for newly networked microscopes, or modify existing entries based on new information, etc. Thus, the method according to the present invention can maintain the timeliness of the information recorded in the service list as much as possible, thereby providing guarantee for the reliability of the entire method.

[0103] Further, in some embodiments of the microscopic service control method 100 according to the present invention, step S130, in response to a call instruction for another second function, checks whether the main service microscope supports the second function, and further includes:

[0104] Step S131: In response to a call instruction for another second function, query the functions corresponding to the name of the main service microscope in the service list;

[0105] Step S132: in response to the function corresponding to the name of the main service microscope including the second function, calling the second function of the main service microscope;

[0106] Step S133: In response to the function corresponding to the name of the main service microscope not including the second function, it is determined that the main service microscope does not support the second function.

[0107] As mentioned above, some microscopic operation tasks require multiple microscopic functions to be completed together. At this time, when it is necessary to call another second function, step S130 responds to the call instruction of the second function and first checks whether the currently connected main service microscope supports the function. In a further preferred embodiment, when there is a call instruction of another second function, it is first preferably determined according to the service list whether the current main service microscope can support the second function, so the function corresponding to the name of the main service microscope in the service list is queried in sub-step S131. If it is found in sub-step S131 that the function recorded in the entry corresponding to the name of the main service microscope in the service list includes the second function, it is determined that the main service microscope supports the second function. At this time, sub-step S132 only needs to directly call the function according to the normal process. However, if the function recorded in the entry corresponding to the name of the main service microscope in the service list is found in sub-step S131 to not have the second function, then in sub-step S133 it is determined that the current main service microscope does not support the second function, and therefore it is necessary to execute the subsequent step S140 to feedback the name of another microscope that meets the requirements and can support the second function according to the service list configured in step S110, to be selected as the secondary service microscope. Thus, the method according to the present invention can ensure the execution rate of all function calls and reduce the probability of error reporting as much as possible.

[0108] However, alternatively and / or additionally, in some embodiments of the microscopic service control method 100 according to the present invention, the determination process of step S130 can also be performed by directly calling the function in the main service microscope according to the call instruction of the second function, and judging whether the currently connected main service microscope supports the function according to whether the call is successful or not. That is to say, if the call is executed normally, then of course, the currently connected main service microscope can support the function. If the call is unsuccessful and an error is reported, it is determined that the current main service microscope does not support the second function. In these embodiments, compared with the aforementioned embodiments, the process of querying the service list is omitted, so for the situation where there are a large number of microscopes and a large number of function types in the microscopic service system, it may be beneficial from the perspective of delay.

[0109] Preferably, in some embodiments of the microscopic service control method 100 according to the present invention, step S150, in response to selecting another microscope as the secondary service microscope, starts a new thread to establish a communication connection with the secondary service microscope through the IP address corresponding to the name of the secondary service microscope and call the corresponding second function, further includes:

[0110] Step S151: In response to the second function depending on the data generated by the first function, send a data acquisition instruction to the primary service microscope to acquire the data generated by the first function, and receive the data sent by the primary service microscope and forward it to the secondary service microscope.

[0111] In some cases, some microscopic operation tasks not only require multiple microscopic functions to be completed together, but there may also be mutual or one-way dependencies between the functions of these microscopes. That is to say, the implementation of some functions requires the execution of other functions or the use of the execution results of other functions. Take Figure 8 as an example. The cell counting function needs to use the image of the target area of the object collected by the camera as the object for counting and recognition. At this time, there is a prerequisite for image data transmission for the invocation of the cell counting function. In particular, when these two functions with a dependency relationship are deployed on different microscopes, the scheduling and transmission of data are particularly important.

[0112] For this reason, in the microscopic service control method 100 according to the present invention, when the second function of the secondary service microscope is called in step S150, in the case where the second function depends on the data generated by the first function, in sub-step S151, preferably, a data acquisition instruction is first sent to the primary service microscope where the first function is located to acquire the required data generated by the first function. Then, receive the relevant data sent by the primary service microscope and forward it to the selected secondary service microscope where the second function is located. At this time, the microscopic service control device, as the center, completes the task of transferring data from the primary service microscope to the secondary service microscope. Therefore, since the microscopic service control device becomes the center of all data transfers and forms a centralized management topology structure, it is convenient for the microscopic service control device to manage and schedule the entire system.

[0113] In addition, not only in the case where two functions with a dependency relationship are deployed on different microscopes, but even when two functions with a dependency relationship are deployed on the same microscope, the above process of data transfer by the microscopic service control device can still be adopted. Of course, in the case where two functions with a dependency relationship are deployed on the same microscope, preferably, when the processing power of the microscope itself is sufficient, the data can also be directly transferred from the first function to the second function locally to reduce the burden on the network bandwidth in the local area network.

[0114] Therefore, in order to ensure the reliability of data transmission in the above situation, and at this time, the point-to-point connection paths between the microservice control device and the main service microscope and the secondary service microscope have been established. Therefore, a more reliable transmission protocol can be used to transmit the data generated by the first function. For example, preferably, when the data generated by the first function is data of types such as pictures, protocols such as the gRPC protocol can be used. For types in the form of data streams such as videos, protocols such as the RTSP protocol can be used. gRPC is a high-performance, open-source, and general RPC (Remote Procedure Calls) framework designed for mobile and HTTP / 2. Currently, gRPC provides C, Java, and Go language versions, namely: grpc, grpc-java, grpc-go, where the C version supports C, C++, Node.js, Python, Ruby, Objective-C, PHP, and C#. gRPC is designed based on the HTTP / 2 standard, bringing features such as bidirectional streaming, flow control, header compression, and multiplexed requests on a single TCP connection. These features make it perform better on mobile devices, consume less power, and take up less space. This also makes the gRPC protocol particularly beneficial for the transmission of data such as pictures in particular according to the method of the present invention. The RTSP protocol (Real Time Streaming Protocol) is an application layer protocol in the TCP / IP system. This protocol defines the efficient transmission of multimedia data by one-to-many applications over an IP network. RTSP uses TCP or UDP to complete data transmission in its architecture and controls the sending of real-time data. Generally speaking, the RTSP protocol is particularly suitable for the transmission of video stream data in the method of the present invention because of a series of advantages such as strong scalability, easy parsing, security, independence from transmission, and performance coordination.

[0115] Generally speaking, the advantages of gRPC compared to other protocols are at least the following:

[0116] 1. High performance: Using the binary protocol (Protocol Buffers) and the HTTP / 2-based transmission protocol, it provides high-performance remote procedure calls. Features such as multiplexing and header compression help reduce latency and increase throughput;

[0117] 2. Multi-language support: Supports multiple programming languages. By defining service interfaces through IDL, client and server-side code in different languages can be generated, providing more powerful cross-language support;

[0118] 3. Stream support: Supports bidirectional stream communication, enabling the client and server to send multiple messages simultaneously and make multiple RPC calls on a single connection;

[0119] 4. Data format: Use binary Protocol Buffers, which is more compact than text formats such as JSON and has higher transmission efficiency.

[0120] In some cases, to obtain accurate results, such as AI cell counting, the sub-service microscope needs to identify and label cells when performing cell counting, and then count the identified cells. After the cell counting is completed, the sub-service microscope not only sends the result of the cell counting but also the image after cell segmentation (recognition) to the microscopy service control device, i.e., the mobile terminal. If the user is not satisfied with the segmentation result, for example, there are obvious adhesions between multiple cells, or cells at the partial edge fail to be separated from the background, or a single cell is misidentified as multiple, etc., which leads to inaccurate counting, then a message is sent to the sub-service microscope to request reprocessing. For this purpose, the information sent includes instructions for re-cell recognition / counting, relevant images, and annotations indicating the problems existing in the current result. For example, for obvious adhesions between multiple cells or cells at the partial edge that fail to be separated from the background, the annotation at this time includes at least but is not limited to manual scribing to divide the adhered cells. In addition, the manual scribing in the above situation can not only be used for the current AI cell counting task but also be used simultaneously for the training of the AI cell counting model to improve the accuracy of the model in subsequent applications. At this time, the image after cell segmentation (recognition) obtained after the initial cell counting is essentially received by the microscopy service control device as an intermediate result of the sub-service microscope performing this function during the cell counting task and is used for further processing when necessary.

[0121] Alternatively and / or additionally, in some embodiments of the microscopy service control method 100 according to the present invention, step S150, in response to selecting another microscope as the sub-service microscope, further includes starting a new thread to establish a communication connection with the sub-service microscope through the IP address corresponding to the name of the sub-service microscope and invoking the corresponding second function:

[0122] Step S152: In response to the second function depending on the data generated by the first function, send a data forwarding instruction to the main service microscope, and establish a data transmission path between the main service microscope and the sub-service microscope according to the data forwarding instruction to send the data generated by the first function to the sub-service microscope.

[0123] In the above embodiments, according to the method of the present invention, when the second function of the secondary service microscope is called in step S150, in the case where the second function depends on the data generated by the first function, the scheduling and transmission of the data can also be alternatively or additionally performed as follows: sub-step S152 first issues a data forwarding instruction to the primary service microscope where the first function is located, so as to notify the primary service microscope to be ready to directly forward the data to the selected secondary service microscope. At this time, according to the data forwarding instruction issued by the microscopic service control device, a data transmission path is directly established between the primary service microscope and the secondary service microscope. At this time, to a certain extent, the role of the primary service microscope relative to the secondary service microscope changes from also being a server to a "client" for the secondary service microscope. Therefore, a data transmission path between the primary service microscope and the secondary service microscope can be established by adopting a similar method for establishing the communication connection between the microscopic service control device and the primary service microscope in step S120. After the data transmission path between the primary service microscope and the secondary service microscope is established, the data generated by the first function can be directly sent from the primary service microscope to the secondary service microscope.

[0124] Figure 9 The corresponding data transmission process is shown. As Figure 9 shown, as the microscopic service control device, the mobile terminal 1 is communicatively connected to the microscope as the primary service microscope and calls the functions of the camera service and the hardware control service in the microscope 1. It can be seen that the microscope 1 does not have the function of cell counting service. Therefore, when the function of cell counting service is needed, the function of the cell counting service of the microscope 2 is called according to the method of the present invention (the calling process is not shown). However, as described above, cell counting depends on the images captured by the camera. Therefore, at this time, according to the above embodiments of the present invention, according to the data forwarding instruction issued by the mobile terminal 1, the microscope 1 changes to a "client" to a certain extent at this time. It can receive UDP broadcasts on the network and directly establish a data transmission path with the microscope 2 according to the data forwarding instruction issued by the mobile terminal 1, and directly send the images captured by the camera to the microscope 2.

[0125] Compared with the method of using the microscopic service control device as a central transfer, the above method of directly transmitting data between servers reduces the burden on bandwidth and timeliness caused by data transmission, and is especially suitable for situations where the amount of data to be transmitted is large, or the bandwidth of the local area network itself is limited, or the timeliness requirement is high.

[0126] In some embodiments of the microscopic service control method 100 according to the present invention, the microscopic service control method 100 further includes:

[0127] Step S160: Configure the initial state of the functions of the online microscope as available in the broadcast;

[0128] Step S161: In response to a function being called, mark the state of the corresponding function of the corresponding microscope as occupied from available;

[0129] Step S162: In response to the function call being completed and the function being released, mark the state of the corresponding function of the corresponding microscope as available from occupied.

[0130] In the above embodiments, considering that during service scheduling, especially when multiple microscopic operation tasks are parallel, for example, when there are multiple microscopic service control devices in the system, to ensure that there is no conflict in the use of the functions of the microscope, the use status of the functions of the microscope is further marked in the broadcast according to the present invention. Preferably, a "used" field is configured in the UDP broadcast. For this purpose, in step S160, first configure the initial state of the functions of the online microscope as available in the broadcast. For example, preferably, mark the "used" field in the UDP broadcast as "false" to indicate availability. When this function is occupied, sub-step S161 marks the state of the corresponding function of the corresponding microscope as occupied from available. For example, preferably, mark the "used" field corresponding to this function in the UDP broadcast of the corresponding microscope as "true" to indicate occupancy. Further, when the function call is completed and the function is released, sub-step S162 marks the state of the corresponding function of the corresponding microscope as available from occupied again. For example, preferably, mark the "used" field corresponding to this function in the UDP broadcast of the corresponding microscope as "false" to indicate availability.

[0131] Based on the above marking of the use status of the microscope functions, further, in some embodiments of the microscopic service control method 100 according to the present invention, step S110 listens to the broadcast sent by the online microscope and configures a service list based on the broadcast. The service list at least includes the name of the online microscope, its corresponding IP address, and functions, and further includes:

[0132] Step S114: Analyze the broadcast to obtain the name of the online microscope, its corresponding IP address, functions, and the status of the corresponding functions;

[0133] Step S115: Configure the service list according to the name of the online microscope, its corresponding IP address, and the functions marked as available.

[0134] In the case where the usage status of the microscope function is indicated in the UDP broadcast as described above, for the method according to the present invention, it is more preferable that in step S110, configuring the service list is implemented as sub-step S114, which first parses the broadcast to obtain the names of the online microscopes, their corresponding IP addresses, functions, and the status of the corresponding functions, such as the name or serial number SN, IP address, function, and its usage status indication. Then, in sub-step S115, the service list is configured according to the names of the online microscopes, their corresponding IP addresses, and the functions marked as available in the status. That is, only the functions with the usage status of the microscope being available are configured in the service list. Thus, in these embodiments, the functions that have been occupied will be filtered out in this way and will not appear in the service list, thereby avoiding conflicts in the invocation of microscope functions in the case of multiple microscopic operation tasks running in parallel.

[0135] Alternatively, in order to avoid conflicts in the invocation of microscope functions in the case of multiple microscopic operation tasks running in parallel, in some embodiments of the microscopic service control method 100 according to the present invention, the microscopic service control method 100 further includes:

[0136] Step S170: Check the status of the corresponding function based on the function call instruction;

[0137] Step S171: In response to the status of the corresponding function being displayed as occupied, prompt that the corresponding service of the current microscope is occupied, and feedback the names of other microscopes that support the corresponding function according to the service list;

[0138] Step S172: In response to the status of the corresponding function being displayed as available, call the function and mark the status of the corresponding function of the corresponding microscope from available to occupied.

[0139] Specifically, instead of the aforementioned filtering method when configuring the service list, in other embodiments, the above steps S170 to S172 can also be adopted. Here, first, based on the indication of the usage status of the microscope function as described above, and based on the function call instruction, in step S170, directly check the usage status field corresponding to the function in the corresponding UDP broadcast. If the status of the function is displayed as occupied, for example, the corresponding "used" field is marked as "true", then in sub-step S171, prompt that the corresponding service of the current microscope is occupied, and feedback the names of other microscopes that support the corresponding function according to the service list. In contrast, if the status of the corresponding function is displayed as available, for example, the corresponding "used" field is marked as "false", then in sub-step S172, directly call the function and mark the status of the corresponding function of the corresponding microscope from available to occupied, for example, mark the corresponding "used" field as "true".

[0140] In some embodiments of the microscopic service control method 100 according to the present invention, the service list is sorted according to at least one of the listening broadcast time, the microscope online time, the number of microscope function types, or the priority of microscope function types. Specifically, in the service list configured in the microscopic service control method 100 according to the present invention, the entries recording the relevant information of each online microscope are sorted in a certain order. Preferably, the entries in the service list are sorted in the order of the time of the monitored UDP broadcast, which is more conducive to ensuring the timeliness of the information recorded in the service list. Alternatively, preferably, the entries in the service list are sorted in the order of the time when the microscope accesses the network or the online time. Thus, to a certain extent, it is beneficial to ensure the stability of the service list. In addition, it can also be sorted according to the number of microscope function types or according to the priority of microscope function types. For this purpose, it can be pre-set according to different needs or habits of users, which helps to enhance the user experience.

[0141] In some embodiments of the microscopic service control method 100 according to the present invention, the first function includes at least one microscope function type, and the second function includes at least one microscope function type different from the first function. Preferably, the first function and the second function are selected from a function group set according to requirements. In a preferred embodiment, the function group includes at least the following function types: image acquisition, cell counting, cell confluence, transfection efficiency, AI model, AI cell counting, AI cell confluence, stitching, hardware control, and so on. In addition, the function group according to the present invention is not limited to only including the function types listed above, but all functions in the field of microscopes, especially in the field of digital microscopes, can be applicable to the microscopic service control method 100 according to the present invention, as well as the corresponding components, devices, and the corresponding microscopic service supply method and the entire microscopic service system described below.

[0142] According to a second aspect of the present invention, there is also provided a microscopic service control component 200. Figure 3 The schematic block diagram showing an embodiment of the microscopic service control component 200 according to the present invention is as follows Figure 3 As shown, the microscopic service control component 200 includes:

[0143] An online broadcast listening module 210, which is configured to listen to the broadcasts sent by the online microscopes and configure a service list based on the broadcasts. The service list at least includes the names of the online microscopes, their corresponding IP addresses, and functions;

[0144] The main service call module 220 is configured to query a service list, select a corresponding microscope as the main service microscope according to the first function, establish a communication connection with the main service microscope through the IP address corresponding to the name of the main service microscope, and call the first function;

[0145] The service query module 230 is configured to, in response to a call instruction for another second function, check whether the main service microscope supports the second function;

[0146] The secondary service scheduling module 240 is configured to, in response to the main service microscope not supporting the second function, feedback the name of another microscope that supports the second function according to the service list for selection as the secondary service microscope;

[0147] The secondary service call module 250 is configured to, in response to selecting another microscope as the secondary service microscope, start a new thread to establish a communication connection with the secondary service microscope through the IP address corresponding to the name of the secondary service microscope and call the corresponding second function.

[0148] According to a third aspect of the present invention, there is also provided a microscopic service control device 300, Figure 4 which shows a schematic hardware structure diagram of an embodiment of the microscopic service control device 300 according to the present invention. As Figure 4 shown, the microscopic service control device 300 may be a local computer device (such as a personal computer, notebook, tablet computer or mobile phone, i.e., a mobile phone) having one or more processors 310 and one or more memories 320. Preferably, the microscopic service control device 300 is configured as a mobile terminal. A computer program is stored in the one or more memories 320, and when the computer program is executed by the processor 310, it implements the microscopic service control method 100 of any one of the foregoing embodiments.

[0149] In addition, taking the microscopic service control device 300 shown in Figure 4 as an example, in the microscopic service control device 300, there is a processor 310 and a memory 320, and may further include: an input device 330 and an output device 340. The processor 310, the memory 320, the input device 330 and the output device 340 may be connected through a bus or other means, Figure 4 taking connection through a bus as an example. The input device 330 can receive input digital or character information, and generate a signal input related to microscopic service control. The output device 340 may include a display device such as a display screen.

[0150] The microscopic service control device 300 may include any circuit or combination of circuits. In some embodiments, the microscopic service control device 300 may include one or more processors of any type. As used in the present invention, a processor may refer to any type of computing circuit, such as but not limited to a microprocessor, a microcontroller, a complex instruction set computing (CISC) microprocessor, a reduced instruction set computing (RISC) microprocessor, a very long instruction word (VLIW) microprocessor, a graphics processor, a digital signal processor (DSP), a multi-core processor, a field programmable gate array (FPGA) such as a microscope or a microscope component (such as a camera), or any other type of processor or processing circuit. Other types of circuits that may be included in the microscopic service control device 300 may be custom circuits, application specific integrated circuits (ASICs), etc., such as one or more circuits (such as communication circuits) used in wireless devices such as mobile phones, tablet computers, laptops, two-way radios, and similar electronic systems. The microservice control device 300 may include one or more storage devices, which may include one or more storage elements suitable for a particular application, such as main memory in the form of random access memory (RAM), one or more hard disk drives and / or one or more drives for handling removable media such as compact disks (CDs), flash memory cards, digital video disks (DVDs), etc. The microservice control device 300 may also include a speaker, a mouse, a trackball, a touch screen, a voice recognition device, or any other device that allows a user to input information to the microservice control device 300 or receive information from the microservice control device 300.

[0151] Some or all of the method steps may be performed by (or using) a hardware device (e.g., a processor, a microprocessor, a programmable computer or an electronic circuit). In some embodiments, such a device may perform one or more of the most important method steps.

[0152] According to a fourth aspect of the present invention, a microservice provisioning method 400 based on the aforementioned microservice control method is also provided. Figure 5 FIG. 4 is a schematic block diagram of an embodiment of a micro-service provisioning method 400 according to the present invention. Figure 5 In the illustrated embodiment, the microservice provisioning method 400 includes:

[0153] Step S410: sending a broadcast at a fixed time in an online state, wherein the broadcast carries at least the name of the microscope and its corresponding IP address and function information;

[0154] Step S420: in response to receiving a communication request sent by the microservice control device, establishing a communication connection with the microservice control device and accepting a function call of the microservice control device;

[0155] Step S430: Execute corresponding functions according to the call;

[0156] Step S440: Send the execution result of the called function to the microscopic service control device.

[0157] Specifically, first, in order to enable other terminals in the microscopic service system to discover and understand the functions supported by this system and the carriers of these functions, the microscopic service supply method 400 according to the present invention first sends a broadcast in the online state regularly in step S410, preferably a UDP broadcast. The broadcast carries at least the name of the microscope, its corresponding IP address, and function information. Thus, the functions provided by each microscopic service supply end, that is, each microscope, are broadcast to the local area network.

[0158] Subsequently, after the microscopic service supply ends, that is, each microscope, receives the communication request sent by the microscopic service control device, it establishes a communication connection with the microscopic service control device according to the request and accepts the function call of the microscopic service control device in step S420. Run the corresponding function in step S430 according to the corresponding call. Finally, during or after the operation, send the execution status or result of the called function to the microscopic service control device in step S440.

[0159] Furthermore, in some cases, some microscopic operation tasks require multiple microscopic functions to be completed together. At this time, according to the present invention, the function call can not only be scheduled by the microscopic service control device as in some embodiments of the foregoing microscopic service control method 100, but also consider solving the scheduling problem at the source on the side of the microscopic service supply ends, that is, each microscope. In other words, the microscopic service supply ends, that is, each microscope, can call the functions of other microscopic service supply ends, that is, other microscopes, to assist itself in completing the microscopic operation task when needed.

[0160] For this purpose, in some embodiments, the microscopic service supply end itself can not only be the "source end" of the UDP broadcast, but also act as the "terminal" of the UDP broadcast to listen to the broadcast to a certain extent. Preferably, in some embodiments of the microscopic service supply method 400 according to the present invention, the microscopic service supply method 400 further includes:

[0161] Step S450: Listen to the broadcast, and in response to the function called by the microscopic service control device not being supported, establish a communication connection with the IP address having the corresponding function according to the broadcast and call the corresponding function.

[0162] Specifically, in step S450, the microscopic service provider itself also acts as a "terminal" for UDP broadcast to listen for broadcasts to a certain extent. When there is a situation where it cannot meet the functions called by the microscopic service control device, the microscopic service provider establishes a communication connection with the IP address with the corresponding function according to the broadcast in step S450 and calls the corresponding function. In other words, at this time, the microscopic service provider corresponds to the role of the main service microscope in the current microscopic service system, and the microscopic service provider where the function it calls is located corresponds to the role of the secondary service microscope. Therefore, a communication connection between the two microscopic service providers, that is, the two microscopes, can be established in a similar manner to the establishment of the communication connection between the microscopic service control device and the main service microscope in step S120, and the function call can be similarly implemented, which will not be elaborated here.

[0163] Correspondingly, in some embodiments of the microscopic service providing method 400 according to the present invention, the microscopic service providing method 400 further includes:

[0164] Step S451: In response to receiving a communication request sent by another entity, establish a communication connection with the other entity and accept the function call of the other entity.

[0165] Here, corresponding to the foregoing step S450, when receiving a communication request sent by another entity, establish a communication connection with the other entity and accept the function call of the other entity in step S451. In other words, at this time, the microscopic service provider corresponds to the role of the secondary service microscope in the current microscopic service system, and the other entity that calls its function corresponds to the role of the main service microscope. Therefore, a communication connection between the two microscopic service providers, that is, the two microscopes, can be established in a similar manner to the establishment of the communication connection between the microscopic service control device and the main service microscope in step S120, and the function call can be similarly implemented, which will not be elaborated here.

[0166] In some embodiments of the microscopic service providing method 400 according to the present invention, the microscopic service providing method 400 further includes:

[0167] Step S461: In response to receiving a data acquisition instruction sent by the microscopic service control device, send relevant data generated by the corresponding function to the microscopic service control device.

[0168] Corresponding to the sub-step S151 of the microscopic service control method 100 according to the present invention, after receiving the data acquisition instruction sent by the microscopic service control device as the main service microscope, the microscopic service provider sends relevant data generated by the corresponding function to the microscopic service control device in sub-step S461, so that the microscopic service control device processes the corresponding data or forwards the corresponding data to other microscopic service providers.

[0169] Alternatively and / or additionally, in some embodiments of the microscopic service supply method 400 according to the present invention, the microscopic service supply method 400 further includes:

[0170] Step S462: In response to receiving a data forwarding instruction issued by the microscopic service control device, establish a data transmission path according to the data forwarding instruction and the corresponding IP address to send relevant data generated by the corresponding function.

[0171] Corresponding to the sub-step S152 of the microscopic service control method 100 according to the present invention, after receiving the data forwarding instruction issued by the microscopic service control device, the microscopic service provider establishes a data transmission path according to the data forwarding instruction and the corresponding IP address in sub-step S462 to send relevant data generated by the corresponding function. In other words, at this time, the microscopic service provider executing sub-step S462 directly establishes a data transmission path with other microscopic service providers acting as secondary service microscopes according to the data forwarding instruction issued by the microscopic service control device, so as to send relevant data generated by the corresponding function.

[0172] In some embodiments of the microscopic service supply method 400 according to the present invention, the microscopic service supply method 400 further includes:

[0173] Step S471: In response to the function called depending on data generated by other functions, send a data request to the microscopic service control device and receive relevant data generated by the corresponding function forwarded by the microscopic service control device.

[0174] When the microscopic service provider acting as the selected secondary service microscope has a function it calls that depends on data generated by other functions, it sends a data request to the microscopic service control device. Then, corresponding to the sub-step S151 of the microscopic service control method 100 according to the present invention, in sub-step S471, it receives relevant data generated by the corresponding function forwarded by the microscopic service control device for use in the operation of the corresponding function.

[0175] Alternatively, in some embodiments of the microscopic service supply method 400 according to the present invention, the microscopic service supply method 400 further includes:

[0176] Step S472: In response to the function called depending on data generated by other functions, send a data request to the microscopic service control device and establish a data transmission path with the IP address where the other function is located,

[0177] to receive relevant data generated by the corresponding function.

[0178] When the microscopic service provider, as the selected secondary service microscope, depends on data generated by other functions for the functions it invokes, it also sends a data request to the microscopic service control device. Alternatively, corresponding to sub-step S152 of the microscopic service control method 100 according to the present invention, in sub-step S472, upon request, a data transmission path is established with the IP address where other functions are located to receive relevant data generated by the corresponding functions. In other words, at this time, the microscopic service provider executing sub-step S472, as the secondary service microscope, should establish a data transmission path with the main service microscope upon its request (such as sub-step S462) to receive relevant data.

[0179] According to a fifth aspect of the present invention, there is also provided a microscope 500, Figure 6 which shows a schematic diagram of the hardware structure of an embodiment of the microscope 500 according to the present invention. As Figure 5 shown, the microscope 500 includes a microscope main body 550, one or more memories 520, and one or more processors 510. A computer program is stored in the one or more memories 520, and when the computer program is executed by the processor 510, it implements the microscopic service supply method 400 of any one of the foregoing embodiments.

[0180] In addition, taking the microscope 500 shown as an example, in this microscope 500, there is included a microscope main body 550, a processor 510, and a memory 520, and it may further include: an input device 530 and an output device 540. The microscope main body 550, the processor 510, the memory 520, the input device 530, and the output device 540 may be connected through a bus or other means, Figure 6 taking connection through a bus as an example. The input device 530 can receive input digital or character information and generate a signal input related to the microscopic service supply. The output device 540 may include a network interface, a display screen, etc. Figure 6 The input device 530 can receive input digital or character information and generate a signal input related to the microscopic service supply. The output device 540 may include a network interface, a display screen, etc.

[0181] According to a sixth aspect of the present invention, there is also provided a microscopic service system 1000, as Figure 7 shown. The microscopic service system 1000 includes at least one microscopic service control device 300 according to the present invention and a plurality of microscopes 500 according to the present invention. The microscopic service system constructs a topological connection based on a local area network, preferably a wireless local area network. In a preferred embodiment, the microscope 500 is connected to a router through a network cable to access the local area network, and the microscopic service control device preferably accesses the local area network through a wireless network card. Here, the microscopic service control device 300 in the microscopic service system executes the microscopic service control method 100 of any one of the foregoing embodiments, and the microscope 500 in the microscopic service system executes the microscopic service supply method 400 of any one of the foregoing embodiments.

[0182] Figure 7 FIG. shows a schematic diagram of an embodiment of a microscopic service system 1000 according to the present invention. The microscopic service system 1000 includes a microscope 500 and a microscopic service control device 300. For the purpose of clarity and not limitation, Figure 7 only one microscope 500 and one microscopic service control device 300 are shown. However, the microscopic service system 1000 according to the present invention is not limited to having only one microscope 500 and one microscopic service control device 300, but includes a plurality of microscopes 500 and at least one microscopic service control device 300. The microscope 500 can be configured to capture images and connect to the microscopic service control device 300 via a local area network. Here, the microscopic service control device 300 is configured to execute the microscopic service control method 100 described according to the present invention, while the microscope 500 is configured to execute the microscopic service supply method 400 described according to the present invention. In addition, the microscope 500 is preferably constructed as a digital microscope. And the microscopic service control device 300 can be constructed as a computer device, such as a personal computer (PC). Preferably, the microscopic service control device 300 can also be constructed as a mobile terminal, such as a laptop, a tablet, or a mobile phone, i.e., a cell phone or even a personal digital assistant (PDA), etc.

[0183] In fact, based on the requirements of microscopic services and the network bandwidth in the system, the number of terminals in the microscopic service system 1000 according to the present invention can be more, preferably reaching the order of dozens, such as 30 or even more or less, where these dozens include a plurality of microscopes 500 and at least one microscopic service control device 300. In addition, each microscope can usually carry 1 to 3 different types of functions, preferably 1 or 2. If necessary, more different types of functions can also be carried on a single microscope, such as more than 3.

[0184] Here, it should be understood that although the above has been specifically explained and elaborated for the methods according to the present invention, in the case of no conflict with each other, the corresponding embodiments, technical features, and beneficial technical effects also apply to the corresponding components, devices, systems, etc. according to the present invention.

[0185] Those skilled in the art will also understand that the various exemplary logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein can be implemented as electronic hardware, computer software, or a combination of both. To clearly illustrate this interchangeability of hardware and software, the functions of the various illustrative components, blocks, modules, circuits, and steps have been described generally. Whether this function is implemented as software or hardware depends on the particular application and the design constraints imposed on the overall system. The functions that can be implemented in various ways by those skilled in the art for each specific application, but such implementation decisions should not be construed as causing a departure from the scope of the disclosure of the embodiments of the present invention.

[0186] It should be understood that, as used herein, unless the context clearly supports the exception, the singular form "a" is also intended to include the plural form. It should also be understood that the "and / or" used herein refers to any and all possible combinations of one or more of the associated listed items. The serial numbers of the embodiments of the present invention disclosed above are for description only and do not represent the superiority or inferiority of the embodiments.

[0187] Those of ordinary skill in the art should understand that: the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features between the above embodiments or different embodiments can also be combined, and there are many other variations in different aspects of the embodiments of the present invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present invention shall be included within the protection scope of the embodiments of the present invention.

Claims

1. A microscopic service control method, wherein, The described microscopic service control method includes the following steps: Listen to the broadcasts sent by the online microscopes, and configure a service list based on the broadcasts. The service list at least includes the names of the online microscopes, their corresponding IP addresses, and functions; Query the service list, select a corresponding microscope as the main service microscope according to the first function, establish a communication connection with the main service microscope through the IP address corresponding to the name of the main service microscope, and call the first function; In response to a call instruction for another second function, check whether the main service microscope supports the second function; In response to the main service microscope not supporting the second function, feedback the names of other microscopes that support the second function according to the service list for selection as the secondary service microscope; In response to selecting another microscope as the secondary service microscope, start a new thread to establish a communication connection with the secondary service microscope through the IP address corresponding to the name of the secondary service microscope and call the corresponding second function.

2. The microscopic service control method according to claim 1, wherein, The step of listening to the broadcasts sent by the online microscopes and configuring a service list based on the broadcasts, where the service list at least includes the names of the online microscopes, their corresponding IP addresses, and functions further includes: In response to listening to the broadcasts sent by the online microscopes, receive and parse the corresponding broadcast packets. The broadcast packets at least contain information about the names of the microscopes, their corresponding IP addresses, and functions; and Create a service list according to the information about the names, their corresponding IP addresses, and functions; or Update the service list according to the information about the names, their corresponding IP addresses, and functions.

3. The microscopic service control method according to claim 1 or 2, wherein, The step of, in response to a call instruction for another second function, checking whether the main service microscope supports the second function further includes: In response to a call instruction for another second function, query the function corresponding to the name of the main service microscope in the service list; In response to the function corresponding to the name of the main service microscope including the second function, call the second function of the main service microscope; In response to the function corresponding to the name of the main service microscope not including the second function, determine that the main service microscope does not support the second function.

4. The microscopic service control method according to claim 1 or 2, wherein, The step of, in response to selecting another microscope as the secondary service microscope, starting a new thread to establish a communication connection with the secondary service microscope through the IP address corresponding to the name of the secondary service microscope and call the corresponding second function further includes: In response to the second function depending on the data generated by the first function, send a data acquisition instruction to the main service microscope to acquire the data generated by the first function, and receive the data sent by the main service microscope and forward it to the secondary service microscope; Or In response to the second function depending on the data generated by the first function, send a data forwarding instruction to the main service microscope, and establish a data transmission path between the main service microscope and the secondary service microscope according to the data forwarding instruction to send the data generated by the first function to the secondary service microscope.

5. The microscopic service control method according to claim 4, wherein the microscopic service control method further comprises receiving intermediate results generated by the secondary service microscope when executing the second function.

6. The microscopic service control method according to claim 1 or 2, wherein, The service list is sorted according to at least one of the listening broadcast time, the microscope online time, the number of microscope function types, or the priority of microscope function types.

7. The microscopic service control method according to claim 1 or 2, wherein, The first function includes at least one microscope function type, and the second function includes at least one microscope function type different from the first function, wherein the first function and the second function are selected from a function group, and the function group includes at least the following function types: image acquisition, cell counting, cell confluence, transfection efficiency, AI model, AI cell counting, AI cell confluence, stitching, hardware control.

8. The microscopic service control method according to claim 1 or 2, wherein, The microscopic service control method further comprises: Configuring the initial state of the functions of the online microscopes as available in the broadcast; In response to a function being called, marking the state of the corresponding function of the corresponding microscope as occupied from available; In response to the function call being completed and the function being released, marking the state of the corresponding function of the corresponding microscope as available from occupied.

9. The microscopic service control method according to claim 8, wherein, Listening to the broadcast sent by the online microscopes and configuring the service list based on the broadcast, where the service list at least includes the names of the online microscopes, their corresponding IP addresses, and functions, and further comprises: Parsing the broadcast to obtain the names of the online microscopes, their corresponding IP addresses, functions, and the states of the corresponding functions; Configuring the service list according to the names of the online microscopes, their corresponding IP addresses, and the functions marked as available based on the states.

10. A microscopic service control component, wherein, The microscopic service control component comprises: An online broadcast listening module configured to listen to the broadcast sent by the online microscopes and configure the service list based on the broadcast, where the service list at least includes the names of the online microscopes, their corresponding IP addresses, and functions; A main service calling module configured to query the service list, select a corresponding microscope as the main service microscope according to the first function, establish a communication connection with the main service microscope through the IP address corresponding to the name of the main service microscope, and call the first function; A service query module configured to, in response to a call instruction for another second function, check whether the main service microscope supports the second function; A secondary service scheduling module configured to, in response to the main service microscope not supporting the second function, feedback the names of other microscopes that support the second function according to the service list for selection as the secondary service microscope; A secondary service calling module configured to, in response to selecting another microscope as the secondary service microscope, start a new thread to establish a communication connection with the secondary service microscope through the IP address corresponding to the name of the secondary service microscope and call the corresponding second function.

11. A microscopic service control device, comprising a memory and a processor, wherein, A computer program is stored in the memory, and when the computer program is executed by the processor, it executes the microscopic service control method according to any one of claims 1 to 9.

12. The microscopic service control device according to claim 11, wherein, The microscopic service control device is configured as a mobile terminal.

13. A microservice supply method based on the microservice control method according to any one of claims 1 to 9, wherein, The microscopic service providing method includes the following steps: Regularly send a broadcast in the online state, where the broadcast carries at least information about the name of the microscope, its corresponding IP address, and functions; In response to receiving a communication request sent by the microscopic service control device, establish a communication connection with the microscopic service control device and accept function calls from the microscopic service control device; Execute corresponding functions according to the calls; Send the execution result of the called function to the microscopic service control device.

14. The microscopic service supply method according to claim 13, wherein, The microscopic service providing method further includes: Monitor the broadcast, and in response to the function called by the microscopic service control device not being supported, establish a communication connection with the IP address with the corresponding function according to the broadcast and call the corresponding function; Or In response to receiving a communication request sent by another entity, establish a communication connection with the other entity and accept function calls from the other entity.

15. The microscopic service supply method according to claim 13, wherein, The microscopic service providing method further includes: In response to receiving a data acquisition instruction sent by the microscopic service control device, send relevant data generated by the corresponding function to the microscopic service control device, Or In response to receiving a data forwarding instruction sent by the microscopic service control device, establish a data transmission path with the corresponding IP address according to the data forwarding instruction to send relevant data generated by the corresponding function.

16. The microscopic service supply method according to claim 13, wherein, The microscopic service providing method further includes: In response to the called function depending on data generated by other functions, send a data request to the microscopic service control device and receive relevant data generated by the corresponding function forwarded by the microscopic service control device; Or In response to the called function depending on data generated by other functions, send a data request to the microscopic service control device, and establish a data transmission path with the IP address where the other function is located to receive relevant data generated by the corresponding function.

17. A microscope, wherein, The microscope includes a microscope main body, a memory, and a processor. A computer program is stored in the memory, and when the computer program is executed by the processor, it implements the microscopic service providing method according to any one of claims 13 to 16.

18. A microscopic service system, wherein, The microscopic service system includes at least one microscopic service control device according to any one of claims 11 to 12 and multiple microscopes according to claim 17.