CN114793354B - Information transmission method, communication device, chip and module equipment - Google Patents

Information transmission method, communication device, chip and module equipment Download PDF

Info

Publication number
CN114793354B
CN114793354B CN202210385874.8A CN202210385874A CN114793354B CN 114793354 B CN114793354 B CN 114793354B CN 202210385874 A CN202210385874 A CN 202210385874A CN 114793354 B CN114793354 B CN 114793354B
Authority
CN
China
Prior art keywords
equipment
address
development
module
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210385874.8A
Other languages
Chinese (zh)
Other versions
CN114793354A (en
Inventor
余庆均
黄宁彪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shenzhen Co ltd
Original Assignee
Spreadtrum Communications Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Shenzhen Co ltd filed Critical Spreadtrum Communications Shenzhen Co ltd
Priority to CN202210385874.8A priority Critical patent/CN114793354B/en
Publication of CN114793354A publication Critical patent/CN114793354A/en
Application granted granted Critical
Publication of CN114793354B publication Critical patent/CN114793354B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Abstract

The application discloses an information transmission method, a communication device, a chip and a module device, wherein the method is applied to terminal equipment and comprises the following steps: the method comprises the steps that a terminal device establishes wireless connection with a development device, and the terminal device and the development device are connected with the same wireless access point; and sending log information of the CP running application program to the development equipment based on the wireless connection so that the development equipment develops the application program according to the log information. By adopting the method provided by the embodiment of the application, the wireless connection can be established between the development equipment and the terminal equipment, so that the terminal equipment without leakage can transmit the log information of the CP running application program to the development equipment without excessively depending on the exposed hardware configuration, the flexibility of information transmission can be improved, and the development equipment is also more beneficial to developing the application program.

Description

Information transmission method, communication device, chip and module equipment
Technical Field
The present disclosure relates to the field of wireless communications technologies, and in particular, to an information transmission method, a communication device, a chip, and a module device.
Background
With the development of terminal devices, the functions of the terminal devices such as mobile phones are increasingly enhanced, and the terminal devices become an indispensable part of daily life of people. In the process of developing part of software in the terminal equipment, a developer needs to acquire the running state and the service flow of the terminal equipment in real time, so that real-time development and debugging are performed. At present, a developer usually connects a development device with the terminal device through a universal serial bus (Universal Serial Bus, USB), so that the terminal device can transmit log information to the development device through the USB, and the developer can acquire an operation state and a service flow in real time according to the log information transmitted by the terminal device, and develop and debug in real time. However, some terminal devices encapsulate a USB cable or serial port inside the terminal device based on the waterproof performance or the requirement of the volume limitation, and the terminal device cannot communicate with the development device through the USB without an exposed physical port.
Therefore, how to transmit log information to the development device is a technical problem that needs to be solved currently.
Disclosure of Invention
The embodiment of the application provides an information transmission method, a communication device, a chip and a module device, wherein wireless connection can be established between a terminal device and a development device, log information of an application program operated by a communication processor (Communication Processer, CP) in the terminal device is transmitted to the development device through the wireless connection, limitation of hardware configuration on transmission of the log information can be avoided, flexibility of information transmission is improved, and development of the application program by the development device is facilitated.
In a first aspect, the present application provides an information transmission method, applied to a terminal device, where the terminal device includes a CP, the method includes:
the terminal equipment establishes wireless connection with the development equipment, and the terminal equipment and the development equipment are accessed to the same wireless access point;
and sending log information of the CP running application program to the development equipment based on the wireless connection so that the development equipment develops the application program according to the log information.
In one implementation, the terminal device further comprises an application processor (Application Processer, AP), the terminal device storing a preset port; the terminal device establishes wireless connection with the development device, and comprises:
receiving and outputting a first Internet Protocol (IP) address allocated to the terminal equipment by the wireless access point;
receiving a connection request from the preset port through the AP, wherein the connection request is sent to the terminal equipment by the development equipment according to the first IP address and the preset port;
and sending a connection response to the development equipment through the AP based on the connection request.
In one implementation manner, the terminal device further includes an AP, and the terminal device stores a preset port; the terminal device establishes wireless connection with the development device, and comprises:
Acquiring a second IP address, wherein the second IP address is an IP address distributed by the wireless access point for the development equipment;
according to the second IP address and the preset port, a connection request is sent to the development equipment through the AP;
and receiving a connection response from the preset port through the AP, wherein the connection response is sent by the development equipment based on the connection request.
In one implementation, the first IP address is dynamically allocated by the wireless access point for the terminal device; or,
the first IP address is allocated to the terminal equipment by the wireless access point according to the Media Access Control (MAC) address of the terminal equipment.
In one implementation, the sending, based on the wireless connection, log information of the CP running application to the development device includes:
and transmitting, by the AP, the log information to the development device based on the wireless connection, the log information being transmitted by the CP to the AP.
In one implementation, the wireless connection is a SOCKET connection.
In a second aspect, the present application provides an information transmission method applied to a development device, where the method includes:
The terminal equipment establishes wireless connection with the development equipment, and the terminal equipment and the development equipment are accessed to the same wireless access point;
receiving log information of a running application program from a communication processor CP in the terminal device based on the wireless connection;
and developing the application program according to the log information.
In one implementation, the terminal device further includes an AP, and the development device stores a preset port; the terminal device establishes wireless connection with the development device, and comprises:
acquiring a first Internet Protocol (IP) address, wherein the first IP address is an IP address distributed by the wireless access point for the terminal equipment;
sending a connection request to the terminal equipment according to the first IP address and the preset port;
and receiving a connection response sent by the terminal equipment through the AP, wherein the connection response is sent by the terminal equipment through the AP based on the connection request.
In one implementation, the terminal device further includes an AP, and the development device stores a preset port; the terminal device establishes wireless connection with the development device, and comprises:
receiving and outputting a second IP address allocated by the wireless access point;
Receiving a connection request from the preset port, wherein the connection request is sent to the development equipment by the terminal equipment according to the second IP address and the preset port;
and sending a connection response to the terminal equipment based on the connection request.
In one implementation, the second IP address is randomly assigned by the wireless access point to the development device; or,
the second IP address is dynamically allocated to the development equipment by the wireless access point; or the second IP address is allocated to the development device by the wireless access point according to the media access control MAC address of the terminal device.
In one implementation, the wireless connection is a SOCKET connection.
In a third aspect, the present application provides a communication apparatus applied to a terminal device, the terminal device including a CP, the communication apparatus comprising:
the processing unit is used for establishing wireless connection with the development equipment, and the communication device and the development equipment are connected with the same wireless access point;
and the communication unit is used for sending the log information of the CP running application program to the development equipment based on the wireless connection so that the development equipment can develop the application program according to the log information.
In addition, in this aspect, other optional implementations of the communication device may be referred to in the relevant content of the first aspect, which is not described in detail herein.
In a fourth aspect, the present application provides a communication apparatus applied to development equipment, the communication apparatus comprising:
the processing unit is used for establishing wireless connection with the development equipment by the terminal equipment, and the terminal equipment and the development equipment are accessed to the same wireless access point;
a communication unit for receiving log information from a communication processor CP running an application program in the terminal device based on the wireless connection;
and the processing unit is used for developing the application program according to the log information.
In addition, in this aspect, other optional embodiments of the communication device may be referred to in the related content of the second aspect, which is not described in detail herein.
In a fifth aspect, the present application provides a communication device comprising a processor and a memory for storing computer-executable instructions; the processor is configured to perform the method of the first aspect or the second aspect and any one of its possible implementations.
In a sixth aspect, the present application provides a communication device comprising a processor and a transceiver for receiving signals or transmitting signals; the processor is configured to perform the method of the first aspect or the second aspect and any one of its possible implementations.
In a seventh aspect, the present application provides a communication device comprising a processor, a memory, and a transceiver for receiving signals or transmitting signals; the memory is used for storing program codes; the processor is configured to invoke the program code from the memory to perform the method as in the first aspect or the second aspect and any possible implementation thereof.
In an eighth aspect, the present application provides a chip comprising a communication processor CP; the chip is used for establishing wireless connection with the development equipment, and the chip and the development equipment are connected with the same wireless access point;
the chip is further used for sending log information of the CP running application program to the development equipment based on the wireless connection, so that the development equipment develops the application program according to the log information.
In a ninth aspect, the present application provides a chip, configured to establish a wireless connection with the terminal device, where the terminal device and the chip have access to the same wireless access point;
the chip is also used for receiving log information of running an application program from a communication processor CP in the terminal equipment based on the wireless connection;
The chip is also used for developing the application program according to the log information.
In a tenth aspect, the present application provides a module apparatus, the module apparatus including a communication module, a power module, a storage module, and a chip module, the module apparatus further including a communication processor CP, wherein: the communication module is used for carrying out internal communication of the module equipment or carrying out communication between the module equipment and external equipment; the power supply module is used for providing electric energy for the module equipment; the storage module is used for storing data and instructions; the chip module is used for establishing wireless connection with development equipment, and the module equipment and the development equipment are connected with the same wireless access point; the chip module is also used for: and sending log information of the CP running application program to the development equipment based on the wireless connection so that the development equipment develops the application program according to the log information.
In an eleventh aspect, the present application provides a module apparatus, the module apparatus including a communication module, a power module, a storage module, and a chip module, wherein: the communication module is used for establishing wireless connection with the terminal equipment, and the terminal equipment and the module equipment are accessed to the same wireless access point; the chip module is also used for receiving log information of running an application program from a communication processor CP in the terminal equipment based on the wireless connection; the chip module is also used for developing the application program according to the log information.
In a twelfth aspect, the present application provides a computer readable storage medium having stored therein computer readable instructions which, when run on a communication device, cause the communication device to perform the method of the first or second aspect and any one of its possible implementations.
In a thirteenth aspect, the present application provides a computer program or computer program product comprising code or instructions which, when run on a computer, cause the computer to perform the method as in the first or second aspect.
In the embodiment of the application, after the terminal device and the development device have access to the same wireless access point, the terminal device may establish wireless connection with the development device, and based on the established wireless connection, the terminal device may send log information of a CP running application program in the terminal device to the development device, so that the development device may develop the application program according to the log information. Therefore, the terminal equipment and the development equipment do not need to communicate in a wired mode, the limitation that the terminal equipment without an exposed physical interface cannot transmit log information is avoided, the flexibility of information transmission is improved, and the development equipment is more beneficial to developing the application program operated by the CP in the terminal equipment.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic architecture diagram of a communication system according to an embodiment of the present application;
fig. 2 is a schematic flow chart of an information transmission method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of communication between a terminal device and a development device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of still another communication device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a chip according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a module device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Referring to fig. 1, fig. 1 is a schematic architecture diagram of a communication system according to an embodiment of the present application. As shown in fig. 1, the communication system may include a wireless access point 101, a terminal device 102, and a development device 103. The terminal device 102 and the development device 103 are both an entity for receiving or transmitting signals on the user side, and the wireless access point 101 is an entity for transmitting or receiving signals on the network side. The terminal device 102 and the development device 103 may receive the wireless signal sent by the wireless access point 101, where the terminal device 102 and the development device 103 access the wireless access point 101, that is, the terminal device 102 and the development device 103 may be in the same local area network based on the wireless access point 101, and further, the terminal device 102 may establish a wireless connection with the development device 103 based on the accessed wireless access point 101, and send log information of the CP running application program in the terminal device 102 to the development device 103, so that the development device develops the application program according to the log information.
It should be noted that the number and the form of the devices shown in fig. 1 are used as examples, and are not limited to the embodiments of the present application, and in practical application, the communication system may include more than one terminal device or more than one network device. The present embodiment is explained taking one wireless access point 101, one terminal device 102, and one development device 103 as examples. In practical application, a plurality of terminal devices can establish wireless connection with one development device, and then the plurality of terminal devices can respectively send log information of the CP running application programs in the terminal devices to the development device, so that the development device respectively develops the application programs in each terminal device. In practical application, a terminal device may also establish wireless connection with multiple development devices, where the terminal device may send logs of CP running applications in the terminal device to the development devices, so that the multiple development devices may develop the applications in the terminal device. The present application explains by taking an example in which one terminal device 102 transmits log information of CP running application programs in the terminal device to one development device 103.
In the embodiment of the present application, the terminal device 102 and the development device 103 may be a mobile phone (mobile phone), a tablet computer (Pad), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal device, an augmented reality (augmented reality, AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned driving (self driving), a wireless terminal in remote medical (remote medical), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation security (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), and the like. In the embodiment of the present application, the wireless access point may be a hardware device connected to a network, and the wireless access point may be a Router (Router), a gateway, or the like.
The terminal device typically includes two processors: an AP and a CP. The AP is mainly used for running application programs in the terminal equipment and providing software functions of the terminal equipment; so-called CPs are mainly used to provide communication functions of terminal devices, such as access base stations and the like. When some applications are running, the CP in the terminal device may also run, for example, an application with a communication function, and an application that needs to provide a function of accessing to the base station is needed. At present, in the development process of the software, the Log information (Log information) of the CP running the application program is usually required to be checked in real time to judge the running state of the CP or the service flow of the application program, but the CP has a communication function, but the CP cannot directly transmit the Log information to the development device, only can transmit the Log information to the AP, and the AP transmits the Log information to the development device through the USB or the serial port, so that the developer can develop on the development device according to the Log information. If the terminal equipment has no communication mode of USB or serial port, communication cannot be established with the development equipment, so that development of application programs is affected.
In the information transmission method, terminal equipment and development equipment are accessed to the same wireless access point, the terminal equipment establishes wireless connection with the development equipment through the same wireless access point, and log information of a CP running application program in the terminal equipment is sent to the development equipment based on the wireless connection terminal equipment, so that the development equipment develops the application program according to the log information. Therefore, the terminal equipment and the development equipment do not need to communicate in a wired mode, so that the limitation that the log information cannot be transmitted due to the fact that the USB or the serial port is packaged in the terminal equipment is avoided, the flexibility of information transmission is improved, and the development of an application program can be ensured.
Based on the above communication system, the embodiment of the present application provides an information transmission method, which may be implemented by interaction between the terminal device 102 and the development device 103 in the communication system shown in fig. 1. Referring to fig. 2, fig. 2 is a schematic flow chart of an information transmission method according to an embodiment of the present application. The information transmission method may include the following steps 201-202:
201. The terminal device establishes a wireless connection with the development device.
In the embodiment of the application, before the terminal device establishes the wireless connection with the development device, the terminal device and the development device access the same wireless access point. The wireless access point is taken as a router for explanation, after the terminal equipment and the development equipment are accessed to the same wireless access point, the terminal equipment and the development equipment can be in the same wireless local area network, the wireless access point (router) can distribute internet protocol addresses (Internet Protocol, IP) addresses for the terminal equipment and the development equipment, further, the terminal equipment can establish wireless connection with the development equipment according to the IP address of the development equipment, and similarly, the development equipment can also establish wireless connection with the terminal equipment according to the IP address of the terminal equipment. The wireless connection may be a socket connection, or may be another wireless connection, for example, a Peer-to-Peer (p 2 p) connection, which is not limited in this application. The present application explains using wireless connection as socket connection as an example.
In one implementation, the terminal device and the development device may access a wireless access point (router) according to a service set identification (Service Set Identifier, SSID) of the wireless access point and a password corresponding to the SSID. Optionally, the terminal device and the development device may display a user interface, where the user interface may include available wireless local area networks (wireless local area networks, WLAN) provided by the multiple wireless access points, and the terminal device and the development device display the signal strength of each received wireless access point, so that the terminal device and the development device may access a WLAN according to the SSID and the corresponding password, that is, access a wireless access point corresponding to a WLAN. After both the terminal device and the development device access the same wireless access point, the wireless access point may assign IP addresses to the terminal device and the development device. The IP address of the development device may be allocated to the development device by the wireless access point according to a MAC address of the development device, and the IP address of the terminal device may be dynamically allocated to the terminal device by the wireless access point according to a MAC address of the development device.
In one implementation, by dynamically assigning IP addresses is meant that the IP address assigned to the wireless access point is accessed by the terminal device and the development device each time the IP address of the terminal device and the IP address of the network device are not fixed IP addresses. The IP addresses of both are assigned to the terminal device and the development device based on a dynamic host configuration protocol (Dynamic Host Configuration Protocol, DHCP) after the terminal device and the development device access the wireless local area network (the wireless access point).
In another implementation, the wireless access point may store a MAC address library that stores a correspondence of MAC addresses and IP addresses. The MAC addresses in the terminal equipment and the development equipment are fixed, after the terminal equipment and the development equipment are connected with the wireless access point, the wireless access point can acquire the MAC addresses of the terminal equipment and the development equipment, and if the MAC addresses are compared in a stored MAC address library to be the MAC addresses of the terminal equipment, the wireless access point can allocate the IP addresses corresponding to the MAC addresses for the terminal equipment. Similarly, when the wireless access point determines that the MAC address is the MAC address of the development device, the network device may be allocated an IP address corresponding to the MAC address of the development device, so that the IP addresses allocated to the terminal device and the development device are fixed.
For convenience of description, the application takes the IP address of the terminal device as the first IP address, and the IP address of the development device as the second IP address as an example for explanation. The terminal device and the development device can establish wireless connection based on the IP addresses of the terminal device and the development device, and the application takes the wireless connection as socket connection as an example for explanation.
Before the terminal device and the development device establish wireless communication, the opposite side IP address needs to be acquired, and the terminal device may output the first IP address so that the development device acquires the first IP address. Similarly, the development device may also output the second IP address for the terminal device to acquire. Alternatively, the terminal device may display the first IP address in a user interface of the terminal device, and the development device may receive the first IP address input by the user according to the IP address in the user interface displayed by the terminal device, so that the development device may obtain the IP address of the terminal device, and similarly, the development device may also obtain the second IP address by outputting the second IP address in the user interface of the development device, and the terminal device may obtain the second IP address by receiving the input of the user. Optionally, the terminal device may also generate and display a two-dimensional code according to the first IP address, and the development device may scan the two-dimensional code output by the development device to obtain the first IP address, and similarly, the terminal device may also scan the two-dimensional code output by the development device to obtain the second IP address. Optionally, the terminal device and the development device may send their own IP addresses to the third party device in other manners, and transmit the IP addresses through the third party device, so that the terminal device and the development device may obtain the opposite IP addresses, which is not limited in this application.
After the terminal device and the development device acquire the IP address of the opposite side, the terminal device may establish a wireless connection with the development device, and the explanation will be given below taking the wireless connection as a socket connection as an example. By socket is meant a network programming interface independent of the specific protocol, the interface being operated by a specific function so that a reliable communication connection can be established and communicated with the transmission control protocol (Transmission Control protocol, TCP)/IP protocol based on the application layer. In the socket connection, the transmission of the log information between the terminal device and the network device may be communication between processes of the terminal device and the network device. The IP address is used to identify a certain device, and the process may be uniquely identified by a port (protocol+port number), that is, the port may be used to distinguish to which process the received data packet is forwarded for processing, the protocol may be a TCP protocol or a user datagram protocol (User Datagram Protocol, UDP) protocol, and the process in the network may interact with other processes using the IP address and the port.
In one implementation manner, in the socket communication process, the socket communication process is divided into a server and a client, the server calls a socket () function to create a socket descriptor, a socket is uniquely identified, the server and the client can pre-agree on a port number through which to communicate, the server can call a bind () function to bind an IP address and a port number of the server, that is, pre-agree on a specific port, and the port is used for transmitting Log information (Log information). Further, the server side calls a listen () function to monitor whether the port has a client side to send a connection request according to the port, and waits for connection of the client side. At this time, the client calls the connect () function to send a connection request to the server, and the server may call the accept () function to receive the connection request sent by the client and return a connection response based on the connection request sent by the client. The server and the client can establish a reliable connection in a three-way handshake manner, that is, the client sends a connection request to the server, the connection request is a synchronization sequence number (Synchronize Sequence Numbers, SYN) message, the server sends an ACK to the server again after responding through a syn+ acknowledgement character (Acknowledge Character, ACK), which indicates that the connection between the client and the server is established, and Log information (Log information) can be transmitted based on the established socket connection.
In one implementation manner, the server may be a terminal device, the client may be a development device, both the terminal device and the development device may store a preset port, the terminal device may output a first IP address so that the development device obtains the first IP address, after the development device obtains the first IP address, the development device sends a connection request to the server (i.e., the terminal device) according to the first IP address and the stored preset port (preset port number), the terminal device monitors the preset port, waits for the client to send the connection request, and when the terminal device receives the connection request, sends a connection response to the development device based on the connection request, and establishes a wireless connection with the development device through a three-way handshake manner.
In another implementation manner, the server may be a development device, the client may be a terminal device, and the terminal device and the development device each store a preset port. Similarly, the development device may output the second IP address, so that the terminal device obtains the second IP address, and further the development device may monitor the preset port, and wait for the terminal device to send the connection request. After the terminal equipment sends a connection request to the development equipment through the second IP address and the port number of the preset port, the development equipment receives the connection request, sends a connection response to the development equipment based on the connection request, and establishes wireless connection with the terminal equipment in a three-way handshake mode.
202. And the terminal equipment sends log information of the CP running application program to the development equipment based on the wireless connection.
The terminal device sends log information of the CP running application program to the development device based on the socket link, for example. The terminal equipment stores the log information of the CP running application program, and sends the stored log information to the development equipment through a socket link. In socket connection, a client or a server can write information, such as log information of a CP, by calling a write () function, and the other end can read the information written by the client by calling a read () function, thereby completing transmission of the log information.
Further, after the information transmission of the client and the server is completed, the client and the server can close the created socket descriptor by calling a close () function, for example, the client can send a Finish (FIN) message to the server to indicate that the socket connection is released, the server receives FIN and returns a client ACK, that is, the server confirms the FIN and sends FIN to the client, and further receives the acknowledgement for the FIN sent by the client, thereby completing a four-way handshake, and closing the socket, that is, releasing the link. Further, when the next time an application program running in the CP in the terminal device needs to be developed, the wireless connection is established again and log information is acquired. Similarly, after the information transmission between the client and the server is completed, the server may send FIN message to the client, so that the client responds to the request for releasing connection, and may disconnect socket connection in a four-way handshake manner. Optionally, the client may be a terminal device, and the server may be a development device; alternatively, the client may be a development device, and the server may be a terminal device.
In the embodiment of the application, after the terminal device and the development device have access to the same wireless access point, the terminal device may establish wireless connection with the development device, and based on the established wireless connection, the terminal device may send log information of a CP running application program in the terminal device to the development device, so that the development device may develop the application program according to the log information. Therefore, the terminal equipment and the development equipment do not need to communicate in a wired mode, the limitation that the terminal equipment without an exposed physical interface cannot transmit log information is avoided, the flexibility of information transmission is improved, and the development equipment is more beneficial to developing the application program operated by the CP in the terminal equipment.
Referring to fig. 3, fig. 3 is a schematic structural diagram of communication between a terminal device and a development device according to an embodiment of the present application. As shown in fig. 3, the terminal device includes an AP and a CP, where the AP includes two sub-modules: the interactive module (e.g., engPC) is a module for the terminal device to interact with other devices, for example, the terminal device may establish a wireless connection with the development device through the interactive module in the AP, and send log information of the CP running application program to the development device through the interactive module based on the wireless connection. By engineering module (e.g., engMode) is meant a module for accessing a wireless access point, e.g., a terminal device may access a wireless access point (router), i.e., a wireless local area network, by invoking a corresponding interface through the engineering module.
After the AP in the terminal equipment is accessed to the wireless access point through the engineering module, after the development equipment is also accessed to the wireless access point, the CP in the terminal equipment can send the log information of the CP running application program to the interaction module in the AP in a mode of interprocess communication (Inter Process Communication, IPC). For example, the log information is sent to an interaction module of the AP by a pipe (pipe), and then the terminal device establishes a wireless connection (for example, socket connection) with the development device through the interaction module of the AP, and sends the log information to the development device based on the wireless connection (socket connection), and a log reading tool (for example, an armlog tool) in the development device can receive and read the log information. The Log reading tool in the development device is a program, and the development device can develop the application program according to Log information (Log information) received and read by a process of the Log reading tool (such as an armlog tool). Alternatively, the log information may be log information of an application level of the terminal device CP running, or log information of a plurality of application programs of the terminal device running, which is not limited in this application.
Optionally, in the process of establishing the socket connection, the server may be a terminal device, and the client may be a development device, so that the terminal device may create the socket connection through an interaction module (for example, an Engpc) in the AP, monitor a preset port, and receive a connection request sent by the client and perform a connection response to the connection request. The development device may send a connection request to the server through a process running a log reading tool (e.g., an armlog tool).
Alternatively, in the process of establishing the socket connection, the server may be a terminal device, the client may be a development device, and then the development device listens to the preset port, receives the connection request, and the response to the connection request may be performed by a log reading tool process in the development device, where the terminal device sends the connection request to the development device, and the receiving of the connection response is performed by an interaction module (for example, engpc) in the terminal device AP.
In one implementation, a CP in the terminal device transmits Log information (Log information) of the CP running application program to an AP in the terminal device through IPC, and then transmits the Log information to a Log reading tool of the development device based on a socket link through the AP. After receiving the log information, the log reading tool in the development device can acquire the running state and the service flow of the terminal device CP based on the log information, so that the development device can develop the application program running on the CP by the development device.
In the embodiment of the application, after the terminal device and the development device have access to the same wireless access point, the terminal device may establish wireless connection with the development device, and based on the established wireless connection, the terminal device may send log information of a CP running application program in the terminal device to the development device, so that the development device may develop the application program according to the log information. Therefore, the terminal equipment and the development equipment do not need to communicate in a wired mode, the limitation that the terminal equipment without an exposed physical interface cannot transmit log information is avoided, the flexibility of information transmission is improved, and the development equipment is more beneficial to developing the application program operated by the CP in the terminal equipment.
It will be appreciated that, in order to implement the functions in the above embodiments, the terminal device or the development device includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the elements and method steps of the examples described in connection with the embodiments disclosed herein may be implemented as hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application scenario and design constraints imposed on the solution.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a communication device according to an embodiment of the present application. The communication device shown in fig. 4 may comprise a processing unit 401 and a communication unit 402. The processing unit 401 is configured to perform data processing. The communication unit 402 is integrated with a receiving unit and a transmitting unit. The communication unit 402 may also be referred to as a transceiving unit. Alternatively, the communication unit 402 may be split into a receiving unit and a transmitting unit.
In one embodiment:
the processing unit 401 is configured to establish a wireless connection with a development device, where the communication device 40 and the development device have access to the same wireless access point;
The communication unit 402 is configured to send log information of the CP running application to the development device based on the wireless connection, so that the development device develops the application according to the log information.
In one implementation, the communication device 40 further includes an AP, and the communication device 40 stores a preset port; the processing unit 401 is configured to establish a wireless connection with the development device by using the communication apparatus 40, and specifically is configured to:
receiving and outputting a first internet protocol, IP, address assigned by the wireless access point for the communication device 40;
receiving, by the AP, a connection request from the preset port, the connection request being sent by the development device to the communication apparatus 40 according to the first IP address and the preset port;
and sending a connection response to the development equipment through the AP based on the connection request.
In one implementation, the communication device 40 further includes an AP, and the communication device 40 stores a preset port; the processing unit 401 is configured to establish a wireless connection with the development device by using the communication apparatus 40, and specifically is configured to:
acquiring a second IP address, wherein the second IP address is an IP address distributed by the wireless access point for the development equipment;
According to the second IP address and the preset port, a connection request is sent to the development equipment through the AP;
and receiving a connection response from the preset port through the AP, wherein the connection response is sent by the development equipment based on the connection request.
In one implementation, the first IP address is dynamically assigned by the wireless access point for the communication device 40; alternatively, the first IP address is assigned to the communication device 40 by the wireless access point according to a medium access control MAC address of the communication device 40.
In one implementation, the communication unit 402 is configured to send log information of the CP running application to the development device based on the wireless connection, specifically configured to: and transmitting, by the AP, the log information to the development device based on the wireless connection, the log information being transmitted by the CP to the AP.
In one implementation, the wireless connection is a SOCKET connection.
In the above embodiment, the communication device 40 may be a terminal device, a device in a terminal device, or a device that can be used in cooperation with a terminal device. Specifically, the operations performed by the units of the communication apparatus 40 shown in fig. 4 may refer to the relevant content of the terminal device in the method embodiments corresponding to fig. 2-3, which are not described in detail herein. The above units may be implemented in hardware, software or a combination of hardware and software. In one embodiment, the functions of the processing unit 401 and the communication unit 402 in the foregoing may be implemented by one or more processors in the communication device 40.
In this embodiment, the communication device 40 and the development device do not need to communicate in a wired manner, which avoids the limitation that the terminal device without an exposed physical interface cannot transmit log information, improves flexibility of information transmission, and is more beneficial to the development of the application program operated by the CP in the terminal device by the development device.
In another embodiment:
the processing unit 401 is configured to establish a wireless connection with the terminal device, where the terminal device and the communication apparatus 40 have access to the same wireless access point;
the communication unit 402 is configured to receive log information of an application running from the communication processor CP in the terminal device based on the wireless connection;
the processing unit 401 is further configured to develop the application program according to the log information.
In one implementation, the terminal device further includes an AP, and the communication device 40 stores a preset port; the processing unit 401 is configured to establish a wireless connection with the communication device 40 by using a terminal device, and specifically is configured to:
acquiring a first Internet Protocol (IP) address, wherein the first IP address is an IP address distributed by the wireless access point for the terminal equipment;
Sending a connection request to the terminal equipment according to the first IP address and the preset port;
and receiving a connection response sent by the terminal equipment through the AP, wherein the connection response is sent by the terminal equipment through the AP based on the connection request.
In one implementation, the terminal device further includes an AP, and the communication device 40 stores a preset port; the processing unit 401 is configured to establish a wireless connection with the communication device 40 by using a terminal device, and specifically is configured to:
receiving and outputting a second IP address allocated by the wireless access point;
receiving a connection request from the preset port, wherein the connection request is sent to the communication device 40 by the terminal device according to the second IP address and the preset port;
and sending a connection response to the terminal equipment based on the connection request.
In one implementation, the second IP address is randomly assigned by the wireless access point for the communication device 40; alternatively, the second IP address is dynamically allocated for the wireless access point for the communication device 40; alternatively, the second IP address is allocated to the communication device 40 by the wireless access point according to the MAC address of the terminal device.
In one implementation, the wireless connection is a SOCKET connection.
In the above embodiment, the communication device 40 may be a development device, a device in the development device, or a device that can be used in cooperation with the development device. Specifically, the operations performed by the units of the communication apparatus 40 shown in fig. 4 may refer to the relevant content related to the development device in the method embodiments corresponding to fig. 2-3, which are not described in detail herein. The above units may be implemented in hardware, software or a combination of hardware and software. In one embodiment, the functions of the processing unit 401 and the communication unit 402 in the foregoing may be implemented by one or more processors in the communication device 40.
In this embodiment, the communication device 40 and the terminal device do not need to communicate in a wired manner, which avoids the limitation that the terminal device without an exposed physical interface cannot transmit log information, improves flexibility of information transmission, and is more beneficial to development of the application program operated by the CP in the terminal device by the development device.
The communication device may be, for example: a chip, or a chip module. With respect to each apparatus and each module included in the product described in the above embodiments, it may be a software module, or may be a hardware module, or may be a software module partially, or may be a hardware module partially. For example, for each device or product applied to or integrated in a chip, each module included in the device or product may be implemented in hardware such as a circuit, or at least some modules may be implemented in software program, where the software program runs on a processor integrated in the chip, and the remaining (if any) some modules may be implemented in hardware such as a circuit; for each device and product applied to or integrated in the chip module, each module contained in the device and product can be realized in a hardware mode such as a circuit, different modules can be located in the same component (such as a chip and a circuit module) of the chip module or in different components, or at least part of the modules can be realized in a software program, the software program runs in a processor integrated in the chip module, and the rest (if any) of the modules can be realized in a hardware mode such as a circuit; for each device and product applied to or integrated in the terminal, each module included in the device and product may be implemented by hardware such as a circuit, and different modules may be located in the same component (for example, a chip, a circuit module, etc.) or different components in the terminal, or at least part of the modules may be implemented by software programs running on a processor integrated in the terminal, and the rest (if any) of the modules may be implemented by hardware such as a circuit.
Referring to fig. 5, fig. 5 is a schematic diagram of another communication apparatus 50 according to an embodiment of the present application, which is configured to implement the functions of the terminal device in fig. 1 and 3. The apparatus may be a terminal device or an apparatus for a terminal device. The means for the terminal device may be a chip system or a chip within the terminal device. The chip system may be composed of a chip or may include a chip and other discrete devices.
Alternatively, the communication device 50 is configured to implement the functions of the development device in fig. 1 and 3. The apparatus 50 may be a development device or an apparatus for developing a device. The means for developing the device may be a system-on-chip or a chip within the developing device.
The communication device 50 includes at least one processor 520 for implementing data processing functions of the terminal device in the method provided in the embodiment of the present application. The apparatus 50 may further include a communication interface 510 for implementing a transceiving operation of the terminal device in the method provided in the embodiment of the present application. In embodiments of the present application, the communication interface may be a transceiver, circuit, bus, module, or other type of communication interface for communicating with other devices over a transmission medium. For example, the communication interface 510 is used for devices in the apparatus 50 to communicate with other devices. Processor 520 utilizes communication interface 510 to transmit and receive data and is used to implement the method described above with respect to fig. 2 of the method embodiments described above.
The apparatus 50 may also include at least one memory 530 for storing program instructions and/or data. Memory 530 is coupled to processor 520. The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units, or modules, which may be in electrical, mechanical, or other forms for information interaction between the devices, units, or modules. Processor 520 may cooperate with memory 530. Processor 520 may execute program instructions stored in memory 530. At least one of the at least one memory may be included in the processor.
When the device 50 is powered on, the processor 520 may read the software program in the memory 530, interpret and execute instructions of the software program, and process data of the software program. When data needs to be transmitted wirelessly, the processor 520 performs baseband processing on the data to be transmitted, and outputs a baseband signal to a radio frequency circuit (not shown), and the radio frequency circuit performs radio frequency processing on the baseband signal and then transmits the radio frequency signal to the outside in the form of electromagnetic waves through an antenna. When data is transmitted to the device 50, the radio frequency circuit receives the radio frequency signal through the antenna, converts the radio frequency signal to a baseband signal, and outputs the baseband signal to the processor 520, and the processor 520 converts the baseband signal to data and processes the data.
In another implementation, the radio frequency circuitry and antenna described above may be provided separately from the processor 520 performing baseband processing, e.g., in a distributed scenario, the radio frequency circuitry and antenna may be in a remote arrangement from the communication device.
The specific connection medium between the communication interface 510, the processor 520, and the memory 530 is not limited in the embodiments of the present application. In the embodiment of the present application, the memory 530, the processor 520 and the communication interface 510 are connected by a bus 540 in fig. 5, where the bus is indicated by a thick line in fig. 5, and the connection manner between other components is only schematically illustrated, but not limited thereto. The buses may be classified into address buses, data buses, control buses, and the like. For ease of illustration, only one thick line is shown in fig. 5, but not only one bus or one type of bus.
When the apparatus 50 is specifically used for a terminal device, for example, when the apparatus 50 is specifically a chip or a chip system, the communication interface 510 may output or receive a baseband signal. When the apparatus 50 is a terminal device, the communication interface 510 may output or receive radio frequency signals. In the embodiments of the present application, the processor may be a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, operations, and logic blocks disclosed in the embodiments of the present application. The general purpose processor may be a microprocessor or any conventional processor or the like. Operations of the methods disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor or in a combination of hardware and software modules in a processor.
It should be noted that, the communication device 50 may perform the steps related to the terminal device or the network device in the foregoing method embodiment, and the implementation manner provided by each step may be referred to specifically, which is not described herein.
For each device, product, or application to or integrated with a communication device, each module included in the device may be implemented by hardware such as a circuit, and different modules may be located in the same component (for example, a chip, a circuit module, or the like) or in different components in the terminal, or at least some modules may be implemented by using a software program, where the software program runs on a processor integrated in the terminal, and the remaining (if any) some modules may be implemented by hardware such as a circuit.
For the case where the communication device may be a chip or a chip system, reference may be made to the schematic structural diagram of the chip shown in fig. 6, the chip 60 comprising a processor 601 and a communication interface 602. Wherein the number of processors 601 may be one or more, and the number of communication interfaces 602 may be a plurality. The chip 60 may perform the steps associated with the terminal device in the foregoing method embodiments, the terminal device including the CP.
The processor 601 is configured to perform the following operations: establishing a wireless connection with a development device, the processor 601 having access to the same wireless access point as the development device;
The communication interface 602 is configured to send log information of the CP running application to the development device based on the wireless connection, so that the development device develops the application according to the log information.
In one implementation manner, the terminal device further includes an AP, and the terminal device stores a preset port; the processor 601 is configured to establish a wireless connection with a development device by using a terminal device, and specifically is configured to:
receiving and outputting a first Internet Protocol (IP) address allocated to the terminal equipment by the wireless access point;
receiving a connection request from the preset port through the AP, wherein the connection request is sent to the terminal equipment by the development equipment according to the first IP address and the preset port;
and sending a connection response to the development equipment through the AP based on the connection request.
In one implementation manner, the terminal device further includes an AP, and the terminal device stores a preset port; the processor 601 is configured to establish a wireless connection with a development device by using a terminal device, and specifically is configured to:
acquiring a second IP address, wherein the second IP address is an IP address distributed by the wireless access point for the development equipment;
According to the second IP address and the preset port, a connection request is sent to the development equipment through the AP;
and receiving a connection response from the preset port through the AP, wherein the connection response is sent by the development equipment based on the connection request.
In one implementation, the first IP address is dynamically allocated by the wireless access point for the terminal device; or,
the first IP address is allocated to the terminal equipment by the wireless access point according to the Media Access Control (MAC) address of the terminal equipment.
In one implementation, the communication interface 602 is configured to send log information of the CP running application to the development device based on the wireless connection, specifically configured to:
and transmitting, by the AP, the log information to the development device based on the wireless connection, the log information being transmitted by the CP to the AP.
In one implementation, the wireless connection is a SOCKET connection.
For each device and product applied to or integrated in the chip, each module included in the device and product may be implemented in hardware such as a circuit, or at least some modules may be implemented in software program, where the software program runs on the processor 601 integrated in the chip, and the rest (if any) of the modules may be implemented in hardware such as a circuit.
The chip 60 may also be used to perform the relevant steps of developing the device in the method embodiments described above. The processor 601 is configured to perform the following operations:
establishing a wireless connection with the terminal device, the terminal device having access to the same wireless access point as the processor 601;
a communication interface 602 for receiving log information from a communication processor CP running an application in the terminal device based on the wireless connection;
and developing the application program according to the log information.
In one implementation, the terminal device further includes an AP, and the processor 601 stores a preset port; the processor 601 is configured to establish a wireless connection with a terminal device, specifically configured to:
acquiring a first Internet Protocol (IP) address, wherein the first IP address is an IP address distributed by the wireless access point for the terminal equipment;
sending a connection request to the terminal equipment according to the first IP address and the preset port;
and receiving a connection response sent by the terminal equipment through the AP, wherein the connection response is sent by the terminal equipment through the AP based on the connection request.
In one implementation, the terminal device further includes an AP, and the processor 601 stores a preset port; the processor 601 is configured to establish a wireless connection with a terminal device, specifically configured to:
Receiving and outputting a second IP address allocated by the wireless access point;
receiving a connection request from the preset port, wherein the connection request is sent to the processor 601 by the terminal device according to the second IP address and the preset port;
and sending a connection response to the terminal equipment based on the connection request.
In one implementation, the second IP address is randomly assigned by the wireless access point to the processor 601; or,
the second IP address is dynamically allocated to the wireless access point for the processor 601; alternatively, the second IP address is allocated to the processor 601 by the wireless access point according to a medium access control MAC address of the terminal device.
In one implementation, the wireless connection is a SOCKET connection.
For each device and product applied to or integrated in the chip, each module included in the device and product may be implemented in hardware such as a circuit, or at least some modules may be implemented in software program, where the software program runs on the processor 601 integrated in the chip, and the rest (if any) of the modules may be implemented in hardware such as a circuit.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a module device according to an embodiment of the present application.
In one embodiment:
the module device 70 may perform the steps related to the terminal device in the foregoing method embodiment, where the module device 70 includes: the module device 70 further comprises a CP, a communication module 701, a power module 702, a memory module 703 and a chip module 704.
The communication module 701 is used for performing internal communication of a module device or performing communication between the module device and an external device; the power module 702 is configured to provide power to the module device; the storage module 703 is used for storing data and instructions; the chip module 704 is configured to:
establishing a wireless connection with a development device, the modular device 70 having access to the same wireless access point as the development device;
and sending log information of the CP running application program to the development equipment based on the wireless connection so that the development equipment develops the application program according to the log information.
In one implementation, the module device 70 further includes an AP, and the chip module 704 stores a preset port; the above-mentioned chip module 704 is used for establishing a wireless connection with the development device, and specifically is used for:
Receiving and outputting a first internet protocol, IP, address assigned by the wireless access point to the modular device 70;
receiving, by the AP, a connection request from the preset port, where the connection request is sent by the development device to the chip module 704 according to the first IP address and the preset port;
and sending a connection response to the development equipment through the AP based on the connection request.
In one implementation, the module device 70 further includes an AP, and the chip module 704 stores a preset port; the chip module 704 is configured to establish a wireless connection with the development device, and specifically is configured to:
acquiring a second IP address, wherein the second IP address is an IP address distributed by the wireless access point for the development equipment;
according to the second IP address and the preset port, a connection request is sent to the development equipment through the AP;
and receiving a connection response from the preset port through the AP, wherein the connection response is sent by the development equipment based on the connection request.
In one implementation, the first IP address is dynamically assigned by the wireless access point for the modular device 70; or,
The first IP address is allocated to the module device 70 by the wireless access point according to a media access control MAC address of the module device 70.
In one implementation manner, the chip module 704 is configured to send log information of the CP running application to the development device based on the wireless connection, specifically configured to:
and transmitting, by the AP, the log information to the development device based on the wireless connection, the log information being transmitted by the CP to the AP.
In one implementation, the wireless connection is a SOCKET connection.
In another embodiment:
the module apparatus 70 may perform the steps related to the development apparatus in the foregoing method embodiment, where the module apparatus 70 includes: a communication module 701, a power module 702, a memory module 703 and a chip module 704.
The communication module 701 is used for performing internal communication of a module device or performing communication between the module device and an external device; the power module 702 is configured to provide power to the module device; the storage module 703 is used for storing data and instructions; the chip module 704 is configured to:
establishing a wireless connection with the terminal device, the terminal device having access to the same wireless access point as the module device 70;
Receiving log information of a running application program from a communication processor CP in the terminal device based on the wireless connection;
and developing the application program according to the log information.
In one implementation, the terminal device further includes an AP, and the module device 70 stores a preset port; the above-mentioned chip module 704 is used for a terminal device to establish a wireless connection with the module device 70, and specifically is used for:
acquiring a first Internet Protocol (IP) address, wherein the first IP address is an IP address distributed by the wireless access point for the terminal equipment;
sending a connection request to the terminal equipment according to the first IP address and the preset port;
and receiving a connection response sent by the terminal equipment through the AP, wherein the connection response is sent by the terminal equipment through the AP based on the connection request.
In one implementation, the terminal device further includes an AP, and the module device 70 stores a preset port; the above-mentioned chip module 704 is used for a terminal device to establish a wireless connection with the module device 70, and specifically is used for:
receiving and outputting a second IP address allocated by the wireless access point;
receiving a connection request from the preset port, wherein the connection request is sent to the module device 70 by the terminal device according to the second IP address and the preset port;
And sending a connection response to the terminal equipment based on the connection request.
In one implementation, the second IP address is randomly assigned by the wireless access point to the modular device 70; or,
the second IP address is dynamically allocated for the wireless access point for the modular device 70; alternatively, the second IP address is allocated to the module device 70 by the wireless access point according to the MAC address of the terminal device.
In one implementation, the wireless connection is a SOCKET connection.
For each device and product applied to or integrated in the chip module, each module included in the device and product may be implemented by hardware such as a circuit, and different modules may be located in the same component (e.g. a chip, a circuit module, etc.) of the chip module or different components, or at least some modules may be implemented by using a software program, where the software program runs on a processor integrated in the chip module, and the remaining (if any) modules may be implemented by hardware such as a circuit.
The present application also provides a computer readable storage medium having instructions stored therein, which when run on a processor, implement the method flows of the method embodiments described above.
The present application also provides a computer program product, where the method flows of the method embodiments are implemented when the computer program product runs on a processor.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some acts may, in accordance with the present application, occur in other orders and concurrently. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required in the present application.
The descriptions of the embodiments provided in the present application may be referred to each other, and the descriptions of the embodiments are focused on, and for the part that is not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments. For convenience and brevity of description, for example, reference may be made to the related descriptions of the method embodiments of the present application for the functions and operations performed by the devices and apparatuses provided by the embodiments of the present application, and reference may also be made to each other, combined or cited between the method embodiments, and between the device embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (19)

1. An information transmission method, characterized by being applied to a terminal device including a communication processor CP, the method comprising:
the terminal equipment and the development equipment are accessed to the same wireless access point;
the terminal equipment generates and displays a first two-dimensional code according to a first IP address allocated by the accessed wireless access point, so that the development equipment scans the first two-dimensional code to acquire the first IP address; or the terminal equipment acquires a second IP address by scanning a second two-dimensional code generated and displayed by the development equipment, wherein the second IP address is an IP address distributed by the wireless access point for the development equipment;
Based on the first IP address or the second IP address, the terminal equipment establishes wireless connection with the development equipment;
and sending log information of the CP running application program to the development equipment based on the wireless connection so that the development equipment develops the application program according to the log information.
2. The method according to claim 1, wherein the terminal device further comprises an application processor AP, the terminal device storing a preset port; the terminal device establishes wireless connection with the development device, and comprises:
receiving a connection request from the preset port through the AP, wherein the connection request is sent to the terminal equipment by the development equipment according to the first IP address and the preset port;
and sending a connection response to the development equipment through the AP based on the connection request.
3. The method of claim 1, wherein the terminal device further comprises an AP, and wherein the terminal device stores a preset port; the terminal device establishes wireless connection with the development device, and comprises:
according to the second IP address and the preset port, a connection request is sent to the development equipment through the AP;
And receiving a connection response from the preset port through the AP, wherein the connection response is sent by the development equipment based on the connection request.
4. The method of claim 2, wherein the first IP address is dynamically allocated by the wireless access point for the terminal device; or,
the first IP address is allocated to the terminal equipment by the wireless access point according to the Media Access Control (MAC) address of the terminal equipment.
5. The method of any of claims 2-4, wherein the sending log information of the CP running application to the development device based on the wireless connection comprises:
and transmitting, by the AP, the log information to the development device based on the wireless connection, the log information being transmitted by the CP to the AP.
6. The method of any of claims 1-4, wherein the wireless connection is a SOCKET connection.
7. An information transmission method, characterized by being applied to a development device, the method comprising:
the terminal equipment and the development equipment are accessed to the same wireless access point;
the development equipment acquires a first IP address by scanning a first two-dimensional code generated and displayed by the terminal equipment, wherein the first IP address is an IP address distributed for the terminal equipment by a wireless access point accessed by the terminal equipment; or the development equipment generates and displays a second two-dimensional code according to the second IP address allocated by the wireless access point, so that the terminal equipment scans the second two-dimensional code to acquire the second IP address;
Based on the first IP address or the second IP address, the terminal equipment establishes wireless connection with the development equipment;
receiving log information of a running application program from a communication processor CP in the terminal device based on the wireless connection;
and developing the application program according to the log information.
8. The method according to claim 7, wherein the terminal device further comprises an application processor AP, and the development device stores a preset port; the terminal device establishes wireless connection with the development device, and comprises:
sending a connection request to the terminal equipment according to the first IP address and the preset port;
and receiving a connection response sent by the terminal equipment through the AP, wherein the connection response is sent by the terminal equipment through the AP based on the connection request.
9. The method of claim 7, wherein the terminal device further comprises an AP, and wherein the development device stores a preset port; the terminal device establishes wireless connection with the development device, and comprises:
receiving a connection request from the preset port, wherein the connection request is sent to the development equipment by the terminal equipment according to the second IP address and the preset port;
And sending a connection response to the terminal equipment based on the connection request.
10. The method of claim 9, wherein the second IP address is randomly assigned by the wireless access point for the development device; or,
the second IP address is dynamically allocated to the development equipment by the wireless access point; or the second IP address is allocated to the development device by the wireless access point according to the media access control MAC address of the terminal device.
11. The method according to any of claims 7-10, wherein the wireless connection is a SOCKET connection.
12. A communication device comprising means for implementing the method of any one of claims 1-11.
13. A communication device comprising a processor and a transceiver;
the transceiver is used for receiving or transmitting signals;
the processor configured to perform the method of any one of claims 1-11.
14. The communication device of claim 13, wherein the communication device further comprises a memory:
the memory is used for storing a computer program;
The processor being in particular adapted to invoke the computer program from the memory for performing the method according to any of claims 1-11.
15. A chip, characterized in that it comprises a communication processor CP;
the chip and the development equipment are connected to the same wireless access point;
the chip is used for generating and displaying a first two-dimensional code according to a first IP address allocated by the accessed wireless access point, so that the development equipment scans the first two-dimensional code to acquire the first IP address; or, a second IP address is obtained by scanning a second two-dimensional code generated and displayed by the development equipment, wherein the second IP address is an IP address distributed by the wireless access point for the development equipment;
the chip is further used for establishing wireless connection with the development equipment based on the first IP address or the second IP address;
the chip is further used for sending log information of the CP running application program to the development equipment based on the wireless connection, so that the development equipment develops the application program according to the log information.
16. A chip, characterized in that it comprises a communication processor CP;
The terminal equipment and the chip are accessed to the same wireless access point;
the chip is used for acquiring a first IP address by scanning a first two-dimensional code generated and displayed by the terminal equipment, wherein the first IP address is an IP address allocated to the terminal equipment by a wireless access point accessed by the terminal equipment; or generating and displaying a second two-dimensional code according to a second IP address allocated by the wireless access point, so that the terminal equipment scans the second two-dimensional code to acquire the second IP address;
the chip is further used for establishing wireless connection with terminal equipment based on the first IP address or the second IP address;
receiving log information of a running application program from a communication processor CP in the terminal device based on the wireless connection;
and developing the application program according to the log information.
17. The utility model provides a module equipment, its characterized in that, module equipment includes communication module, power module, storage module and chip module, module equipment still includes communication processor CP, wherein:
the communication module is used for carrying out internal communication of module equipment or carrying out communication between the module equipment and external equipment;
The power supply module is used for providing electric energy for the module equipment;
the storage module is used for storing data and instructions;
the chip module and the development equipment are connected to the same wireless access point;
the chip module is used for:
generating and displaying a first two-dimensional code according to a first IP address allocated by an accessed wireless access point, so that the development equipment scans the first two-dimensional code to acquire the first IP address; or, a second IP address is obtained by scanning a second two-dimensional code generated and displayed by the development equipment, wherein the second IP address is an IP address distributed by the wireless access point for the development equipment;
based on the first IP address or the second IP address, establishing wireless connection with development equipment, wherein the module equipment and the development equipment have access to the same wireless access point;
and sending log information of the CP running application program to the development equipment based on the wireless connection so that the development equipment develops the application program according to the log information.
18. The utility model provides a module equipment, its characterized in that, module equipment includes communication module, power module, storage module and chip module, wherein:
The communication module is used for carrying out internal communication of module equipment or carrying out communication between the module equipment and external equipment;
the power supply module is used for providing electric energy for the module equipment;
the storage module is used for storing data and instructions;
the terminal equipment and the chip module are connected to the same wireless access point;
the chip module is used for:
acquiring a first IP address by scanning a first two-dimensional code generated and displayed by the terminal equipment, wherein the first IP address is an IP address allocated to the terminal equipment by a wireless access point accessed by the terminal equipment; or generating and displaying a second two-dimensional code according to a second IP address allocated by the wireless access point, so that the terminal equipment scans the second two-dimensional code to acquire the second IP address;
based on the first IP address or the second IP address, establishing wireless connection with terminal equipment, wherein the terminal equipment and the module equipment have access to the same wireless access point;
receiving log information of a running application program from a communication processor CP in the terminal device based on the wireless connection;
and developing the application program according to the log information.
19. A computer readable storage medium having stored therein computer readable instructions which, when run on a communication device, cause the communication device to perform the method of any of claims 1-11.
CN202210385874.8A 2022-04-13 2022-04-13 Information transmission method, communication device, chip and module equipment Active CN114793354B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210385874.8A CN114793354B (en) 2022-04-13 2022-04-13 Information transmission method, communication device, chip and module equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210385874.8A CN114793354B (en) 2022-04-13 2022-04-13 Information transmission method, communication device, chip and module equipment

Publications (2)

Publication Number Publication Date
CN114793354A CN114793354A (en) 2022-07-26
CN114793354B true CN114793354B (en) 2024-02-23

Family

ID=82462751

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210385874.8A Active CN114793354B (en) 2022-04-13 2022-04-13 Information transmission method, communication device, chip and module equipment

Country Status (1)

Country Link
CN (1) CN114793354B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600404A (en) * 2018-03-01 2018-09-28 深圳市共进电子股份有限公司 Terminal management method, device, computer equipment and storage medium in wireless network
CN111385371A (en) * 2018-12-28 2020-07-07 钉钉控股(开曼)有限公司 MAC address acquisition method, device and equipment
CN112770408A (en) * 2021-01-15 2021-05-07 广州虎牙科技有限公司 Log transmission method and device, computer equipment and storage medium
CN113141582A (en) * 2021-04-25 2021-07-20 深圳市元征科技股份有限公司 Log export method and device, computer equipment and storage medium
CN113973398A (en) * 2020-07-22 2022-01-25 华为技术有限公司 Wireless network connection method, electronic equipment and chip system
CN114040412A (en) * 2021-11-09 2022-02-11 湖南新云网科技有限公司 Method, device and equipment for establishing connection communication and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600404A (en) * 2018-03-01 2018-09-28 深圳市共进电子股份有限公司 Terminal management method, device, computer equipment and storage medium in wireless network
CN111385371A (en) * 2018-12-28 2020-07-07 钉钉控股(开曼)有限公司 MAC address acquisition method, device and equipment
CN113973398A (en) * 2020-07-22 2022-01-25 华为技术有限公司 Wireless network connection method, electronic equipment and chip system
CN112770408A (en) * 2021-01-15 2021-05-07 广州虎牙科技有限公司 Log transmission method and device, computer equipment and storage medium
CN113141582A (en) * 2021-04-25 2021-07-20 深圳市元征科技股份有限公司 Log export method and device, computer equipment and storage medium
CN114040412A (en) * 2021-11-09 2022-02-11 湖南新云网科技有限公司 Method, device and equipment for establishing connection communication and readable storage medium

Also Published As

Publication number Publication date
CN114793354A (en) 2022-07-26

Similar Documents

Publication Publication Date Title
JP6611921B2 (en) Terminal interconnection method, apparatus, nonvolatile computer storage medium, and computer program
US7656847B2 (en) Method and apparatus for utilizing bluetooth for WLAN service authentication and discovery
CN112769794B (en) Data conversion method and device
CN105338529A (en) Wireless network connecting method and system
CN113645258A (en) Data transmission method and device, storage medium, processor and electronic equipment
EP3086617A1 (en) Repeating method and corresponding communication network device, system, computer readable program product and computer readable storage medium
CN106209523B (en) Screen sharing realization method and device and media terminal
CN105592019A (en) Method for bidirectional access to application between dual execution environments
CN114844745B (en) Data forwarding device, method, electronic equipment and storage medium
WO2019071809A1 (en) Interactive intelligent tablet, data transmission method, device and storage medium
CN113242261B (en) Method and device for sharing data network, electronic equipment and storage medium
CN114793354B (en) Information transmission method, communication device, chip and module equipment
CN114697388B (en) Data transmission method and device
JP5931224B2 (en) Data access method and apparatus
CN103442450A (en) Wireless communication method and wireless communication equipment
CN105451367A (en) Wireless network connection method, device and system
CN101465783B (en) Connection method, device and connection network bridge for isomery household network appliances
CN115883572A (en) Peripheral sharing method and device
CN107483203B (en) Time-interval encryption method and device for data received by Internet of things access point
CN106845974B (en) Method and device for realizing point-to-point communication of near field communication
CN111901803B (en) Communication interaction method, master node, slave node, indoor distribution system and medium
CN113067910B (en) NAT traversal method and device, electronic equipment and storage medium
WO2020249083A1 (en) Security activation status determination method and related product
CN107302538B (en) Sub-equipment encryption method and device for data received by AP (Access Point) of Internet of things
CN107493571B (en) Type-based uplink data encryption control method and device for Internet of things repeater

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant