Remote module abnormality intelligent diagnosis device and method on centralized collector of centralized procurement area

CN122802953APending Publication Date: 2026-09-22STATE GRID HENAN ELECTRIC POWER COMPANY ZHENGZHOU POWER SUPPLY CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610784967.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-06-02
Publication Date
2026-09-22

AI Technical Summary

Technical Problem

但是,传统远程集采台区集中器上的远程模块通讯技术使用效果不佳,具体也即是集中器上对远程通讯模块使用方法存在的问题是:1.无法更精确反馈出SIM卡通过远程通讯模块连接国网主站时出现错误的原因;2.无法获取SIM卡的卡信息,不利于SIM卡的管理;3.无法记录集中器与远程通讯模块的交互信息,在使用中出现问题时没有排查问题的数据源

Benefits of technology

[0015]本发明相比于现有技术的有益效果是:该诊断设备能对现场的远程通讯模块通讯数据进行监视,也能对设备上的远程通讯模块或多SIM卡直插进行检测,输出检测结果;检测指标要求能直观判断此模块或SIM卡是否能正常使用,不能正常使用的原因;支持热插拔,安装方便,集中器取电,功率小,无需外接电源;在现场使用监视装置和检测仪基表时也无需额外接电,有自带电池供电;体积小、重量轻,携带方便;自主控制性强,无需过多人为干预,可通过按键或手机APP操作开启检测功能;多通道插入SIM卡,可同时依次对4张SIM卡进行检测任务,减少了重复性操作;4G模块附带SIM卡插入检测仪基表进行检测,可实时在现场环境下判断联网问题;可智能判断是否插入在集中器的远程信道接口处,并自动进入监视状态,能够有效对现场的软故障进行跟踪记录和判断。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122802953A_ABST
    Figure CN122802953A_ABST
Patent Text Reader

Abstract

This invention relates to the field of concentrator diagnostic technology, specifically to an intelligent diagnostic device for remote module anomalies on a centralized procurement area concentrator. The device includes a mobile control terminal, a concentrator body, a remote channel tester base meter, a 4G communication module, and a monitoring device. The monitoring device maintains a signal connection with the mobile control terminal via Bluetooth. The 4G communication module maintains a signal connection with the monitoring device via a connector. The remote channel tester base meter and the monitoring device maintain a signal connection via a detection communication channel. When the device performs a SIM card network detection task, the monitoring device can intelligently determine the inserted remote channel tester base meter and then perform the task of logging into the State Grid main station via the remote communication chip and external antenna of the 4G communication module. This invention supports hot-swapping, is easy to install, can monitor the communication data of the remote communication module in the field, and can also detect the remote communication module or multiple SIM cards directly inserted on the device, and output the detection results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent diagnostic equipment technology, specifically to a remote module anomaly intelligent diagnostic device and method on a centralized procurement area concentrator. Background Technology

[0002] With the upgrading of power grid centralized data collection equipment and the arrival of the big data era, the State Grid Corporation of China (SGCC) is collecting data on an increasingly wider and denser scale. This necessitates higher timeliness for data collection tasks. However, the distribution of centralized data collection equipment is highly dispersed, especially in remote or mountainous areas where signal strength is extremely unstable or only a weak signal from a single communication provider exists. Therefore, we need to test the network login status of SIM cards from different operators in the area where the concentrator is located for the SGCC's reference, enabling them to select a more suitable SIM card usage scheme for that location.

[0003] Currently, the remote module communication status on the remote procurement area concentrator can only simply identify whether the SIM card is connected to the main station, or some concentrator manufacturers will display the 4G module's network connection status on the screen. However, the traditional remote module communication technology on the remote procurement area concentrator is not effective. Specifically, the problems with the concentrator's use of the remote communication module are: 1. It cannot accurately reflect the reasons for errors when the SIM card connects to the State Grid main station through the remote communication module; 2. It cannot obtain the SIM card information, which is not conducive to SIM card management; 3. It cannot record the interaction information between the concentrator and the remote communication module, so there is no data source for troubleshooting when problems occur during use. Summary of the Invention

[0004] To address the shortcomings and deficiencies of existing technologies in remote module communication on remote mining concentrators, this invention provides an intelligent diagnostic device for remote module anomalies on mining concentrators.

