CN113542315A - Communication framework, service event processing method and device - Google Patents

Communication framework, service event processing method and device Download PDF

Info

Publication number
CN113542315A
CN113542315A CN202010286855.0A CN202010286855A CN113542315A CN 113542315 A CN113542315 A CN 113542315A CN 202010286855 A CN202010286855 A CN 202010286855A CN 113542315 A CN113542315 A CN 113542315A
Authority
CN
China
Prior art keywords
module
application
event
receiving
signal
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.)
Granted
Application number
CN202010286855.0A
Other languages
Chinese (zh)
Other versions
CN113542315B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010286855.0A priority Critical patent/CN113542315B/en
Publication of CN113542315A publication Critical patent/CN113542315A/en
Application granted granted Critical
Publication of CN113542315B publication Critical patent/CN113542315B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a communication framework, a business event processing method and a business event processing device, which are applied to electronic equipment, wherein the communication framework comprises an application interface module, a service module and a bottom layer driving module; the service module is used for processing the business event; the service module interacts with a communication interface of the electronic equipment through the bottom layer driving module; the service module interacts with an application in the electronic device through the application interface module. By adopting the embodiment of the application, the unified application interface, the unified communication interface and the service event are processed in one module, and the problem of serious coupling of functional modules is avoided.

Description

