Industrial calling system and method based on interphone
By controlling the PTT switch of the walkie-talkie on the industrial control machine and connecting it to the early warning system, the problems of high cost of traditional walkie-talkie equipment and inability to access the early warning system are solved, efficient and safe industrial information transmission is achieved, hardware investment is reduced and production efficiency is improved .
Patent Information
- Application Number
- CN202411418337.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2024-12-20
AI Technical Summary
In industrial production, traditional walkie-talkies have problems such as high equipment costs, affecting non-receivers and being unable to directly access the early warning system, resulting in untimely information transmission and low production efficiency.
By plugging the USB port of the RM10X0 chip into the industrial control machine, downloading and installing the driver to control the walkie-talkie PTT switch, combining the service module, security authentication module and application module, remote control and message notification of the walkie-talkie are realized, and single sign-on authentication is used with OAuth2 and IdentityServer4. , access the early warning system and use message queue and multi-level feedback queue scheduling algorithm to process early warning information.
It reduces equipment costs, reduces unnecessary hardware investment, improves the real-time and security of information transmission, realizes seamless connection between the walkie-talkie and the early warning system, and improves production efficiency and safety.
Smart Images

Figure CN119172660A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intercom communication, and more specifically, to an industrial calling system and method based on an intercom. Background Art
[0002] In the modern industrial production process, the timeliness and accuracy of information transmission are of great significance to improving production efficiency and reducing costs. At present, the commonly used information transmission methods in factories include large screen prompts, telephones, text messages and intercoms. Among them, the intercom call system is widely used in various production scenarios due to its real-time, convenient and wide coverage. However, with the development of industrial automation and intelligence, the traditional intercom call system has gradually exposed some limitations and needs to be improved.
[0003] Advantages of intercom method:
[0004] (1) Real-time: Walkie-talkies can realize instant communication, ensuring that information is delivered to relevant personnel as soon as possible;
[0005] (2) Convenience: Walkie-talkies are easy to carry, simple to operate, and suitable for various complex environments;
[0006] (3) Wide coverage: Walkie-talkies can achieve wireless communication within a certain range without being restricted by terrain and environment.
[0007] Although intercoms have many advantages in factory information transmission, they still have the following limitations and problems:
[0008] (1) High equipment cost: To achieve full coverage, factories need to invest in a large number of intercom equipment, which increases the cost burden;
[0009] (2) Impact on non-receiving personnel: Walkie-talkies use broadcasting to send information, which may interfere with personnel who do not need to receive information;
[0010] (3) Unable to directly access the early warning system: Traditional walkie-talkies cannot directly access external devices such as early warning systems, resulting in untimely information transmission, affecting production efficiency and safety.
[0011] In summary, although walkie-talkies have certain advantages in factory information transmission, their limitations and problems still need to be addressed to achieve more efficient, low-cost and secure industrial information transmission. Summary of the invention
[0012] An object of the present invention is to provide an industrial call system and method based on an intercom to solve the problems of high cost of intercom equipment, impact on non-receiving personnel, and inability to directly access the early warning system.
[0013] According to a first aspect of the present invention, there is provided an industrial call system based on an intercom, comprising:
[0014] Intercom module: used to insert the USB port of the RM10X0 chip into the industrial computer, and download and install the corresponding driver through the industrial computer to drive and control the intercom PTT (Push to Talk) switch;
[0015] Service module: encapsulates the IO module and audio module that control the intercom module;
[0016] Security authentication module: performs login authentication on the interface encapsulated by the service module;
[0017] Application module: Message notification is performed by calling the intercom call API.
[0018] Optionally, a USB to 3.5mm audio cable is used to connect the intercom and the industrial computer, so that the industrial computer outputs audio to the intercom.
[0019] Optionally, the industrial computer is provided with an audio output module, and the audio output module includes two audio output modes, namely:
[0020] Use the NAudio library to build an MP3 player to play audio files;
[0021] Use the SpeechSynthesizer class to convert text to audio and output it.
[0022] Optionally, the IO module and the audio module are encapsulated as a RESTFUL interface, and the RESTFUL interface is deployed on an industrial computer supporting IIS services.
[0023] Optionally, for an industrial computer that does not support IIS services, the IO module and the audio module that control the intercom are encapsulated into a server through Socket.
[0024] Optionally, in the security authentication module, for the API interface, OAuth2 and IdentityServer4 technologies are used to perform single sign-on authentication of the RESTFUL interface.
[0025] Optionally, in the security authentication module, for the Socket server, SSL (Secure Sockets Layer) and TLS (Transport Layer Security) protocols are used for encrypted communication.
[0026] Optionally, an early warning system is also connected to the application module, and the early warning system processes early warning information by using a message queue and a multi-level feedback queue scheduling algorithm (MFQ).
[0027] According to a second aspect of the present invention, there is provided an industrial calling method based on an intercom, comprising the following steps:
[0028] Insert the USB port of the RM10X0 chip into the industrial computer, and download and install the corresponding driver through the industrial computer to drive and control the PTT switch of the intercom;
[0029] Encapsulating the IO module and the audio module controlling the intercom module, and invoking the intercom call through the encapsulated interface;
[0030] Performing login authentication on the interface encapsulated by the service module;
[0031] Call the intercom call API for message notification.
[0032] Optionally, the step of performing login authentication on the interface encapsulated by the service module includes the following authentication steps:
[0033] a. The user attempts to access the intercom call function API;
[0034] b. The user enters the username and password on the login page of the authentication server;
[0035] c. The authentication server generates an access token based on the user's authorization information and associates it with the user's identity;
[0036] d. The authentication server returns the access token to the application;
[0037] e. The resource server verifies the validity of the access token and allows access to the protected resource if the token is valid;
[0038] f. Refresh token.
[0039] The intercom-based industrial call system and method disclosed in the present invention have the following technical effects:
[0040] The RM10X0 chip is used to realize automatic control of the intercom PTT switch, which reduces equipment costs and unnecessary hardware investment;
[0041] The industrial computer is equipped with an audio output module, which includes two audio output modes: using the NAudio library to build an MP3 player to play audio files, and using the SpeechSynthesizer class to convert text to audio and output it. Both audio playback modes are encapsulated to achieve flexible use.
[0042] Encapsulating the IO module and the audio module into a RESTful interface, and implementing remote control of the intercom through the RESTful interface;
[0043] Use OAuth2 and IdentityServer4 to implement single sign-on authentication, allowing users to achieve a seamless authentication experience across multiple applications while maintaining the security of applications and user data;
[0044] It is also connected to the early warning system, which uses a message queue and a multi-level feedback queue scheduling algorithm (MFQ) to process early warning information, achieves seamless connection with external devices such as the early warning system, and improves production efficiency and safety.
[0045] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0047] Figure 1 A schematic diagram of the overall architecture of an industrial call system based on an intercom provided in an embodiment of the present invention;
[0048] Figure 2 A schematic diagram of the structure of the RM10X0 chip of the intercom-based industrial call system provided in an embodiment of the present invention;
[0049] Figure 3 A schematic flow chart of an industrial calling method based on an intercom provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0050] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0051] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0052] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0053] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0054] Although the walkie-talkie in the prior art has certain advantages in factory information transmission, it still needs to solve its limitations and problems such as high equipment cost, impact on non-receiving personnel, and inability to directly access the early warning system. The industrial call system and method based on walkie-talkie proposed in this application is to overcome these limitations and problems and achieve more efficient, low-cost and safe industrial information transmission.
[0055] The present invention proposes an embodiment of an industrial call system based on an intercom, specifically, as Figure 1 shown, including:
[0056] Intercom module: used to insert the USB port of the RM10X0 chip into the industrial computer, and download and install the corresponding driver through the industrial computer to drive the control of the intercom PTT (Push to Talk) switch; insert the USB port of the RM10X0 chip into the USB interface of the industrial computer to ensure the physical connection is stable, and then download and install the driver that matches the RM10X0 chip on the industrial computer. These drivers are responsible for identifying the chip, configuring communication parameters, and enabling the industrial computer to correctly control the PTT switch of the intercom. Integrating the intercom function into the industrial computer system facilitates linkage control with other industrial equipment and realizes more complex industrial communication needs.
[0057] Specifically, the structure of the RM10X0 chip is as follows Figure 2 As shown, P0 is used to connect the positive pole of the switch, and GND is used to connect the negative pole of the switch. The corresponding control program is developed on the industrial computer. The control chip pin is in output mode, the default is low level, and after receiving the signal, it outputs a high level to turn on the PTT switch of the walkie-talkie, so that the walkie-talkie can receive audio.
[0058] Service module: encapsulates the IO module and audio module that control the walkie-talkie module, and provides a unified interface for upper-layer applications to call; the IO module encapsulation encapsulates the IO operation of controlling the PTT switch into an independent module, including the functions of opening, closing, and status query of the switch; the audio module encapsulation: encapsulates the audio input and output functions of the walkie-talkie, including microphone recording, speaker playback, and audio signal encoding and decoding processing. The installed modules are strictly tested and optimized to reduce errors and failures caused by direct hardware operations.
[0059] Security authentication module: performs login authentication on the interface encapsulated by the service module; through strict login authentication and authority management, prevents unauthorized users from accessing system resources and protects the system from malicious attacks.
[0060] Application module: Call the intercom call API to send message notifications, including text messages, voice messages, etc., and provide a user interface or command line interface to allow users to enter commands and view feedback information. By flexibly calling the intercom call API, various industrial communication needs can be quickly realized, such as emergency calls, dispatch commands, etc.
[0061] The embodiment of the present invention develops an intercom calling system so that the staff can directly use the system to call the intercom to output the corresponding message to notify the repairman or relevant functional personnel holding the intercom, thereby reducing the demand for intercoms, reducing equipment costs, and reducing unnecessary hardware investment.
[0062] In the embodiment of the present invention, a USB to 3.5mm audio cable is used to connect the intercom and the industrial computer, and the USB end of the USB to 3.5mm audio cable is inserted into the USB port of the industrial computer, so that the industrial computer outputs audio to the intercom. Through the powerful processing power of the industrial computer, voice commands can be quickly generated and sent, thereby improving the real-time and accuracy of communication.
[0063] In the embodiment of the present invention, the industrial computer is provided with an audio output module, and the audio output module includes two audio output modes, namely:
[0064] Use the NAudio library to build an MP3 player to play audio files and pre-recorded audio. This method allows the audio style to be customized according to functional requirements, with high degree of freedom, but the corresponding audio files need to be prepared in advance;
[0065] The SpeechSynthesizer class is used to convert text to audio and output it. This method can flexibly parse text information and output it through the intercom, but the audio style provided by the system is fixed and may not meet actual needs. Therefore, both audio playback methods are encapsulated to achieve flexible use.
[0066] In an embodiment of the present invention, the IO module and the audio module are encapsulated as a RESTFUL interface, and the RESTFUL interface is deployed on an industrial computer that supports IIS services, so that an external system can directly call the intercom call function through the interface. Among them, the RESTful (Representational State Transfer) interface is a design style and development method for network applications. It relies on stateless client-server communication and operates resources through the HTTP protocol (usually GET, POST, PUT, DELETE and other methods). By encapsulating hardware functions as RESTful interfaces, these functions can be easily integrated into any system that supports HTTP requests, whether it is a web application, a mobile application or other types of software.
[0067] In the embodiment of the present invention, for an industrial computer that does not support IIS service, the IO module and audio module that control the intercom are encapsulated into a server through Socket, so that external devices can access the intercom call server on the industrial computer through Socket and call the intercom call function. Even if the industrial computer does not support IIS service, remote control of the intercom can be achieved through Socket communication, which improves the flexibility and scope of application of the system. In addition, Socket communication has a low delay, which can ensure the timely transmission of control instructions and real-time feedback of the intercom status.
[0068] In an embodiment of the present invention, in the security authentication module, for the API interface, OAuth2 (OpenAuthorization 2) and IdentityServer4 technologies are used to perform single sign-on authentication (SSO, Single Sign-On) of the RESTFUL interface. Among them, IdentityServer4 is an open source OAuth 2 and OpenID Connect framework that allows authentication and authorization services to be provided for applications, APIs, SPAs (single page applications), etc. As an authentication center, IdentityServer4 handles all user login and authentication requests and issues access tokens. Through the authorization code mode of OAuth 2, the client does not need to directly access the user's username and password, but obtains a short-term, permission-scoped access token to access resources. Users only need to log in once on IdentityServer4 to access all authorized applications and services without repeated logins. Different levels of access rights can be provided to different clients and applications based on the scope mechanism of OAuth 2.
[0069] In the embodiment of the present invention, in the security authentication module, for the Socket server, SSL (Secure Sockets Layer) and TLS (Transport Layer Security) protocols are used for encrypted communication. SSL (Secure Sockets Layer) and TLS (Transport Layer Security) are two security authentication protocols widely used in Socket communication. SSL / TLS provides encryption, data integrity verification and identity authentication functions to ensure the security of data during transmission. The working principle of SSL / TLS is to establish a security layer between the application layer protocol (such as HTTP, FTP, etc.) and the transport layer protocol (such as TCP), and realize secure communication by encrypting, decrypting and integrity verification of data.
[0070] The application of the present invention to access the intercom call system is mainly divided into two parts. One is that the operator uses the intercom call system to select the information to be sent, and then calls the intercom call API to notify the message; the other is to access the early warning system. When the early warning system finds a problem, it directly calls the intercom call API to send early warning information to relevant personnel. Since these two systems may send multiple call requests at the same time, in order to avoid request conflicts, the message queue and multi-level feedback queue scheduling algorithm (MFQ, Multilevel Feedback Queue) are used to process the early warning information. The MFQ algorithm is an algorithm that comprehensively considers multiple scheduling strategies. It divides requests into multiple priority queues, each queue uses different scheduling strategies (such as FCFS, SJF, etc.), and requests are moved between queues according to certain rules to achieve reasonable allocation of resources. This algorithm can avoid starvation while ensuring resource utilization, that is, avoid the situation where requests cannot be responded to due to priority and other issues.
[0071] The present invention also provides an embodiment of an industrial calling method based on an intercom, specifically as follows Figure 3 As shown, the following steps are included:
[0072] Insert the USB port of the RM10X0 chip into the industrial computer, and download and install the corresponding driver through the industrial computer to drive and control the PTT switch of the intercom;
[0073] Encapsulating the IO module and the audio module controlling the intercom module, and invoking the intercom call through the encapsulated interface;
[0074] Performing login authentication on the interface encapsulated by the service module;
[0075] Call the intercom call API for message notification.
[0076] In the embodiment of the present invention, the step of performing single sign-on authentication on the interface encapsulated by the service module includes the following authentication steps:
[0077] a. User accesses the application: The user attempts to access the intercom call function API. The application detects that the user is not authenticated and redirects the user to the login page of the authentication server.
[0078] b. Authentication server login page: The user enters the username and password on the authentication server login page. The authentication server verifies the user's credentials and issues an access token to the user if the credentials are valid.
[0079] c. Issue access token: The authentication server generates an access token based on the user's authorization information and associates it with the user's identity. The access token usually contains information such as the user's unique identifier, expiration time, and authorization scope. The access token can be in JWT (JSON Web Token) format.
[0080] d. Return access token: The authentication server returns the access token to the application. The application stores the access token on the client (such as browser cookies or local storage) for subsequent requests.
[0081] e. Accessing the Intercom Call API: The resource server verifies the validity of the access token and allows access to the protected resource if the token is valid.
[0082] f. Refresh Token: Access tokens have a limited validity period, and after expiration, a refresh token is required to obtain a new access token. Refresh tokens are used to extend the user's login session when the access token expires without the user having to re-enter their credentials.
[0083] It should be noted that the information interaction, execution process and other contents between the above-mentioned methods are based on the same concept as the system embodiment of the present application, and are methods corresponding to the above-mentioned industrial call based on walkie-talkies. All implementation methods in the above-mentioned system embodiments are applicable to the embodiments of the method. Its specific functions and technical effects can be found in the system embodiment part, which will not be repeated here.
[0084] The system and method of the embodiment of the present invention use the RM10X0 chip to realize the automatic control of the intercom PTT switch, realize the remote control of the intercom through the RESTful interface, and use OAuth2 and IdentityServer4 to realize single sign-on authentication. By integrating the intercom module, service module, security authentication module and application module, an efficient, secure and controllable communication solution is realized in the industrial environment. It not only improves the flexibility and automation of communication, but also ensures the security and maintainability of the system through security authentication and modular design.
[0085] The above describes in detail the structure, features and effects of the present invention based on the embodiments shown in the drawings, but the above is only a preferred embodiment of the present invention. It should be noted that the technical features involved in the above embodiments and their preferred methods can be reasonably combined and matched into a variety of equivalent schemes by those skilled in the art without departing from or changing the design ideas and technical effects of the present invention; therefore, the present invention is not limited to the scope of implementation shown in the drawings, and all changes made in accordance with the concept of the present invention, or modifications to equivalent embodiments with equivalent changes, which still do not exceed the spirit covered by the specification and drawings, should be within the protection scope of the present invention.
Claims
1. An industrial call system based on walkie-talkie, characterized in that: include: Intercom module: used to insert the USB port of the RM10X0 chip into the industrial computer, and download and install the corresponding driver through the industrial computer to drive and control the intercom PTT (Push to Talk) switch; Service module: encapsulates the IO module and audio module that control the intercom module; Security authentication module: performs login authentication on the interface encapsulated by the service module; Application module: Message notification is performed by calling the intercom call API.
2. The intercom-based industrial call system according to claim 1, characterized in that: The intercom and the industrial computer are connected by a USB to 3.5mm audio cable, so that the industrial computer outputs audio to the intercom.
3. The intercom-based industrial call system according to claim 1, characterized in that: The industrial computer is provided with an audio output module, which includes two audio output modes: Use the NAudio library to build an MP3 player to play audio files; Use the SpeechSynthesizer class to convert text to audio and output it.
4. The intercom-based industrial call system according to claim 1, characterized in that: The IO module and the audio module are encapsulated as a RESTFUL interface, and the RESTFUL interface is deployed on an industrial computer supporting IIS service.
5. The intercom-based industrial call system according to claim 4, characterized in that: For industrial computers that do not support IIS services, the IO module and audio module that control the intercom are encapsulated into a server through Socket.
6. The intercom-based industrial call system according to claim 1, characterized in that: In the security authentication module, for the API interface, OAuth2 and IdentityServer4 technologies are used for single sign-on authentication of the RESTFUL interface.
7. The intercom-based industrial call system according to claim 1, characterized in that: In the security authentication module, for the Socket server, SSL (Secure Sockets Layer) and TLS (Transport Layer Security) protocols are used for encrypted communication.
8. The intercom-based industrial call system according to claim 1, characterized in that: In the application module, an early warning system is also connected, and the early warning system uses a message queue and a multi-level feedback queue scheduling algorithm (MFQ) to process early warning information.
9. An industrial calling method based on an intercom, characterized in that: The following steps are involved: Insert the USB port of the RM10X0 chip into the industrial computer, and download and install the corresponding driver through the industrial computer to drive and control the PTT switch of the intercom; Encapsulating the IO module and the audio module controlling the intercom module, and invoking the intercom call through the encapsulated interface; Performing login authentication on the interface encapsulated by the service module; Call the intercom call API for message notification.
10. The intercom-based industrial calling method according to claim 9, characterized in that: The step of performing login authentication on the interface encapsulated by the service module includes the following authentication steps: a. The user attempts to access the intercom call function API; b. The user enters the username and password on the login page of the authentication server; c. The authentication server generates an access token based on the user's authorization information and associates it with the user's identity; d. The authentication server returns the access token to the application; e. The resource server verifies the validity of the access token and allows access to the protected resource if the token is valid; f. Refresh token.