[0005] The present invention achieves the above objectives by adopting the following technical solution: A remote module anomaly intelligent diagnostic device for a centralized procurement area concentrator includes a mobile control terminal, a concentrator body, a remote channel tester base, a 4G communication module, and a monitoring device. The mobile control terminal is used for secure login to the State Grid main station APP for identity verification and can view information data and perform SIM card information detection services. One end of the concentrator body is connected to a power line carrier, and a mounting slot is provided on one side, where a remote communication module interface is also located. The monitoring device maintains a signal connection with the mobile control terminal via Bluetooth. The monitoring device has a power strip interface on one side and a Type-C interface on the other side, the Type-C interface being used for communication maintenance. The 4G communication module maintains a signal connection with the monitoring device via the power strip interface. In the installed state, the two devices can also maintain a connection through an adapter installation method between the monitoring device and the mounting slot. The signal end of the monitoring device and the remote communication module interface maintain a signal connection through a monitoring communication channel. When performing a monitoring task, the monitoring device automatically opens the monitoring communication channel between the 4G communication module and the concentrator. The remote channel tester base is equipped with an external antenna on its top and multiple evenly distributed operation buttons on one side of its front. An LED display screen is also located on the outer wall of the base, displaying the testing progress in real time. The remote channel tester base and the monitoring device maintain a signal connection via a detection communication channel. When the device performs a SIM card network testing task, the monitoring device can intelligently identify the inserted remote channel tester base and open the detection communication channel between the monitoring device and the remote channel tester base. Then, it performs the task of logging into the State Grid main station via the remote communication chip of the 4G communication module and the external antenna. Furthermore, an adapter for the monitoring device is installed on one side of the remote channel tester base. The device secures the card in place; the mobile control terminal sends network communication parameters for logging into the main station via Bluetooth channel, ensuring no tasks are executed before initiating either network login detection or SIM card information detection; alternatively, the SIM card slot's network login task and the external 4G communication module's network login task can be executed via the buttons on the remote channel tester's base meter; the SIM card information detection includes information such as the SIM card's manufacturer, signal strength, phone number, CCID, IMEI, network registration mark, data connection mark, main station connection mark, and main station login mark; simultaneously, each detection operation generates and stores corresponding timestamp detection information, which can be queried by the mobile control terminal's APP.

[0006] As a preferred technical solution, the mobile control terminal is the State Grid handheld device.

[0007] A further preferred technical solution: The mobile control terminal further includes a login module, a Bluetooth protocol connection module, a command execution module, a data transmission module, and a feedback analysis module. The login module is used by maintenance personnel to open the corresponding APP, connect to the State Grid main station via account and password, and obtain the main station's identity authentication. The Bluetooth protocol connection module is used to connect to the monitoring device of the remote channel via Bluetooth and read the monitoring frames in the on-site monitoring device. The command execution module is used to encrypt and package the monitoring frames within the time period required by the State Grid handheld device. The data transmission module is used to transmit the packaged monitoring frame data from the command execution module to the State Grid main station via the 5G network transmission protocol. The feedback analysis module is used to make judgments on the on-site situation based on the viewing and analysis of the on-site monitoring frames and to provide support for maintenance operations.

[0008] A further preferred technical solution: The bottom of the remote channel tester base is also provided with a type-C power supply interface for power supply by a mobile power source.

[0009] A further preferred technical solution: The concentrator is also equipped with a 4V power supply module, which supplies power to the monitoring device through a remote communication module interface, and the operating power does not exceed 5W.

[0010] A further preferred technical solution: The remote channel tester is also provided with a battery mounting slot on one side of the base, and a lithium battery is adapted to be installed inside the battery mounting slot.

[0011] A further optimized technical solution: During SIM card testing and installation, the 4G communication module is unplugged from the remote communication module interface of the concentrator, inserted into the top of the monitoring device, and then the combined monitoring device is inserted into the base table of the remote channel tester to perform the testing operation; when multiple other related SIM cards need to be tested, they can be inserted into the other 3 card slots of the tester base table.

[0012] A further preferred technical solution: The monitoring device is also equipped with a data comparison and analysis module. The data comparison and analysis module will analyze the monitored data to determine which step the current network process has entered, whether the parameters sent are the same as the parameters of the main station, and what kind of error the error response is. This analysis can be queried by operation and maintenance personnel.

[0013] A further preferred technical solution: The State Grid handheld device can upgrade the system and functions of the monitoring device and the remote channel tester base meter via Bluetooth; the monitoring device can be maintained via communication through the Type-C port.

[0014] A diagnostic method for a remote module anomaly intelligent diagnostic device on a centralized procurement area concentrator, wherein the method for performing the detection and diagnostic operation using the aforementioned diagnostic device is as follows: S1: When the State Grid mobile app is logged in, a command is issued to start the detection task of logging into the State Grid main website; S2: Staff confirm whether the 4G communication module and SIM card are inserted into the card slot; including whether the 4G communication module is inserted or not. S3: With the 4G communication module inserted, the staff first performs the corresponding hardware initialization according to the pin definition of the remote communication module interface in the State Grid Concentrator Type I General Technical Specification, and then performs APP software initialization to obtain the SIM card insertion status. S4: Obtain basic information about the SIM card and send the main station IP and other related network parameters; among which, the SIM card information includes the SIM card operator, signal strength, mobile phone number, CCID, IMEI, network registration mark, data connection mark, connection to main station mark, and login to main station mark; S5: Initiate connection to the master station. According to the communication requirements of the State Grid Corporation of China enterprise standard Q / GDW1376.3--2012, use AT commands to obtain information such as operator information, signal strength, CCID, and IM time, connect to the base station, send network parameters, register the network, and connect to the specific server address; the concentrator includes a successfully connected state and an unsuccessfully connected state. S6: Upon successful connection, the encrypted login master station confirms the connection to the State Grid master station IP server. It then sends a login frame corresponding to the concentrator address in the network parameters according to the State Grid Corporation's enterprise standard Q / GDW1376.1--2022 protocol and encrypts it using the State Grid ESAM chip. Upon receiving the encrypted frame, the State Grid master station decrypts the data frame using the corresponding ESAM decryption server, verifies whether the data frame conforms to the above protocol format, and performs data frame verification to ensure data integrity. It then checks that the concentrator address is a valid address registered in the database and replies with an encrypted login frame. The host, upon receiving the encrypted frame, decrypts it using the ESAM chip to determine if the login was successful. S7: Generate network login detection results for the State Grid main station. Based on the process of remotely connecting to the main server and the feedback of login information, generate detection results with information such as generation time, card slot position, connection operator flag, parameter setting flag, network registration flag, connection to main station flag, and login to main station flag. S8: In step S2, when no 4G communication module is inserted, the slave device initializes the network chip, performs software and hardware initialization according to the datasheet of the network communication chip used by the slave device, and obtains the SIM card insertion status. S9: Continuing from step S8, obtain the basic information of the SIM card and send the main station IP and other related network parameters; among which, the SIM card information includes the SIM card operator, signal strength, mobile phone number, CCID, IMEI, network registration mark, data connection mark, connection to main station mark, and login to main station mark; S10: Initiate connection to the master station. According to the communication requirements of the State Grid Corporation of China enterprise standard Q / GDW1376.3--2012, use AT commands to obtain information such as operator information, signal strength, CCID, and IM time, connect to the base station, send network parameters, register the network, and connect to the specific server address; the monitoring device includes a successful connection status and a failed connection status; when the monitoring device is in a failed connection status, the program proceeds to step S7; S11: When the monitoring device is successfully connected, it sends an encrypted login confirmation reply to the main station. After confirming the connection to the State Grid main station IP server, it sends a login frame corresponding to the concentrator address in the network parameters according to the State Grid Corporation of China's enterprise standard Q / GDW1376.1--2022 protocol and encrypts it using the State Grid ESAM chip. After receiving the encrypted frame, the State Grid main station decrypts the data frame using the corresponding ESAM decryption server, then verifies whether the data frame conforms to the format of the above protocol and performs data frame verification to ensure data integrity. It then verifies that the concentrator address is a valid address registered in the database and replies with an encrypted login frame. After receiving the encrypted frame, the host decrypts it using the ESAM chip to determine whether the login is successful. Then the program proceeds to step S7. S12: When switching hardware data lines where there is an undetected SIM card slot, the process jumps from step S11 to step S8.

[0015] The advantages of this invention compared to existing technologies are as follows: This diagnostic device can monitor the communication data of the remote communication module on-site, and can also test the remote communication module or multiple SIM cards directly inserted on the device, outputting test results; the test indicators can intuitively determine whether the module or SIM card can be used normally, and the reason for the malfunction; it supports hot-swapping, is easy to install, is powered by the concentrator, has low power consumption, and does not require an external power supply; it also does not require additional power when using the monitoring device and the test instrument base meter on-site, as it has its own battery power supply; it is small in size, light in weight, and easy to carry; it has strong autonomous control, requiring little human intervention, and the test function can be activated via buttons or a mobile APP; it can insert SIM cards into multiple channels, and can simultaneously perform test tasks on 4 SIM cards sequentially, reducing repetitive operations; the 4G module with SIM card insertion into the test instrument base meter can be tested, and network problems can be judged in real time in the on-site environment; it can intelligently determine whether it is inserted into the remote channel interface of the concentrator and automatically enter the monitoring state, which can effectively track, record, and judge soft faults on-site. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a schematic diagram of the overall structure of the present invention; Figure 2 This is a flowchart illustrating the network login main station detection process of the present invention. Figure 3 This is a display diagram of the detection results of the present invention; Figure 4 This is a schematic block diagram of the connection module of the mobile control terminal of the present invention.

[0018] In the diagram: 1. Power line carrier; 2. Concentrator body; 3. Remote communication module interface; 4. External antenna; 5. SIM card slot; 6. Remote channel tester base meter; 7. Operation buttons; 8. LED display screen; 9. Type-C power supply interface; 10. Mobile control terminal; 11. 4G communication module; 12. Monitoring device; 13. Mounting slot; 14. Type-C interface; 15. Detect communication channel; 16. Monitor communication channel; 17. Power strip interface; 18. Fastening slot; 19. Login module; 20. Bluetooth protocol connection module; 21. Command execution module; 22. Data transmission module; 23. Feedback analysis module; 24. 4V power supply module; 25. Battery mounting slot; 26. Lithium battery; 27. Data comparison and analysis module. Detailed Implementation

