Communication method and apparatus, electronic device, and storage medium
By receiving and processing AT commands, the mobile device management module enables flexible configuration of LAN and WAN ports, solving the problem in existing technologies that cannot simultaneously support multi-dialing via RGMII and USB ports, thus achieving flexibility and compatibility in multi-dialing.
Patent Information
- Application Number
- CN202211689431.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-27
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2042-12-27
AI Technical Summary
Existing technology cannot support mobile devices to make multiple calls simultaneously via RGMII and USB ports, resulting in limited data services.
By receiving the first AT command and the second AT command sent by the mobile device, data dialing and binding of the target LAN port and the target WAN port are performed respectively. It supports binding of USB interface or RGMII interface to the target WAN port, realizing flexible configuration between LAN port and WAN port.
It enables mobile devices to support both USB interface data services and RGMII interface data services, and allows for flexible and dynamic configuration between LAN and WAN ports to meet multi-dialing requirements.
Smart Images

Figure CN116405887B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, and in particular to a communication method and device, electronic equipment and storage medium. BACKGROUND
[0002] Due to the development of Internet of Things technology, it is necessary to establish multiple parallel packet switch (PS) connections on a terminal. The quality of service (QoS) parameters and the target network accessed by these PS connections can be different. Among them, the PS connection and the packet data protocol (PDP) can be one-to-one. That is, a terminal can have multiple PDP contexts, and there can be multiple different QoS profiles at the same time.
[0003] In the prior art, before establishing a PDU connection, the module determines the current multi-dialing mode by the value of the current usbmode. For example, if the current usbmode is 18 or 23, it is considered that the current multi-dialing mode is ECM multi-dialing, wherein ECM multi-dialing is one of USB multi-dialing; if the current usbmode is 32 or 17, it is considered that the current multi-dialing mode is RGMII multi-dialing.
[0004] However, in many actual situations, the module needs to be connected to the host computer through the universal serial bus (USB) port and the reduced gigabit media independent interface (RGMII) at the same time to perform multi-dialing data services. In the prior art, the usbmode value cannot be modified in real time (modifying the usbmode module will restart) during multi-dialing, and only one of USB multi-dialing or RGMII multi-dialing can be supported. That is, the above prior art cannot support the requirement of multi-dialing from the RGMII port and the USB port at the same time. SUMMARY
[0005] The present application provides a communication method and device, electronic equipment and storage medium to solve the problem that the prior art cannot support multi-dialing from the RGMII port and the USB port at the same time.
[0006] In a first aspect, the present application provides a communication method applied to a mobile device management module, comprising:
[0007] receiving a first AT instruction and a second AT instruction sent by a mobile device;
[0008] performing data dialing based on the first AT instruction;
[0009] binding a target LAN port and a target WAN port based on the second AT instruction, the target LAN port being a USB interface or a RGMII interface, and the number of the second AT instructions being at least one.
[0010] Optionally, the first AT instruction comprises a first enable flag and an identification of at least one WAN port.
[0011] The first enable flag is 1.
[0012] The performing data dialing based on the first AT instruction comprises:
[0013] activating the at least one WAN port based on the first enable flag, and establishing a PDU connection using the activated WAN port.
[0014] Optionally, the second AT instruction comprises a second enable flag, a type of the target LAN port, an identification of a target VLAN, and an identification of the target WAN port.
[0015] The second enable flag is 1; the type of the target LAN port is a USB interface or a RGMII interface; and the target WAN port is any one of the activated WAN ports.
[0016] The binding the target LAN port and the target WAN port based on the second AT instruction comprises:
[0017] determining the target LAN port based on the type of the target LAN port.
[0018] binding data of the target VLAN of the target LAN port and the target WAN port based on the second enable flag, the identification of the VLAN, and the identification of the target WAN port.
[0019] Optionally, after the binding the data of the target VLAN of the target LAN port and the target WAN port, the method further comprises:
[0020] adding an interface of the target VLAN under the target LAN port, and binding the interface of the target VLAN and the target WAN port.
[0021] After the adding the interface of the target VLAN and binding the interface of the target VLAN and the target WAN port, the method further comprises:
[0022] creating a bridge for communication between the interface of the target VLAN and the target WAN port.
[0023] allocate an intranet address for the target VLAN based on the bridge;
[0024] convert the intranet address in the data of the target VLAN into an extranet address, the extranet address being used for sending the data of the target VLAN to a base station through the target WAN port.
[0025] In a second aspect, the present application further provides a communication device, comprising:
[0026] a receiving module, configured to receive a first AT instruction and a second AT instruction sent by a mobile device;
[0027] a data dialing module, configured to perform data dialing based on the first AT instruction;
[0028] an interface binding module, configured to bind a target LAN port and a target WAN port based on the second AT instruction, the number of the second AT instructions being at least one.
[0029] Optionally, the first AT instruction comprises a first enabling flag and an identification of at least one WAN port.
[0030] The first enabling flag is 1.
[0031] The data dialing module is specifically configured to activate the at least one WAN port based on the first enabling flag, and establish a PDU connection using the activated WAN port.
[0032] Optionally, the second AT instruction comprises a second enabling flag, a type of the target LAN port, an identification of a target VLAN and an identification of the target WAN port.
[0033] The second enabling flag is 1; the type of the target LAN port is a USB interface or an RGMII interface; and the target WAN port is any one of the activated WAN ports.
[0034] The interface binding module is specifically configured to determine the target LAN port based on the type of the target LAN port, and bind the data of the target VLAN of the target LAN port and the target WAN port based on the second enabling flag, the identification of the VLAN and the identification of the target WAN port.
[0035] In a third aspect, the present application provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus.
[0036] The memory is used for storing a computer program.
[0037] A processor is configured to implement the steps of the communication method according to any one of the first aspect when executing a program stored in a memory.
[0038] In a third aspect, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program. The computer program, when executed by a processor, implements the steps of the communication method according to any one of the first aspect.
[0039] Compared with the prior art, the above technical solution provided by the embodiments of the present application has the following advantages:
[0040] In the communication method provided by the embodiments of the present application, the mobile device management module receives the first AT instruction and the second AT instruction sent by the mobile device, performs data dialing based on the first AT instruction, and binds the target LAN port and the target WAN port based on the second AT instruction, wherein the target LAN port is a USB interface or an RGMII interface. In this way, the USB interface and the RGMII interface are respectively bound with the target WAN port without considering the mode of multi-dialing, so that the mobile device can support data services from the USB interface and the RGMII interface at the same time, and flexible dynamic configuration between the LAN port and the WAN port is realized. BRIEF DESCRIPTION OF DRAWINGS
[0041] The accompanying drawings, which are incorporated herein and form part of the specification, illustrate embodiments consistent with the present application and, together with the description, further serve to explain the principles of the application.
[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, for those skilled in the art, other drawings can also be obtained based on these drawings without creative labor.
[0043] Figure 1 A flowchart of a communication method provided by the embodiments of the present application;
[0044] Figure 2 A schematic diagram of a communication system provided by the embodiments of the present application;
[0045] Figure 3 A schematic diagram of a communication device provided by the embodiments of the present application;
[0046] Figure 4 A structural schematic diagram of an electronic device provided by the embodiments of the present application. DETAILED DESCRIPTION
[0047] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0048] In order to solve the problem that the tragedy occurs because the rescue measures cannot be taken in time after the vehicle falls into water, the present application provides a communication method applied to a mobile device management module which can be located in a module. As shown in the figure, Figure 1 In an embodiment of the present application, the communication method comprises steps 101-103:
[0049] Step 101: receiving a first AT instruction and a second AT instruction sent by a mobile device.
[0050] Specifically, the mobile device sends the first AT instruction and the second AT instruction to the mobile device management module.
[0051] Among them, the number of the first AT instruction can be at least one. Similarly, the number of the second AT instruction can also be at least one.
[0052] More specifically, the mobile device is connected with the mobile device management module through its USB interface and RGMII interface, and sends the first AT instruction and the second AT instruction to the mobile device management module through the USB interface and the RGMII interface.
[0053] Step 102: performing data dialing based on the first AT instruction.
[0054] Among them, the first AT instruction includes a first enable flag and the identification of at least one WAN port.
[0055] Specifically, when performing data dialing based on the first AT instruction, if the first enable flag is 1, then based on the first enable flag, the at least one WAN port is activated, and the PDU connection is established using the activated WAN port. That is, when the first enable flag is 1, the WAN port corresponding to the identification of the WAN port in the first AT instruction where the first enable flag is located is activated.
[0056] Correspondingly, if the first enable flag is 0, then based on the first enable flag, the at least one WAN port is deactivated. That is, when the first enable flag is 0, the WAN port corresponding to the identification of the WAN port in the first AT instruction where the first enable flag is located is deactivated.
[0057] Generally, the number of WAN ports to be activated by the first AT instruction can be default or determined based on actual needs of the mobile device.
[0058] More specifically, when establishing the PDU, the PDU connection can be established based on different CIDs (i.e. the identification of the PDP context).
[0059] For example, one PDU connection is established for each PDP context.
[0060] In another possible embodiment, the number of first AT instructions is at least one. One first AT instruction includes a first enable flag and the identification of one WAN port. By one first AT instruction, the WAN port corresponding to the identification of the WAN port included in the first AT instruction is activated.
[0061] In another possible embodiment, the first AT instruction can only include the first enable flag. If the first enable flag is 1, the default number of WAN ports are activated based on the first enable flag. Correspondingly, if the first enable flag is 0, the default number of WAN ports (or all WAN ports) are deactivated based on the first enable flag.
[0062] For example, in a three-way dialing, by the first AT instruction, WAN1, WAN2 and WAN3 are activated, i.e. WAN1 port, WAN2 port and WAN3 port are activated. At this time, the base station can be communicated with by the activated WAN1 port, WAN2 port and WAN3 port.
[0063] Specifically, the first AT instruction activates the corresponding WAN port by calling the GTDAIL tool. Correspondingly, the GTDAIL tool can also be called to deactivate the corresponding WAN port.
[0064] For example, the first AT instruction can be AT+GTDAIL=1. The 1 indicates activation. At this time, by the first AT instruction, all WAN ports corresponding to the multi-way dialing are activated, and the PDU connection is established by using the activated WAN ports.
[0065] For example, the first AT instruction can be AT+GTDAIL=1,1. The first 1 is the first enable flag, indicating activation. The second 1 is the identification of the WAN port, indicating WAN1 port. At this time, by the first AT instruction, WAN1 port is activated, and the PDU connection is established by using the activated WAN1 port.
[0066] Step 103: binding the target LAN port and the target WAN port based on the second AT instruction.
[0067] The target LAN port is a USB interface or an RGMII interface.
[0068] In addition, the second AT instruction includes a second enable flag, a type of the target LAN port, an identification of a target VLAN, and an identification of a target WAN port. The type of the target LAN port includes a USB interface or an RGMII interface, and the target WAN port is any one of the activated WAN ports.
[0069] Specifically, the target LAN port is determined based on the type of the target LAN port. Then, if the second enable flag is 1, the data of the target VLAN of the target LAN port is bound to the target WAN port based on the second enable flag, the identification of the target VLAN, and the identification of the target WAN port. Correspondingly, if the second enable flag is 0, the data of the target VLAN of the target LAN port is unbound from the target WAN port based on the second enable flag, the identification of the target VLAN, and the identification of the target WAN port.
[0070] More specifically, if the type of the target LAN port is a USB interface, the target LAN port is determined as a default USB interface, and if the type of the target LAN port is an RGMII interface, the target LAN port is determined as a default RGMII interface.
[0071] The default USB interface is a USB interface connected to the mobile device management module in the mobile device, and similarly, the default RGMII interface is an RGMII interface connected to the mobile device management module in the mobile device.
[0072] For example, the identification of the default USB interface can be usb0, and the identification of the default RGMII interface can be eth0.
[0073] More specifically, the second AT instruction binds the target LAN port and the target WAN port by calling the GTLANCFG tool. Correspondingly, the second AT instruction can also unbind the target LAN port and the target WAN port by calling the GTLANCFG tool.
[0074] For example, the second AT instruction is AT+GTLANCFG=1, 0, 2, 3. Here, 1 is the second flag, indicating binding, 0 is the type of the target LAN port, indicating that the type of the target LAN port is a USB interface, 2 is the identification of the VLAN, indicating VLAN2, and 3 is the identification of the target WAN port, indicating WAN3 port. At this time, the data of VLAN2 of the default USB interface, such as usb0, is bound to WAN3 port through the second AT instruction.
[0075] For example, the second AT instruction is AT+GTLANCFG=0,0,2,3. Wherein, 0 is the second flag bit, indicating unbinding, 0 is the type of the target LAN port, indicating that the type of the target LAN port is USB interface, 2 is the identification of the VLAN, indicating VLAN2, and 3 is the identification of the target WAN port, indicating WAN3 port. At this time, through the second AT instruction, the data of VLAN2 of the default USB interface, for example, usb0, is unbound from WAN3 port.
[0076] It can be understood that the binding or unbinding is performed on the up / down LAN side network card (or LAN port) inside the module, so as to realize the flexible configuration between the LAN port and the WAN port.
[0077] It should be noted that through the above process, for the multi-scene application on the mobile device, the mobile device management module can perform data dialing and interface binding based on the first AT instruction and the second AT instruction received from the mobile device, that is, binding the target WAN port and the USB interface / RGMII interface as the target LAN port. In this way, the LAN port and the WAN port can be flexibly and dynamically configured, and the mobile device can support data services from the USB interface while supporting data services from the RGMII interface when performing multi-dialing.
[0078] In addition, by using different AT instructions to perform data dialing and interface binding operations respectively, unnecessary association between data dialing and interface binding can be reduced.
[0079] In another possible embodiment, after binding the data of the target VLAN of the target LAN port to the target WAN port, an interface of the target VLAN is added under the target LAN port, and the interface of the target VLAN is bound to the target WAN port.
[0080] For example, by using ip link add link eth0 name eth0.1 type vlan id 1, an interface eth0.1 of VLAN1 is added under the RGMII interface eth0, and based on the binding of the VLAN1 data of eth0 to the WAN2 port, eth0.1 is bound to the WAN2 port, so that the data of eth0.1 is sent out through the WAN2 port.
[0081] Through the above process, the interface of the VLAN is added under the target LAN port, and the added interface of the VLAN is bound to the target WAN port, so that the VLAN interfaces under each LAN interface are flexibly distributed to the corresponding WAN port, and the flexible dynamic configuration between the VLAN data under the LAN port and the WAN port is realized.
[0082] In another possible implementation, after adding the interface of the target VLAN and binding the interface of the target VLAN with the target WAN port, the mobile device management module creates a bridge for communication between the interface of the target VLAN and the target WAN port, and allocates an intranet address for the target VLAN based on the bridge, and then converts the intranet address in data of the target VLAN into an extranet address, so as to send the data of the target VLAN to the base station through the target WAN port by using the extranet address. That is, the extranet address is used to send the data of the VLAN to the base station through the WAN port.
[0083] Specifically, after the bridge is established, the dnsmasq process is started based on the bridge to allocate an address to the corresponding VLAN in the mobile device. The address allocated to the corresponding VLAN in the mobile device is an intranet address.
[0084] Since the address (IP network segment) allocated to the mobile device by the mobile device management module is an intranet address starting with 192.168, only the forwarding function is enabled and the routing table is configured, and the communication between the intranet and the extranet cannot be realized. In order to solve this problem, the network address translation (NAT) technology of iptables can be used to perform network address translation, and convert the intranet address allocated to the corresponding VLAN in the mobile device into an extranet address.
[0085] For example, the intranet address of the VLAN can be converted to obtain the extranet address of the VLAN by using the iptables-t nat (table)-A POSTROUTING (transition chain)-o wanX-j MASQUERADE (address masquerade)-random command.
[0086] It can be understood that the binding or unbinding adds or removes the corresponding LAN side network card in the module to the corresponding bridge, so as to realize the flexible configuration between the LAN port and the WAN port.
[0087] For example, the mobile device sends a plurality of first AT instructions to perform data dialing, so as to activate the corresponding WAN port and establish a PDU connection. The plurality of first AT instructions are AT+GTRDAIL=1,1, AT+GTRDAIL=1,2, and AT+GTRDAIL=1,3. The AT+GTRDAIL=1,1 is used to activate the WAN1 port, the AT+GTRDAIL=1,1 is used to activate the WAN2 port, and the AT+GTRDAIL=1,3 is used to activate the WAN3 port. After the WAN1 port-WAN3 port is activated, the PDU connection is established by using the activated WAN1 port-WAN3 port.
[0088] For example, the mobile device sends a plurality of second AT commands to perform interface binding, i.e., binding the external data interface (LAN port) and the WAN port. The format of the second AT commands can be, for example, AT+GTLANCFG= <enable> , <type> , <vlanid> , <wanid>Wherein, enable is a second enable flag, 1 represents binding, and 0 represents unbinding; type is the type of the LAN port, 0 represents a USB interface, and 1 represents an RGMII interface; vlanid is the identification of the LAN side VLAN; and wanid is the identification of the WAN port.
[0089] Exemplarily, the plurality of second AT instructions can be AT+GTLANCFG=1, 0, 0, 3 and AT+GTLANCFG=1, 1, 1, 2. Wherein, AT+GTLANCFG=1, 0, 0, 3 is used for binding the data of the non-VLAN of the USB port and the WAN3 port, and AT+GTLANCFG=1, 1, 1, 2 is used for binding the data of VLAN1 of the USB port and the WAN2 port.
[0090] Exemplarily, after receiving the plurality of second AT instructions, the parameter information of the VLAN is configured on the host computer. A new VLAN1 interface, i.e. eth0.1 interface, is added under the actual eth0 interface through iplink add link eth0 name eth0.1 type vlan id 1. At this time, the binding of eth0.1 and the WAN2 port is realized, so that the data of eth0.1, i.e. the data of VLAN1, is transmitted out through the WAN2 port (i.e. to the base station).
[0091] Exemplarily, as shown in Figure 2 , the present application is mainly applied to Figure 2 a communication system. The communication system includes a mobile device, a mobile device management module (MDM) and a base station.
[0092] Wherein, the mobile device is connected with the mobile device management module through its AT port, and the mobile device management module communicates with the base station through a public data network (PDN).
[0093] Specifically, the mobile device supports USB multi-dialing and also supports RGMII multi-dialing.
[0094] Specifically, the mobile device includes a plurality of AT ports, and the plurality of AT ports include actual ports such as usb0 and eth0. The usb0 port is further divided or increased with VLAN usb ports such as usb0.1 and usb0.2, and the eth port is further divided or increased with VLAN eth ports such as eth0.1 and eth0.2.
[0095] The mobile device is used to send a first AT instruction and a second AT instruction, i.e., AT+GTDAIL instruction and AT+GTLANCFG instruction, to the mobile device management module.
[0096] Specifically, the mobile device management module further comprises a local area network management (LAN-MGR) submodule and a data call (DATACALL) submodule.
[0097] The data call submodule activates different WAN ports and establishes PDU connections by using different APN technologies, such as default PDN technology or on demand technology, based on the received first AT instruction. Figure 2 As shown in the figure, WAN1 port is activated by using default PDN technology, WAN2 port and WAN3 port are activated by using on demand technology, and PDU connections are established, WAN1 port connects the base station through PDN1, WAN2 port connects the base station through PDN2, and WAN3 port connects the base station through PDN3.
[0098] Specifically, the LAN-MGR submodule binds / unbinds the VLAN interface under the LAN port, such as USB interface or RGMII interface, with WAN based on the received second AT instruction. Figure 2 As shown in the figure, the data of VLAN1 of the USB interface is bound with WAN1 port (or WAN1 dialing), the data of non-VLAN of the USB interface is bound with WAN3 port (or WAN3 dialing), the data of VLAN1 of the RGMII interface (i.e., eth interface) is bound with WAN2 port (or WAN2 dialing), and the data of VLAN2 of the RGMII interface is bound with WAN3 port (or WAN3 dialing).
[0099] Specifically, as shown in the figure, the LAN-MGR submodule establishes bridges bridge0, bridge1 and bridge2 between the LAN-MGR submodule and the mobile device. Figure 2
[0100] As shown in the figure, the embodiment of the application provides a communication device, which comprises a receiving module 301, a data dialing module 302 and an interface binding module 303. Figure 3
[0101] The receiving module 301 is used to receive the first AT instruction and the second AT instruction sent by the mobile device.
[0102] The receiving module 301 is used to receive the first AT instruction and the second AT instruction sent by the mobile device.
[0103] a data dialing module 302, configured to dial data based on the first AT instruction;
[0104] an interface binding module 303, configured to bind a target LAN interface and a target WAN interface based on the second AT instruction, the target LAN interface being a USB interface or a RGMII interface, and the number of the second AT instructions being at least one.
[0105] As shown in Figure 4 The embodiment of the present application provides an electronic device, which comprises a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 complete mutual communication through the communication bus 404.
[0106] The memory 403 is used for storing a computer program.
[0107] In an embodiment of the present application, the processor 401 is used for executing the program stored in the memory 403, so as to realize the steps of the communication method provided by any one of the preceding method embodiments.
[0108] The embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the steps of the communication method provided by any one of the preceding method embodiments.
[0109] The electronic device provided by the embodiment of the present application can be specifically a module capable of realizing a communication function or a terminal device containing the module, and the terminal device can be a mobile terminal or a smart terminal. The mobile terminal can be at least one of a mobile phone, a tablet computer and a notebook computer. The smart terminal can be a smart car, a smart watch, a shared bicycle, a smart cabinet and the like containing a wireless communication module. The module can be a wireless communication module, for example, any one of a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module and a NB-IOT communication module.
[0110] It has to be noted that, in the present document, the terms "first", "second", etc. merely serve the purpose of distinguishing between two entities or operations whose relationship is not that critical, while the scope of the application is not limited to any such relationship or order. Furthermore, the terms "comprising", "containing" or any other corresponding lexical verb descriptions should be interpreted as referring to a non-exclusive inclusion such that a process, method, article or apparatus that comprises a list of elements does not only comprise those elements but can also comprise other elements not expressly listed or inherent to such process, method, article or apparatus. An element specified by the phrase "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus that comprises the element specified.
[0111] The foregoing is considered as illustrative only of the principles of the application. Numerous modifications and changes will readily occur to those skilled in the art, and the application is not intended to be limited to the above examples. Rather, the scope of the application is to be defined by the following claims, properly construed in connection with the description.< / wanid> < / vlanid> < / type> < / enable>
Claims
1. A communication method, characterized in that, Applied to a mobile device management module, the method includes: The device receives a first AT command and a second AT command sent by a mobile device; wherein the first AT command includes a first enable flag and an identifier of at least one WAN port; the second AT command includes a second enable flag, a target LAN port type, a target VLAN identifier, and a target WAN port identifier; the target LAN port type is a USB interface or an RGMII interface; the target WAN port is any one of the activated WAN ports; Data dialing is performed based on the first AT command; wherein, the data dialing based on the first AT command includes: if the first enable flag is 1, then the at least one WAN port is activated based on the first enable flag, and a PDU connection is established using the activated WAN port. Based on the second AT command, a target LAN port and a target WAN port are bound together. The target LAN port is a USB interface or an RGMII interface, and the number of the second AT commands is at least one. The binding of the target LAN port and the target WAN port based on the second AT command includes: determining the target LAN port based on its type; if the second enable flag is 1, binding the data of the target VLAN on the target LAN port to the target WAN port based on the second enable flag, the identifier of the target VLAN, and the identifier of the target WAN port.
2. The communication method according to claim 1, characterized in that, After binding the data of the target VLAN on the target LAN port to the target WAN port, the method further includes: Add an interface for the target VLAN under the target LAN port, and bind the interface of the target VLAN to the target WAN port.
3. The communication method according to claim 2, characterized in that, After adding the target VLAN interface and binding the target VLAN interface to the target WAN port, the method further includes: Create a bridge for communication with the interface of the target VLAN; Based on the bridge, an internal network address is assigned to the target VLAN; The internal network address in the data of the target VLAN is converted into an external network address, and the external network address is used to send the data of the target VLAN to the base station through the target WAN port.
4. A communication device, characterized in that, The device includes: The receiving module is used to receive a first AT command and a second AT command sent by the mobile device; wherein, the first AT command includes a first enable flag and an identifier of at least one WAN port; the second AT command includes a second enable flag, a target LAN port type, a target VLAN identifier, and a target WAN port identifier; the target LAN port type is a USB interface or an RGMII interface; the target WAN port is any one of the activated WAN ports; The data dialing module is used to perform data dialing based on the first AT command; wherein, performing data dialing based on the first AT command includes: if the first enable flag is 1, then activating the at least one WAN port based on the first enable flag, and using the activated WAN port to establish a PDU connection. An interface binding module is used to bind a target LAN port and a target WAN port based on the second AT command. The target LAN port is a USB interface or an RGMII interface, and the number of the second AT commands is at least one. The binding of the target LAN port and the target WAN port based on the second AT command includes: determining the target LAN port based on its type; if the second enable flag is 1, binding the data of the target VLAN on the target LAN port to the target WAN port based on the second enable flag, the identifier of the target VLAN, and the identifier of the target WAN port.
5. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the steps of the communication method according to any one of claims 1-3.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the communication method as described in any one of claims 1-3.
Citation Information
Patent Citations
Broadband programmable logic controller (PLC) product and method for achieving multi-wide area network (WAN) connection
CN103023734A