Communication framework, service event processing method and device
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a communication framework, a service event processing method, and an apparatus.
Background
In the embedded field, the application of Real Time Operating System (RTOS) is very wide, and the RTOS is an operating system that ensures that a specific function is completed within a certain time limit. At present, functional modules in the RTOS are seriously coupled, and the communication performance of the RTOS is influenced. Therefore, it is desirable to provide a universal communication framework for the RTOS.
Disclosure of Invention
The embodiment of the application provides a communication framework, a service event processing method and a service event processing device.
In a first aspect, an embodiment of the present application provides a communication framework applied to an electronic device, where the communication framework includes an application interface module, a service module, and a bottom driver module;
the service module is used for processing a business event;
the service module interacts with a communication interface of the electronic equipment through the bottom layer driving module;
and the service module interacts with the application in the electronic equipment through the application interface module.
In a second aspect, an embodiment of the present application provides a method for processing a business event, which is applied to a service module in a communication framework in the first aspect, where the method includes:
receiving the interactive information sent by the application interface module or the bottom layer driving module, and processing the service event based on the interactive information.
In a third aspect, an embodiment of the present application provides a service event processing apparatus, which is applied to a service module in a communication framework in the first aspect, where the apparatus includes:
the receiving unit is used for receiving the interactive information sent by the application interface module or the bottom layer driving module;
and the event processing unit is used for processing the service event based on the interactive information.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the processor includes the service module in the communication framework according to the first aspect, the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the second aspect of the embodiment of the present application.
In a fifth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform some or all of the steps described in the second aspect of the present application.
In a sixth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the second aspect of embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, the electronic device includes a communication framework having an application interface module, a service module and a bottom driver module, the service module is configured to process a service event, the service module interacts with a communication interface of the electronic device through the bottom driver module, and the service module interacts with an application in the electronic device through the application interface module, so that a unified application interface, a unified communication interface, and a service event are uniformly processed in one module, a problem of serious coupling of function modules is avoided, and a purpose of providing a general communication framework for the system is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a software structure of an electronic device according to an embodiment of the present application;
fig. 3 is a system block diagram of an electronic device provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a communication framework provided in an embodiment of the present application;
FIG. 5 is a schematic structural diagram of another communication framework provided in an embodiment of the present application;
fig. 6 is a schematic flowchart of a service event processing method according to an embodiment of the present application;
fig. 7 is a flowchart illustrating a method for establishing a link according to an embodiment of the present application;
fig. 8 is a schematic flowchart of another method for establishing a link according to an embodiment of the present application;
fig. 9 is a schematic flowchart of a method for breaking a link according to an embodiment of the present application;
FIG. 10 is a schematic flow chart diagram illustrating another method for breaking a link according to an embodiment of the present application;
fig. 11 is a flowchart illustrating a message sending method according to an embodiment of the present application;
fig. 12 is a schematic flowchart of a message receiving method according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a service event processing apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
In order to better understand the scheme of the embodiments of the present application, the following first introduces the related terms and concepts that may be involved in the embodiments of the present application.
1) The electronic device may be a portable electronic device, such as a cell phone, a tablet computer, a wearable electronic device with wireless communication capabilities (e.g., a smart watch), etc., that also contains other functionality, such as personal digital assistant and/or music player functionality. Exemplary embodiments of the portable electronic device include, but are not limited to, portable electronic devices that carry an IOS system, an Android system, a Microsoft system, or other operating system. The portable electronic device may also be other portable electronic devices such as a Laptop computer (Laptop) or the like. It should also be understood that in other embodiments, the electronic device may not be a portable electronic device, but may be a desktop computer.
2) The message refers to a data block to be sent by a sender, and the message contains complete data information to be sent.
3) A linked list refers to a non-sequential, non-sequential storage structure on a physical storage unit. A linked list consists of a series of nodes (each data element in the linked list is called a node). Each node comprises two parts: one is a data field that stores the data element and the other is a pointer field that stores the address of the next node.
4) The AT command is a command applied to connection and communication between an electronic device and an application, and is an AT.
In a first section, the software and hardware operating environment of the technical solution disclosed in the present application is described as follows.
Fig. 1 shows a schematic structural diagram of an electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a compass 190, a motor 191, a pointer 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. Wherein the different processing units may be separate components or may be integrated in one or more processors. In some embodiments, the electronic device 101 may also include one or more processors 110. The controller can generate an operation control signal according to the instruction operation code and the time sequence signal to complete the control of instruction fetching and instruction execution. In other embodiments, a memory may also be provided in processor 110 for storing instructions and data. Illustratively, the memory in the processor 110 may be a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. This avoids repeated accesses and reduces the latency of the processor 110, thereby increasing the efficiency with which the electronic device 101 processes data or executes instructions.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a SIM card interface, a USB interface, and/or the like. The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge the electronic device 101, and may also be used to transmit data between the electronic device 101 and peripheral devices. The USB interface 130 may also be used to connect to a headset to play audio through the headset.
It should be understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is only an illustration, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (blue tooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, videos, and the like. The display screen 194 includes a display panel. The display panel may be a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a mini light-emitting diode (mini-light-emitting diode, mini), a Micro-o led, a quantum dot light-emitting diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or more display screens 194.
The electronic device 100 may implement a photographing function through the ISP, the camera 193, the video codec, the GPU, the display screen 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a photo is taken, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converting into an image visible to naked eyes. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or more cameras 193.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
Internal memory 121 may be used to store one or more computer programs, including instructions. The processor 110 may execute the above-mentioned instructions stored in the internal memory 121, so as to enable the electronic device 101 to execute the method for displaying page elements provided in some embodiments of the present application, and various applications and data processing. The internal memory 121 may include a program storage area and a data storage area. Wherein, the storage program area can store an operating system; the storage program area may also store one or more applications (e.g., gallery, contacts, etc.), and the like. The storage data area may store data (such as photos, contacts, etc.) created during use of the electronic device 101, and the like. Further, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic disk storage components, flash memory components, Universal Flash Storage (UFS), and the like. In some embodiments, the processor 110 may cause the electronic device 101 to execute the method for displaying page elements provided in the embodiments of the present application, and other applications and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor 110. The electronic device 100 may implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor, etc. Such as music playing, recording, etc.
The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
The pressure sensor 180A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a wide variety, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., X, Y and the Z axis) may be determined by gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for recognizing the posture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 can utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 implements a temperature processing strategy using the temperature detected by temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid the low temperature causing the electronic device 100 to shut down abnormally. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation applied thereto or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
Fig. 2 shows a block diagram of a software structure of the electronic device 100. The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom. The application layer may include a series of application packages.
As shown in fig. 2, the application layer may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide communication functions of the electronic device 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, sounding a prompt tone, vibrating the electronic device, flashing an indicator light, etc.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), media libraries (media libraries), three-dimensional graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
In a second section, a system block diagram and a communication framework disclosed in embodiments of the present application are introduced as follows.
Illustratively, fig. 3 shows a system block diagram of the electronic device 100, which includes an application layer, a communication framework and a communication interface, wherein the application layer communicates with the communication framework through the software interface, the communication framework communicates with the communication interface through the software interface, and the device communicates with the device through the communication interface.
The application layer may include a plurality of applications, such as an audio playback application, a video playback application, a shopping application, an instant messaging application, a payment application, a ticketing application, an office application, a navigation application, and so forth.
Wherein the communication interface may be the mobile communication interface or the wireless communication interface in fig. 1.
For example, fig. 4 shows a schematic structural diagram of a communication framework, which includes an application interface module, a service module, and an underlying driver module; the service module is used for processing a business event; the service module interacts with a communication interface of the electronic equipment through the bottom layer driving module; the service module interacts with an application program in the electronic device through the application interface module.
Wherein the communication framework is applied to RTOS.
The service event includes, for example, a link establishment service event, a link disconnection service event, a message transmission event, a message reception event, and the like.
The application communication interface communicates with the service module through an Application Programming Interface (API). The APIs include open-link (open-link), open-link (close-link), create (create), delete (delete), register-client (reg-client), de-register-client (dreg-client), send message (send packet), send client signal (send client signal), and so on.
The service module provides a signal set for the bottom layer driving module, and the signal set is used for the bottom layer driving module to send signals to the service module. Wherein the signal set comprises at least one of: open link signal (sig-open), disconnect link signal (sig-close), receive done signal (sig-rx-done), transmit done signal (sig-tx-done), transmit error signal (sig-tx-error), and so on.
Optionally, referring to fig. 5, the communication framework further includes a packet object, the service module is bound to the packet object, and the service module calls the packet object to process a packet event.
The service module comprises a reference unit, and the reference unit is bound with the message packet object.
The service module communicates with the message packet object through the message packet unified interface class, and the message unpacking unified interface class realizes the abstraction of the packet interfacing process. Each format may implement its custom unpacking method, such as the AT command format.
Optionally, the communication framework further includes a message unpacking object, the service module is bound to the message unpacking object, and the service module calls the message unpacking object to process a message unpacking event.
Wherein, the reference unit is bound with the message unpacking object.
The service module communicates with the message unpacking object through the message unpacking uniform interface class, and the message packing uniform interface class realizes the abstraction of the packing flow. Each format may implement its custom encapsulation method, such as the AT command format.
Optionally, the communication framework further includes a hardware adaptation object, the service module is bound to the hardware adaptation object, and the service module calls the hardware adaptation object to interact with the bottom layer driver module.
Wherein the reference unit is bound to the hardware adaptation object.
The service module is communicated with the hardware adaptation object through the transmission layer driving unified interface class, and the transmission layer driving unified interface class realizes abstraction of a data transmission process. Each driver implements its own transport layer functions according to an interface, such as a universal asynchronous receiver/transmitter (UART) hardware interface.
Optionally, the service module includes at least one of an application linked list, a message receiving linked list, and a message sending linked list;
the message receiving linked list is used for storing the received messages;
the message sending linked list is used for storing messages to be sent;
the application program linked list is used for storing information of the application program.
The information of the application program includes, for example, an identifier of the application program, a size of a memory occupied by the application program when the application program runs, and the like.
Optionally, the service module includes an event processing loop unit, and the event processing loop unit is configured to receive interaction information sent by the application interface module or the bottom driver module, and respond to the interaction information to provide a logical implementation of a function.
The interactive information includes, for example, a link open request, a link open result signal, a link open permission signal, a message sending request, a message sending result, and the like.
It can be seen that, in the embodiment of the present application, the electronic device includes a communication framework having an application interface module, a service module and a bottom driver module, the service module is configured to process a service event, the service module interacts with a communication interface of the electronic device through the bottom driver module, and the service module interacts with an application in the electronic device through the application interface module, so that a unified application interface, a unified communication interface, and a service event are uniformly processed in one module, a problem of serious coupling of function modules is avoided, and a purpose of providing a general communication framework for the system is achieved.
In the third section, the service event processing method disclosed in the embodiment of the present application is introduced as follows.
Referring to fig. 6, fig. 6 is a schematic flowchart of a business event processing method applied to a service module in the communication framework according to an embodiment of the present application, where the business event processing method includes the following steps:
step 601: receiving interactive information sent by an application interface module or a bottom layer driving module;
step 602: and processing the service event based on the interactive information.
The interactive information includes, for example, a link open request, a link open result signal, a link open permission signal, a message sending request, a message sending result, and the like.
The service event includes, for example, a link establishment service event, a link disconnection service event, a message transmission event, a message reception event, and the like.
In an implementation manner of the present application, the receiving the interaction information sent by the application interface module, and processing the service event based on the interaction information includes:
receiving a link opening request sent by the application interface module;
calling a hardware adaptation object to send a link opening signal to the bottom layer driving module, wherein the link opening signal is used for triggering the bottom layer driving module to execute a link opening operation;
receiving a link opening result signal sent by the bottom layer driving module through the hardware adaptation object;
and sending a first event feedback signal to the application interface module, where the first event feedback signal is used to trigger the application interface module to instruct a first application to process a link opening result event, and the first application is an application triggering the link opening request.
Specifically, as shown in fig. 7, step 1: the application interface module sends a request for opening a link to an event processing cycle unit of the service module; step 2: after receiving the request for opening the link, an event processing cycle unit of the service module sends a signal for opening the link to the hardware adaptation object; and step 3: after receiving the open link signal, the hardware adaptation object forwards the open link signal to a bottom layer driving module; and 4, step 4: after receiving the open link signal, the bottom layer driver module executes an open link operation (for example, the bottom layer driver module triggers the communication interface of the electronic device to send a link establishment signal to the communication interface of other electronic devices (the other electronic devices also include the communication framework of the present application), so that the application program of the electronic device establishes a link with the application program in the other electronic devices); and 5: the bottom layer driving module sends a link opening result signal to the hardware adaptation object; step 6: after receiving the result signal of opening the link, the hardware adaptation object forwards the result signal of opening the link to an event processing circulating unit of the service module; and 7: after receiving the link opening result signal, the event processing cycle unit of the service module sends an event feedback signal to the application interface module to trigger the application interface module to instruct the application triggering the link opening request to process the link opening result event, such as applying for a service resource, starting service data interaction, and the like. Wherein step 5 and step 4 may be asynchronous processes.
In an implementation manner of the present application, the receiving the interaction information sent by the bottom driver module and processing the service event based on the interaction information includes:
calling a hardware adaptation object to receive a link opening permission signal sent by the bottom layer driving module, wherein the link opening permission signal is sent by the bottom layer driving module after receiving a link establishing signal;
and sending a second event feedback signal to the application interface module, where the second event feedback signal is used to trigger the application interface module to instruct a second application to process an event that allows a link to be opened, and the second application is an application corresponding to the link establishment signal.
Specifically, as shown in fig. 8, step 1: after receiving a link establishing signal, the bottom layer driving module sends a signal allowing the link to be opened to the hardware adaptation object, wherein the link establishing signal is sent from other electronic equipment to a communication interface of the electronic equipment through the communication interface; step 2: after the hardware adaptation object receives the signal of allowing the link to be opened, the hardware adaptation object forwards the signal of allowing the link to be opened to an event processing circulating unit of the service module; and step 3: after receiving the signal for allowing the link to be opened, the event processing cycle unit of the service module sends an event feedback signal to the application interface module to trigger the application interface module to indicate that the application processing corresponding to the signal for establishing the link allows the link to be opened, such as applying for a service resource, starting service data interaction, and the like.
In an implementation manner of the present application, the receiving the interaction information sent by the application interface module, and processing the service event based on the interaction information includes:
receiving a disconnection link request sent by the application interface module;
calling a hardware adaptation object to send a disconnection link signal to the bottom layer driving module, wherein the disconnection link signal is used for triggering the bottom layer driving module to execute disconnection link operation;
receiving a result signal of disconnection sent by the bottom layer driving module through the hardware adaptation object;
and sending a third event feedback signal to the application interface module, where the third event feedback signal is used to trigger the application interface module to instruct a third application to process a link disconnection result event, and the third application is an application triggering the link disconnection request.
Specifically, as shown in fig. 9, step 1: the application interface module sends a disconnection link request to an event processing cycle unit of the service module; step 2: after receiving the disconnection request, an event processing circulating unit of the service module sends a disconnection signal to the hardware adaptation object; and step 3: after receiving the disconnection signal, the hardware adaptation object transmits the disconnection signal to a bottom layer driving module; and 4, step 4: after receiving the unlink signal, the bottom layer driver module executes an unlink operation (for example, the bottom layer driver module triggers the communication interface of the electronic device to send an unlink signal to the communication interface of other electronic devices (the other electronic devices also include the communication framework of the present application), so that the application program of the electronic device is unlink from the application program in the other electronic devices); and 5: the bottom layer driving module sends a result signal of disconnection to the hardware adaptation object; step 6: after receiving the result signal of disconnection link, the hardware adaptation object transmits the result signal of disconnection link to the event processing cycle unit of the service module; and 7: after receiving the result signal of the broken link, the event processing cycle unit of the service module sends an event feedback signal to the application interface module to trigger the application interface module to instruct the application triggering the request of the broken link to process the result event of the broken link, such as releasing memory resources, ending data transmission, etc.
Wherein step 5 and step 6 may be asynchronous processes. After step 7, the service module clears the message receiving linked list, clears the message sending linked list, resets the message packet object (to reset the internal state machine of the message packet object), resets the message unpacking object (to reset the internal state machine of the message unpacking module).
In an implementation manner of the present application, the receiving the interaction information sent by the bottom driver module and processing the service event based on the interaction information includes:
calling a hardware adaptation object to receive a disconnection allowing signal sent by the bottom layer driving module, wherein the disconnection allowing signal is sent by the bottom layer driving module after the disconnection allowing signal is received;
sending a fourth event feedback signal to the application interface module, where the fourth event feedback signal is used to trigger the application interface module to indicate a fourth application to process a disconnection-allowed event, and the fourth application is an application corresponding to the disconnection-allowed event.
Specifically, as shown in fig. 10, step 1: after receiving the disconnection signal, the bottom layer driving module sends a disconnection permitting signal to the hardware adaptation object, wherein the disconnection permitting signal is sent from other electronic equipment to a communication interface of the electronic equipment through the communication interface; step 2: after the hardware adaptation object receives the disconnection permission signal, forwarding the disconnection permission signal to an event processing cycle unit of the service module; and step 3: after receiving the signal for allowing the disconnection of the link, the event processing cycle unit of the service module sends an event feedback signal to the application interface module to trigger the application interface module to indicate that the application processing corresponding to the signal for triggering the disconnection of the link allows the disconnection of the link, such as releasing memory resources, ending data transmission, and the like.
After step 3, the service module clears the message receiving linked list, clears the message sending linked list, resets the message packet object (to reset the internal state machine of the message packet object), and resets the message unpacking object (to reset the internal state machine of the message unpacking module).
In an implementation manner of the present application, the receiving the interaction information sent by the application interface module, and processing the service event based on the interaction information includes:
receiving a message sending request sent by the application interface module, wherein the message sending request carries a first message;
calling a message unpacking object to unpack the first message to obtain a first data frame;
calling a hardware adaptation object to send a message sending signal to the bottom layer driving module, wherein the message sending signal is used for triggering the bottom layer driving module to execute message sending operation, and the message sending operation is used for sending a first data frame obtained by unpacking;
receiving a message sending result signal sent by the bottom layer driving module through the hardware adaptation object;
and feeding back a sending event feedback signal to the application interface, wherein the sending event feedback signal is used for triggering the application interface module to indicate a fifth application to process a message sending event, and the fifth application is an application triggering the message sending request.
Specifically, as shown in fig. 11, step 1: the application interface module sends a message sending request to an event processing circulating unit of the service module, wherein the message sending request carries a first message; step 2: after receiving the message sending request, the event processing circulating unit of the service module pushes the first message to a message sending linked list of the service module; and step 3: a message sending linked list of the service module sends a message preparation signal to an event processing circulating unit of the service module; and 4, step 4: after receiving the message preparation signal, an event processing cycle unit of the service module transmits a first message to a message unpacking object; and 5: an event processing circulating unit of the service module reads a first data frame obtained by unpacking a first message by a message unpacking object; step 6: an event processing circulating unit of the service module sends a message sending signal to a hardware adaptation object; and 7: after receiving the message sending signal, the hardware adaptation object forwards the message sending signal to a bottom layer driving module; and 8: after receiving the message sending signal, the bottom layer driver module executes a message sending operation (for example, the bottom layer driver module triggers a communication interface of the electronic device to send a first data frame obtained by unpacking to a communication interface of other electronic devices (the other electronic devices also include the communication framework of the application), so as to send data of an application program of the electronic device to the application program of the other electronic devices); and step 9: the bottom layer driving module sends a message sending result signal to the hardware adaptation object; step 10: after receiving the message sending result, the hardware adaptation object forwards a message sending result signal to an event processing circulating unit of the service module; step 11: after receiving the message sending result, the event processing cycle unit of the service module feeds back a sending event feedback signal to the application interface so as to trigger the application interface module to indicate the application processing message sending event triggering the message sending request, such as triggering the next service data sending.
Wherein step 8 and step 9 may be asynchronous processes. And after the event processing circulating unit of the service module receives the message sending result, the event processing circulating unit of the service module removes the first message from the message sending linked list, and if the message sending linked list is not empty, the step 3 is continuously executed.
In an implementation manner of the present application, the receiving the interaction information sent by the bottom driver module and processing the service event based on the interaction information includes:
receiving a receiving completion signal sent by a hardware adaptation object, wherein the receiving completion signal is sent by the hardware adaptation object after the hardware adaptation object finishes receiving a second data frame sent by a bottom layer driving module;
reading the second data frame in the hardware adaptation object, and calling a message packet object to perform packet on the second data frame to obtain a second message;
and sending a receiving event feedback signal and the second message to the application interface module, wherein the receiving event feedback signal is used for triggering the application interface module to instruct a sixth application to process the received second message.
Specifically, as shown in fig. 12, step 1: after receiving the second data frame, the bottom layer driving module sends a data receiving signal to the hardware adaptation object, wherein the data receiving signal carries the second data frame; step 2: after the hardware adaptation object finishes receiving the second data frame sent by the bottom layer driving module, sending a receiving completion signal to an event processing circulating unit of the service module; and step 3: after receiving the receiving completion signal, an event processing cycle unit of the service module reads a second data frame in the hardware adaptation object; and 4, step 4: the event processing circulating unit of the service module transmits the read second data frame to a message packet object; and 5: an event processing circulating unit of the service module reads a second message obtained by packaging a second data frame by a message packaging object; step 6: adding the read second message to the tail part of the message receiving linked list by an event processing circulating unit of the service module; and 7: an event processing circulating unit of the service module takes the earliest received message from the head of the message receiving linked list; step 8: and the event processing circulating unit of the service module sends a received event feedback signal and a message to the application interface module so as to trigger the application interface module to indicate the application processing message of the received message.
After step 7, the event processing loop unit of the service module removes the second message from the message receiving linked list, and if the message receiving linked list is not empty, step 7 is continuously executed.
In an implementation manner of the present application, the receiving the interaction information sent by the bottom driver module and processing the service event based on the interaction information includes:
receiving a receiving error signal sent by a hardware adaptation object, wherein the receiving error signal is sent by the hardware adaptation object after an abnormal signal sent by a bottom layer driving module;
and calling a reset method of the message packet object to clear an internal state machine of the electronic equipment.
It can be seen that, in the embodiment of the present application, the service module of the communication framework receives the interaction information sent by the application interface module or the bottom driver module, and then processes the service event based on the interaction information, so that the unified application interface, the unified communication interface, and the service event are uniformly processed in one module, the problem of serious coupling of the functional modules is avoided, and the purpose of providing a general communication framework for the system is achieved.
It will be appreciated that the electronic device, in order to implement the above-described functions, comprises corresponding hardware and/or software modules for performing the respective functions. The present application is capable of being implemented in hardware or a combination of hardware and computer software in conjunction with the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, with the embodiment described in connection with the particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In this embodiment, the electronic device may be divided into functional modules according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in the form of hardware. It should be noted that the division of the modules in this embodiment is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In the case of dividing each function module by corresponding each function, fig. 13 shows a schematic diagram of a business event processing apparatus, as shown in fig. 13, the business event processing apparatus 1300 is applied to a service module in the communication framework, and the business event processing apparatus 1300 may include: a receiving unit 1301 and an event processing unit 1302.
Receiving unit 1301 may be used to support a service module to perform step 601 and/or the like described above, and/or other processes for the techniques described herein.
Event processing unit 1302 may be used to support a service module performing steps 602, etc., described above, and/or other processes for the techniques described herein.
It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
The electronic device provided by the embodiment is used for executing the business event processing method, so that the same effect as the implementation method can be achieved.
In case an integrated unit is employed, the electronic device may comprise a processing module, a storage module and a communication module. The processing module may be configured to control and manage actions of the electronic device, for example, may be configured to support the electronic device to execute the steps executed by the receiving unit 1301 and the event processing unit 1302. The memory module may be used to support the electronic device in executing stored program codes and data, etc. The communication module can be used for supporting the communication between the electronic equipment and other equipment.
The processing module may be a processor or a controller. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. A processor may also be a combination of computing functions, e.g., a combination of one or more microprocessors, a Digital Signal Processing (DSP) and a microprocessor, or the like. The storage module may be a memory. The communication module may be a communication interface (e.g., a mobile communication module, a wireless communication module, etc.).
In an embodiment, when the processing module is a processor, the storage module is a memory, and the communication module is a communication interface, the electronic device according to this embodiment may be a device having the structure shown in fig. 1.
The present embodiment also provides a computer storage medium, in which computer instructions are stored, and when the computer instructions are run on an electronic device, the electronic device executes the above related method steps to implement the position determination method in the above embodiment.
The present embodiment also provides a computer program product, which when running on a computer, causes the computer to execute the relevant steps described above, so as to implement the position determination method in the above embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer execution instructions, and when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip can execute the position determination method in the above-mentioned method embodiments.
The electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are all configured to execute the corresponding method provided above, so that the beneficial effects achieved by the electronic device, the computer storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the description of the above embodiments, those skilled in the art will understand that, for convenience and simplicity of description, only the division of the above functional modules is used as an example, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (16)