[0019] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0020] Example: Figures 1 to 3 As shown: A remote module anomaly intelligent diagnostic device for a centralized procurement area concentrator includes a mobile control terminal 10, a concentrator body 2, a remote channel tester base 6, a 4G communication module 11, and a monitoring device 12. The mobile control terminal 10 is used for secure login to the State Grid main station APP for identity verification and can perform functions such as viewing information data and executing SIM card information detection services. In a preferred embodiment, the mobile control terminal 10 is a State Grid handheld device. The mobile control terminal 10 also includes a login module 19, a Bluetooth protocol connection module 20, a command execution module 21, a data transmission module 22, and a feedback analysis module 23. The login module 19 is used by maintenance personnel to open the corresponding APP, connect to the State Grid main station using an account and password, and obtain identity authentication from the main station. The Bluetooth protocol connection module 20 is used to connect to the remote channel monitoring device 12 via Bluetooth and read monitoring frames from the on-site monitoring device 12. The command execution module 21 is used to encrypt and package monitoring frames according to the time period required by the State Grid handheld device. The data transmission module 22 is used to transmit the packaged monitoring frame data of the command execution module 21 to the State Grid main station via the 5G network transmission protocol. The feedback analysis module 23 is used to make judgments on the on-site situation based on the viewing and analysis of the on-site monitoring frames, and to provide support for operation and maintenance.

[0021] In this embodiment, one end of the concentrator body 2 is connected to the carrier power line 1, and a mounting slot 13 is provided on one side. A remote communication module interface 3 is also provided at the mounting slot 13. The concentrator body 2 also contains a 4V power module 24, which supplies power to the monitoring device 12 through the remote communication module interface 3, and the operating power does not exceed 5W. In this embodiment, the monitoring device 12 can maintain a signal connection with the mobile control terminal 10 via Bluetooth. The monitoring device 12 has a power strip interface 17 on one side of its top and a type-C interface 14 on one side of its bottom. The type-C interface 14 is used for communication maintenance. The 4G communication module 11 maintains a signal connection with the monitoring device 12 through the power strip interface 17. In the installed state, the two can also maintain a connection by adapting the monitoring device 12 to the mounting slot 13. The signal end of the monitoring device 12 and the remote communication module interface 3 maintain a signal connection through the monitoring communication channel 16. When performing a monitoring task, the monitoring device 12 automatically opens the monitoring communication channel 16 between the 4G communication module 11 and the concentrator.

[0022] In this embodiment, the monitoring device 12 is further equipped with a data comparison and analysis module 27. This module 27 analyzes the monitored data to determine the current network process's current stage, whether the transmitted parameters match the main station parameters, and the type of error response. This analysis is available for maintenance and operation queries. The State Grid handheld device can upgrade the monitoring device 12 and the remote channel tester base meter 6 via Bluetooth. The monitoring device 12 can be maintained through the Type-C interface 14. The intelligent analysis related code includes: 1. Initialization steps const ModemElement gs_G600Init[] = {"AT+CNMI=2,1,0,0", G600_OK, 500, 0, (CallBackElement)0}, {"AT+CMGF=0", G600_OK, 500, 0, (CallBackElement)0}, {"AT+CPIN?", G600_OK, 500, 0, (CallBackElement)0}, {(string)0, G600_CPIN, 0, 0, (CallBackElement)0}.

[0023] 2. Check signal quality and registration status const ModemElement gs_G600QAndReg[] = {"AT+CSQ", G600_OK, 500, 0, (CallBackElement)0}, {"AT+CREG?", G600_CSQ, 500, 0, (CallBackElement)0}, {(string)0, G600_CREG, 0, 0, (CallBackElement)0}.

[0024] 3. Connect to the main site const ModemElement gs_G600TcpCnt[] = {"AT$MYNETSRV", G600_OK, 1000, 1, (CallBackElement)G600_Proc_SETSRV}, {"AT$MYNETOPEN", G600_OK, 9000, 1, (CallBackElement)G600_Proc_NETOpen}, {"AT$MYNETINFO?", G600_MYNETOPEN, 500, 1, (CallBackElement)G600_Proc_NetInq}, {(string)0, G600_OK, 0, 0, (CallBackElement)0};

[0025] #define gs_G600UdpCnt gs_G600TcpCnt / / This indicates that the steps for establishing a UDP connection are the same as those for TCP.

[0026] Check network status const ModemElement gs_G600NetState[] = {"AT$MYNETINFO?", G600_OK, 500, 1, (CallBackElement)G600_Proc_NetInq}, {"AT$MYNETACT?", G600_OK, 500, 0, (CallBackElement)0}, {"AT$MYNETOPEN?", G600_OK, 500, 0, (CallBackElement)0}, {"AT$MYSYSINFO", G600_MYNETOPEN, 500, 0, (CallBackElement)0}, {(string)0, G600_MYSYSINFO, 500, 0, (CallBackElement)0}.

[0027] Obtain basic information about the SIM card and module const ModemElement gs_G600GetInfo[] = {"AT$MYCCID", G600_OK, 500, 0, (CallBackElement)0}, / / Get SIM card sequence {"AT+CGSN", G600_MYCCID, 500, 0, (CallBackElement)0}, / / Get module IMEI {"AT+CNUM", G600_CGSN, 500, 0, (CallBackElement)0}, / / Get phone number / / {"AT+CPBR=1,2", G600_CGSN, 500, 0, (CallBackElement)0}, / / Get the phone number from the phone book / / {"AT$MYGMR", G600_CPBR, 1000, 0, (CallBackElement)0}, / / Get version information 2025.11.05.shilx {"AT$MYGMR", G600_CNUM, 1000, 0, (CallBackElement)0}, / / Get version information 2025.11.05.shilx {(string)0, G600_MYGMR, 500, 0, (CallBackElement)0} .

[0028] In this embodiment, the remote channel tester base meter 6 is equipped with an external antenna 4 at its top and multiple evenly distributed operation buttons 7 on one side of its front. An LED display screen 8 is also provided on the outer wall of the remote channel tester base meter 6, which can display the testing progress in real time. The remote channel tester base meter 6 and the monitoring device 12 maintain a signal connection through a detection communication channel 15. When the device performs a SIM card network detection task, the monitoring device 12 can intelligently determine the inserted remote channel tester base meter 6 and open the detection communication channel 15 between the monitoring device 12 and the remote channel tester base meter 6. Then, it performs the task of logging into the State Grid main station through the remote communication chip of the 4G communication module 11 and the external antenna 4. A fastening slot 18 for mounting the monitoring device 12 is also provided on one side of the remote channel tester base meter 6. A type-C power interface 9 for power supply from a mobile power source is also provided at the bottom of the remote channel tester base meter 6. A battery mounting slot 25 is also provided on one side of the remote channel tester base meter 6, and a lithium battery 26 is installed inside the battery mounting slot 25.

[0029] In this embodiment, the mobile control terminal 10 sends the network communication parameters for logging into the master station via Bluetooth. After ensuring that no tasks are being executed, it initiates either network login detection or SIM card information detection. Alternatively, the task of starting the SIM card in the SIM card slot 5 to log into the master station and the task of starting the external 4G communication module 11 to log into the master station can be executed respectively via the buttons on the base table 6 of the remote channel tester. The SIM card information detection includes information such as the SIM card's operator, signal strength, phone number, CCID, IMEI, network registration mark, data connection mark, master station connection mark, and master station login mark. At the same time, each detection operation generates and stores detection information with a corresponding timestamp, which can be queried by the APP of the mobile control terminal 10.

[0030] In this embodiment, during the SIM card testing and installation operation, the 4G communication module 11 is unplugged from the remote communication module interface 3 of the concentrator, inserted into the top of the monitoring device 12, and then the combined monitoring device 12 is inserted into the base table 6 of the remote channel tester to perform the testing operation. When multiple related SIM cards need to be tested, they can be inserted into the other three card slots of the tester base table. The main station obtains monitoring data operation process: Open the corresponding APP on the State Grid handheld device and log in to the internal account; connect to the remote channel monitoring device and read the complete monitoring data message and intelligent analysis content; the intelligent analysis content is based on the data part related to network login in the monitoring message, and uses the State Grid Corporation enterprise standard Q / GDW1376.3--2012 protocol to parse each interaction step in the network login to obtain the corresponding occurrence time and conclusion; after the handheld device extracts the monitoring data and analysis results, it uploads them to the State Grid internal server for recording.