1. A communication framework is applied to electronic equipment and comprises an application interface module, a service module and a bottom layer driving module;
the service module is used for processing a business event;
the service module interacts with a communication interface of the electronic equipment through the bottom layer driving module;
and the service module interacts with an application program in the electronic equipment through the application interface module.
2. The communications framework of claim 1, further comprising a packet object, wherein the service module is bound to the packet object, and wherein the service module invokes the packet object to process a packet event.
3. The communication framework of claim 1 or 2, further comprising a message unpacking object, wherein the service module is bound to the message unpacking object, and wherein the service module invokes the message unpacking object to handle a message unpacking event.
4. The communication framework of any of claims 1-3, further comprising a hardware adaptation object, wherein the service module is bound to the hardware adaptation object, and wherein the service module invokes the hardware adaptation object to interact with the underlying driver module.
5. The communication framework of any of claims 1-4, wherein the service module comprises at least one of an application linked list, a message reception linked list, a message transmission linked list;
the message receiving linked list is used for storing the received messages;
the message sending linked list is used for storing messages to be sent;
the application program linked list is used for storing information of the application program.
6. A communication framework as claimed in any of claims 1 to 5, wherein the service module comprises an event processing loop unit for receiving interaction information sent by the application interface module or the underlying driver module and providing a logical implementation of a function in response to the interaction information.
7. A method for processing a traffic event, applied to a service module in a communication framework according to any of claims 1-6, the method comprising:
receiving the interactive information sent by the application interface module or the bottom layer driving module, and processing the service event based on the interactive information.
8. The method of claim 7, wherein the receiving the interactive information sent by the application interface module and processing the service event based on the interactive information comprises:
receiving a link opening request sent by the application interface module;
calling a hardware adaptation object to send a link opening signal to the bottom layer driving module, wherein the link opening signal is used for triggering the bottom layer driving module to execute a link opening operation;
receiving a link opening result signal sent by the bottom layer driving module through the hardware adaptation object;
and sending a first event feedback signal to the application interface module, where the first event feedback signal is used to trigger the application interface module to instruct a first application to process a link opening result event, and the first application is an application triggering the link opening request.
9. The method of claim 7, wherein the receiving the interactive information sent by the underlying driver module and processing the service event based on the interactive information comprises:
calling a hardware adaptation object to receive a link opening permission signal sent by the bottom layer driving module, wherein the link opening permission signal is sent by the bottom layer driving module after receiving a link establishing signal;
and sending a second event feedback signal to the application interface module, where the second event feedback signal is used to trigger the application interface module to instruct a second application to process an event that allows a link to be opened, and the second application is an application corresponding to the link establishment signal.
10. The method of claim 7, wherein the receiving the interactive information sent by the application interface module and processing the service event based on the interactive information comprises:
receiving a disconnection link request sent by the application interface module;
calling a hardware adaptation object to send a disconnection link signal to the bottom layer driving module, wherein the disconnection link signal is used for triggering the bottom layer driving module to execute disconnection link operation;
receiving a result signal of disconnection sent by the bottom layer driving module through the hardware adaptation object;
and sending a third event feedback signal to the application interface module, where the third event feedback signal is used to trigger the application interface module to instruct a third application to process a link disconnection result event, and the third application is an application triggering the link disconnection request.
11. The method of claim 7, wherein the receiving the interactive information sent by the underlying driver module and processing the service event based on the interactive information comprises:
calling a hardware adaptation object to receive a disconnection allowing signal sent by the bottom layer driving module, wherein the disconnection allowing signal is sent by the bottom layer driving module after the disconnection allowing signal is received;
sending a fourth event feedback signal to the application interface module, where the fourth event feedback signal is used to trigger the application interface module to indicate a fourth application to process a disconnection-allowed event, and the fourth application is an application corresponding to the disconnection-allowed event.
12. The method of claim 7, wherein the receiving the interactive information sent by the application interface module and processing the service event based on the interactive information comprises:
receiving a message sending request sent by the application interface module, wherein the message sending request carries a first message;
calling a message unpacking object to unpack the first message to obtain a first data frame;
calling a hardware adaptation object to send a message sending signal to the bottom layer driving module, wherein the message sending signal is used for triggering the bottom layer driving module to execute message sending operation, and the message sending operation is used for sending a first data frame obtained by unpacking;
receiving a message sending result signal sent by the bottom layer driving module through the hardware adaptation object;
and feeding back a sending event feedback signal to the application interface, wherein the sending event feedback signal is used for triggering the application interface module to indicate a fifth application to process a message sending event, and the fifth application is an application triggering the message sending request.
13. The method of claim 7, wherein the receiving the interactive information sent by the underlying driver module and processing the service event based on the interactive information comprises:
receiving a receiving completion signal sent by a hardware adaptation object, wherein the receiving completion signal is sent by the hardware adaptation object after the hardware adaptation object finishes receiving a second data frame sent by a bottom layer driving module;
reading the second data frame in the hardware adaptation object, and calling a message packet object to perform packet on the second data frame to obtain a second message;
and sending a receiving event feedback signal and the second message to the application interface module, wherein the receiving event feedback signal is used for triggering the application interface module to instruct a sixth application to process the received second message.
14. A traffic event handling apparatus, for use in a service module in a communication framework as claimed in any of claims 1 to 6, the apparatus comprising:
the receiving unit is used for receiving the interactive information sent by the application interface module or the bottom layer driving module;
and the event processing unit is used for processing the service event based on the interactive information.
15. An electronic device comprising a processor including a service module in the communication framework of any of claims 1-6, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 7-13.
16. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any of the claims 7-13.
CN202010286855.0A 2020-04-13 2020-04-13 Communication framework, business event processing method and device Active CN113542315B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010286855.0A CN113542315B (en) 2020-04-13 2020-04-13 Communication framework, business event processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010286855.0A CN113542315B (en) 2020-04-13 2020-04-13 Communication framework, business event processing method and device