[0031] like Figure 2 As shown: The code for the detection task is as follows: 1.void farp_build_new_task(uint8 need_id) uint8 dev = 0xff; / / 0 for SIM card insertion, 1 for remote module insertion uint8 sim_num=0,uc_i; if(need_id == 1){ / / SIM card slot task Farp_LinkSwitch(1,0); / / Start N720 gs_OS.TK_Sleep(20); dev = Farp_LinkSwitch_SIM(); gsp_FarpRuning->sim_slot_exit = dev; gsp_FarpRuning->sim_slot_exit = dev<<1; if(dev == 0){ / / No SIM card inserted has already been processed when receiving the command. gsp_State->disp_stt = DISP_SIMNULL_STT_0; gsp_State->led_sim = LED_TEST_FINISH_0; for(uc_i = 1;uc_i<4;uc_i++){ if((gsp_FarpRuning->sim_slot_fig&(0x01< <uc_i)) == 0&&((dev&(0x01<<(uc_i-1)))> 0)){ sim_num = uc_i; break.

[0032] 2. *Function name: uint8 Farp_LinkSwitch_SIMExist(uint8 sim_num) *describe: *Input: Determine the presence of different SIM card locations The sim_num parameter is used when connecting to the N720. Output: 0: does not exist; 1: exists.

[0033] Function name: uint8 Farp_BuildLinkFrm(uint8 type, uint8* buffer) *Description: Construct login frame, logout frame, and heartbeat frame (AFN02) using the 1376.1 protocol. **Input: type 1 Login frame 2 Logout frame 3 Heartbeat frame output frame buffer Output: **Note:** **Author:** **Date:**

[0034] void FARP_SecMsgProc(uint8 dev) S_DetItemCtrl* us_ctrl; if (dev >= FARP_ITEM_END) return; us_ctrl = gsp_FarpCtrl[dev]; if(us_ctrl->gatpStt == 0) / / Check if it is currently being detected return; gsp_TmPara->SysIdleSecs = 0; / / Detecting, timer reset to zero / / Get the current module status uint8 modemstt

[12] ; uint8 regbit; gs_Modem.S_Status(dev, modemstt,sizeof(modemstt)); if(!(modemstt[0]&MODM_CHECK_STT)) / / check failed gsp_FarpCnt[dev]->checkErrCnt++; if(gsp_FarpCnt[dev]->checkErrCnt>= gsp_FarpCnt[dev]->checkCnt) FARP_GenRecord(dev); return; gs_OS.Message_Send(MSG_FARP_STEP_CHECK,guc_FarpTaskFarpID[dev]); return; / / Check successful gsp_FarpCnt[dev]->checkErrCnt = 0; if(!(modemstt[0]&MODM_CARD_STT)) / / carp failed gsp_FarpCnt[dev]->initErrCnt++; if(gsp_FarpCnt[dev]->initErrCnt>= gsp_FarpCnt[dev]->initCnt) FARP_GenRecord(dev); return; gs_OS.Message_Send(MSG_FARP_STEP_INIT,guc_FarpTaskFarpID[dev]); return; / / carp succeeded.

[0035] A diagnostic method for a remote module anomaly intelligent diagnostic device on a centralized procurement area concentrator, wherein the method for performing the detection and diagnostic operation using the aforementioned diagnostic device is as follows: S1: When the State Grid mobile app is logged in, a command is issued to start the detection task of logging into the State Grid main website; S2: Staff confirm whether the 4G communication module 11 has been inserted and the SIM card has been inserted into the card slot; including the status of the 4G communication module 11 being inserted and the status of the 4G communication module 11 not being inserted; S3: With the 4G communication module inserted in state 11, the staff first performs the corresponding hardware initialization according to the pin definition of the remote communication module interface in the State Grid Concentrator Type I General Technical Specification, and then performs APP software initialization to obtain the SIM card insertion status. S4: Obtain basic information about the SIM card and send the main station IP and other related network parameters; among which, the SIM card information includes the SIM card operator, signal strength, mobile phone number, CCID, IMEI, network registration mark, data connection mark, connection to main station mark, and login to main station mark; S5: Initiate connection to the master station. According to the communication requirements of the State Grid Corporation of China enterprise standard Q / GDW1376.3--2012, use AT commands to obtain information such as operator information, signal strength, CCID, and IM time, connect to the base station, send network parameters, register the network, and connect to the specific server address; the concentrator includes a successfully connected state and an unsuccessfully connected state. S6: Upon successful connection, the encrypted login master station confirms the connection to the State Grid master station IP server. It then sends a login frame corresponding to the concentrator address in the network parameters according to the State Grid Corporation's enterprise standard Q / GDW1376.1--2022 protocol and encrypts it using the State Grid ESAM chip. Upon receiving the encrypted frame, the State Grid master station decrypts the data frame using the corresponding ESAM decryption server, verifies whether the data frame conforms to the above protocol format, and performs data frame verification to ensure data integrity. It then checks that the concentrator address is a valid address registered in the database and replies with an encrypted login frame. The host, upon receiving the encrypted frame, decrypts it using the ESAM chip to determine if the login was successful. S7: Generate network login detection results for the State Grid main station. Based on the process of remotely connecting to the main server and the feedback of login information, generate detection results with information such as generation time, card slot position, connection operator flag, parameter setting flag, network registration flag, connection to main station flag, and login to main station flag. S8: In step S2, when the 4G communication module 11 is not inserted, the slave device initializes the network chip, performs software and hardware initialization according to the datasheet of the network communication chip used by the slave device, and obtains the SIM card insertion status. S9: Continuing from step S8, obtain the basic information of the SIM card and send the main station IP and other related network parameters; among which, the SIM card information includes the SIM card operator, signal strength, mobile phone number, CCID, IMEI, network registration mark, data connection mark, connection to main station mark, and login to main station mark; S10: Initiate connection to the master station. According to the communication requirements of the State Grid Corporation of China enterprise standard Q / GDW1376.3--2012, use AT commands to obtain information such as operator information, signal strength, CCID, and IM time, connect to the base station, send network parameters, register the network, and connect to the specific server address; the monitoring device 12 includes a successfully connected state and a failed connection state; when the monitoring device 12 is in a failed connection state, the program enters step S7; S11: When the monitoring device 12 is successfully connected, it sends an encrypted login confirmation reply to the main station. After confirming the connection to the State Grid main station IP server, it sends a login frame corresponding to the concentrator address in the network parameters according to the State Grid Corporation of China's enterprise standard Q / GDW1376.1--2022 protocol and encrypts it using the State Grid ESAM chip. After receiving the encrypted frame, the State Grid main station decrypts the data frame using the corresponding ESAM decryption server, then verifies whether the data frame conforms to the format of the above protocol and performs data frame verification to ensure data integrity. It then verifies that the concentrator address is a valid address registered in the database and replies with an encrypted login frame. After receiving the encrypted frame, the host decrypts it using the ESAM chip to determine whether the login is successful. Then the program proceeds to step S7. S12: When switching hardware data lines where there is an undetected SIM card slot, the process jumps from step S11 to step S8.

[0036] This diagnostic device can monitor the communication data of remote communication modules on-site, and can also test remote communication modules or multi-SIM card direct insertion on the device, outputting test results. The test indicators should be able to intuitively determine whether the module or SIM card is functioning properly and the reason for any malfunction. This diagnostic device solves the problem of incomplete monitoring data through multi-level caching, multi-level buffering processing at the driver and application layers, reasonable time-slice wheel planning, and reduced write operations to the storage chip.

[0037] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A remote module anomaly intelligent diagnostic device on a centralized procurement area concentrator, characterized in that: The diagnostic equipment includes a mobile control terminal, a concentrator body, a remote channel tester base meter, a 4G communication module, and a monitoring device. The mobile control terminal is used for secure login to the State Grid main station APP for identity verification and can view information data and perform SIM card information detection services. One end of the concentrator body is connected to a power line carrier, and a mounting slot is provided on one side, where a remote communication module interface is also located. The monitoring device maintains a signal connection with the mobile control terminal via Bluetooth. The monitoring device has a power strip interface on one side at the top and a Type-C interface on the other side at the bottom; the Type-C interface is used for communication maintenance. The 4G communication module maintains a signal connection with the monitoring device via the power strip interface. In the installed state, the two devices can also maintain a connection by adapting the monitoring device to the mounting slot. The signal end of the monitoring device and the remote communication module interface maintain a signal connection through a monitoring communication channel. When performing a monitoring task, the monitoring device automatically opens the monitoring communication channel between the 4G communication module and the concentrator body. The remote channel tester base is equipped with an external antenna on its top and multiple evenly distributed operation buttons on one side of its front. An LED display screen is also located on the outer wall of the base, displaying the testing progress in real time. The remote channel tester base and the monitoring device maintain a signal connection via a detection communication channel. When the device performs a SIM card network testing task, the monitoring device can intelligently identify the inserted remote channel tester base and open the detection communication channel between the monitoring device and the remote channel tester base. Then, it performs the task of logging into the State Grid main station via the remote communication chip of the 4G communication module and the external antenna. Furthermore, an adapter for the monitoring device is installed on one side of the remote channel tester base. The device secures the card in place; the mobile control terminal sends network communication parameters for logging into the main station via Bluetooth channel, ensuring no tasks are executed before initiating either network login detection or SIM card information detection; alternatively, the SIM card slot's network login task and the external 4G communication module's network login task can be executed via the buttons on the remote channel tester's base meter; the SIM card information detection includes information such as the SIM card's manufacturer, signal strength, phone number, CCID, IMEI, network registration mark, data connection mark, main station connection mark, and main station login mark; simultaneously, each detection operation generates and stores corresponding timestamp detection information, which can be queried by the mobile control terminal's APP.

2. The remote module anomaly intelligent diagnostic device on a centralized acquisition area concentrator as described in claim 1, characterized in that: The mobile control terminal is the State Grid handheld device.

3. The remote module anomaly intelligent diagnostic device on a centralized procurement area concentrator as described in claim 2, characterized in that: in, The mobile control terminal also includes a login module, a Bluetooth protocol connection module, a command execution module, a data transmission module, and a feedback analysis module. The login module is used by maintenance personnel to open the corresponding APP, connect to the State Grid main station with an account and password, and obtain the main station's identity authentication. The Bluetooth protocol connection module is used to connect to the monitoring device of the remote channel via Bluetooth and read the monitoring frames in the on-site monitoring device. The command execution module is used to encrypt and package the monitoring frames within the time period required by the State Grid handheld device; the data transmission module is used to transmit the packaged monitoring frame data from the command execution module to the State Grid main station via the 5G network transmission protocol. The feedback analysis module is used to make judgments on the on-site situation based on the viewing and analysis of on-site monitoring frames, and to provide support for operation and maintenance.

4. The remote module anomaly intelligent diagnostic device on a centralized procurement area concentrator as described in claim 3, characterized in that: The remote channel tester also has a type-C power interface for power supply via a mobile power source at the bottom of its base.

5. The remote module anomaly intelligent diagnostic device on a centralized procurement area concentrator as described in claim 4, characterized in that: The concentrator is also equipped with a 4V power supply module, which supplies power to the monitoring device through a remote communication module interface, and the operating power does not exceed 5W.

6. The remote module anomaly intelligent diagnostic device on a centralized procurement area concentrator as described in claim 5, characterized in that: The remote channel tester also has a battery mounting slot on one side of the base, and a lithium battery is installed inside the battery mounting slot.

7. The remote module anomaly intelligent diagnostic device on a centralized procurement area concentrator as described in claim 6, characterized in that: During SIM card testing and installation, disconnect the 4G communication module from the remote communication module interface of the concentrator, insert it into the top of the monitoring device, and then insert the combined monitoring device into the base table of the remote channel tester to perform the testing operation. When multiple related SIM cards need to be tested, they can be inserted into the other three card slots of the tester base table.

8. The remote module anomaly intelligent diagnostic device on a centralized procurement area concentrator as described in claim 7, characterized in that: The monitoring device is also equipped with a data comparison and analysis module. The data comparison and analysis module will analyze the monitored data to determine which step the current network process has entered, whether the parameters sent are the same as the parameters of the main station, and what kind of error the error response is. This analysis can be queried by the operation and maintenance personnel.

9. The remote module anomaly intelligent diagnostic device on a centralized procurement area concentrator as described in claim 8, characterized in that: The State Grid handheld device can upgrade the system and functions of the monitoring device and remote channel tester base meter via Bluetooth; the monitoring device can be maintained via communication through the Type-C port.

10. A diagnostic method for a remote module anomaly intelligent diagnostic device on a centralized procurement area concentrator, characterized in that: The method for performing detection and diagnosis using the above-mentioned diagnostic equipment is as follows: S1: When the State Grid mobile app is logged in, a command is issued to start the detection task of logging into the State Grid main website; S2: Staff confirm whether the 4G communication module and SIM card are inserted into the card slot; including whether the 4G communication module is inserted or not. S3: With the 4G communication module inserted, the staff first performs the corresponding hardware initialization according to the pin definition of the remote communication module interface in the State Grid Concentrator Type I General Technical Specification, and then performs APP software initialization to obtain the SIM card insertion status. S4: Obtain basic information about the SIM card and send the main station IP and other related network parameters; among which, the SIM card information includes the SIM card operator, signal strength, mobile phone number, CCID, IMEI, network registration mark, data connection mark, connection to main station mark, and login to main station mark; S5: Initiate connection to the master station. According to the communication requirements of the State Grid Corporation of China enterprise standard Q / GDW1376.3--2012, use AT commands to obtain information such as operator information, signal strength, CCID, and IM time, connect to the base station, send network parameters, register the network, and connect to the specific server address; the concentrator includes a successfully connected state and an unsuccessfully connected state. S6: Upon successful connection, the encrypted login master station confirms the connection to the State Grid master station IP server. It then sends a login frame corresponding to the concentrator address in the network parameters according to the State Grid Corporation's enterprise standard Q / GDW1376.1--2022 protocol and encrypts it using the State Grid ESAM chip. Upon receiving the encrypted frame, the State Grid master station decrypts the data frame using the corresponding ESAM decryption server, verifies whether the data frame conforms to the above protocol format, and performs data frame verification to ensure data integrity. It then checks that the concentrator address is a valid address registered in the database and replies with an encrypted login frame. The host, upon receiving the encrypted frame, decrypts it using the ESAM chip to determine if the login was successful. S7: Generate network login detection results for the State Grid main station. Based on the process of remotely connecting to the main server and the feedback of login information, generate detection results with information such as generation time, card slot position, connection operator flag, parameter setting flag, network registration flag, connection to main station flag, and login to main station flag. S8: In step S2, when no 4G communication module is inserted, the slave device initializes the network chip, performs software and hardware initialization according to the datasheet of the network communication chip used by the slave device, and obtains the SIM card insertion status. S9: Continuing from step S8, obtain the basic information of the SIM card and send the main station IP and other related network parameters; among which, the SIM card information includes the SIM card operator, signal strength, mobile phone number, CCID, IMEI, network registration mark, data connection mark, connection to main station mark, and login to main station mark; S10: Initiate connection to the master station. According to the communication requirements of the State Grid Corporation of China enterprise standard Q / GDW1376.3--2012, use AT commands to obtain information such as operator information, signal strength, CCID, and IM time, connect to the base station, send network parameters, register the network, and connect to the specific server address; the monitoring device includes a successful connection status and a failed connection status; when the monitoring device is in a failed connection status, the program proceeds to step S7; S11: When the monitoring device is successfully connected, it sends an encrypted login confirmation reply to the main station. After confirming the connection to the State Grid main station IP server, it sends a login frame corresponding to the concentrator address in the network parameters according to the State Grid Corporation of China's enterprise standard Q / GDW1376.1--2022 protocol and encrypts it using the State Grid ESAM chip. After receiving the encrypted frame, the State Grid main station decrypts the data frame using the corresponding ESAM decryption server, then verifies whether the data frame conforms to the format of the above protocol and performs data frame verification to ensure data integrity. It then verifies that the concentrator address is a valid address registered in the database and replies with an encrypted login frame. After receiving the encrypted frame, the host decrypts it using the ESAM chip to determine whether the login is successful. Then the program proceeds to step S7. S12: When switching hardware data lines where there is an undetected SIM card slot, the process jumps from step S11 to step S8.