Publications (2)

Publication Number Publication Date
CN113542315A true CN113542315A (en) 2021-10-22
CN113542315B CN113542315B (en) 2024-04-05

Family

ID=78119886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010286855.0A Active CN113542315B (en) 2020-04-13 2020-04-13 Communication framework, business event processing method and device

Country Status (1)

Country Link
CN (1) CN113542315B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645678A (en) * 2013-03-13 2014-03-19 沈阳峰点科技有限公司 Real-time response type network control system
CN107045454A (en) * 2016-02-06 2017-08-15 华为技术有限公司 Striding course distributed transaction control method and related system
CN110413264A (en) * 2019-07-30 2019-11-05 南京市晨枭软件技术有限公司 A kind of software application framework and its configuration unit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103645678A (en) * 2013-03-13 2014-03-19 沈阳峰点科技有限公司 Real-time response type network control system
CN107045454A (en) * 2016-02-06 2017-08-15 华为技术有限公司 Striding course distributed transaction control method and related system
CN110413264A (en) * 2019-07-30 2019-11-05 南京市晨枭软件技术有限公司 A kind of software application framework and its configuration unit

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
洪锡军, 张激: "嵌入式应用软件通用运行平台研究", 计算机工程, no. 24, pages 67 - 69 *
诗&远方: "嵌入式应用软件架构设计,https://blog.csdn.net/lizhibing115/article/details/80953068", 《CSDN》, pages 2 - 4 *

Also Published As

Publication number Publication date
CN113542315B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
WO2020259452A1 (en) Full-screen display method for mobile terminal, and apparatus
EP3872609A1 (en) Application display method and electronic device
WO2021000881A1 (en) Screen splitting method and electronic device
EP3926576A1 (en) Frequency adjustment method and apparatus applied to terminal, and electronic device
WO2021213164A1 (en) Application interface interaction method, electronic device, and computer readable storage medium
JP7473100B2 (en) User interface layout method and electronic device - Patents.com
WO2021036770A1 (en) Split-screen processing method and terminal device
CN111182614B (en) Method and device for establishing network connection and electronic equipment
WO2021052200A1 (en) Device capability scheduling method and electronic device
CN111782879B (en) Model training method and device
EP4086780A1 (en) File sharing method and system, and related device
CN111555825B (en) Radio frequency resource allocation method and device
WO2022105445A1 (en) Browser-based application screen projection method and related apparatus
WO2021078032A1 (en) User interface display method and electronic device
WO2020155875A1 (en) Display method for electronic device, graphic user interface and electronic device
CN111553846A (en) Super-resolution processing method and device
EP4163782A1 (en) Cross-device desktop management method, first electronic device, and second electronic device
CN112437341B (en) Video stream processing method and electronic equipment
CN111880661A (en) Gesture recognition method and device
CN111381996A (en) Memory exception handling method and device
WO2022135195A1 (en) Method and apparatus for displaying virtual reality interface, device, and readable storage medium
CN111581119B (en) Page recovery method and device
CN114915996A (en) Communication exception handling method and related device
CN113542315B (en) Communication framework, business event processing method and device
CN114125738B (en) Data transmission control method and related device

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