CN113885987A - GPIO visual operation tool based on Android system and implementation method - Google Patents

GPIO visual operation tool based on Android system and implementation method Download PDF

Info

Publication number
CN113885987A
CN113885987A CN202111157327.6A CN202111157327A CN113885987A CN 113885987 A CN113885987 A CN 113885987A CN 202111157327 A CN202111157327 A CN 202111157327A CN 113885987 A CN113885987 A CN 113885987A
Authority
CN
China
Prior art keywords
gpio
gpio port
state
related data
visualization
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.)
Pending
Application number
CN202111157327.6A
Other languages
Chinese (zh)
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.)
Shenzhen JWIPC Technology Co Ltd
Original Assignee
Shenzhen JWIPC Technology 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 Shenzhen JWIPC Technology Co Ltd filed Critical Shenzhen JWIPC Technology Co Ltd
Priority to CN202111157327.6A priority Critical patent/CN113885987A/en
Publication of CN113885987A publication Critical patent/CN113885987A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention is applicable to the technical field of computers, and provides a GPIO visual operation tool based on an Android system and an implementation method thereof.

Description

GPIO visual operation tool based on Android system and implementation method
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a GPIO visual operation tool based on an Android system and an implementation method.
Background
In the software debugging of the Android project, when a software engineer configures and uses the GPIO port, the configuration condition of the GPIO port cannot be visually checked, so that the situation that the GPIO port is missed or multiplexed easily occurs, and the operation cannot be completed.
In the hardware design of the Android project, when a hardware engineer debugs and verifies the state of the GPIO port, the state of the GPIO port cannot be modified intuitively, so that the working efficiency is low and the research and development speed is low.
Disclosure of Invention
The invention aims to provide a GPIO visual operation tool based on an Android system and an implementation method thereof, and aims to solve the problems that the state of a GPIO port, the multiplexing condition of the GPIO port and the modification of the state of the GPIO port cannot be intuitively checked in the research and development process of an Android project.
On one hand, the invention provides a GPIO visual operation tool based on an Android system, which comprises the following modules:
the GPIO port state visualization module is used for viewing the state of the GPIO port in a visualization interface;
the GPIO port multiplexing condition visualization module is used for checking the multiplexing condition of the GPIO port in a visualization interface;
and the state visualization modification module of the GPIO port is used for modifying the state of the GPIO port in a visualization interface.
Further, the states of the GPIO ports comprise a high level state and a low level state.
Further, the state visualization module of the GPIO port is further configured to view, in a visualization interface, the purpose of the GPIO port after being applied for use and the current input and output states.
Further, the modifying the state of the GPIO port comprises pulling high and pulling low.
On the other hand, the invention provides a method for realizing a GPIO visual operation tool based on an Android system, which comprises the following steps:
acquiring an operation instruction of a user through an APK;
running a corresponding Adb shell script command according to the operating instruction of the user to acquire or modify the related data of the GPIO port;
and displaying the acquired related data on a UI interface after the acquired related data is displayed or processed.
Further, the operation instruction of the user comprises checking the state of the GPIO port, checking the multiplexing condition of the GPIO port and modifying the state of the GPIO port.
Further, the Adb shell script commands comprise a first Adb shell script command used for reading data related to the state of the GPIO port, a second Adb shell script command used for circularly reading data related to multiplexing of the GPIO port and a third Adb shell script command used for modifying the state of the GPIO port.
Further, the step of displaying the acquired related data on a UI interface includes the following specific steps:
storing the acquired related data in a system directory;
the APK reads and analyzes the related data to obtain an analysis result;
and displaying the analysis result on a UI interface.
Further, the step of saving the obtained related data in a system directory includes saving the related data in the system directory using a redirect command.
Further, the step of processing the acquired related data and displaying the processed related data on a UI interface includes the following specific steps:
comparing the acquired related data with related data in a chip datasheet to obtain the multiplexing condition of the GPIO port;
and displaying the multiplexing condition on a UI interface.
The invention has the beneficial effects that: the state of the GPIO port is visually displayed on the UI through the state visualization module of the GPIO port, so that a user can conveniently avoid omitting configuration of part of the GPIO port in software debugging; the multiplexing condition of the GPIO port is visually displayed on the UI through the multiplexing condition visualization module of the GPIO port, so that a user can conveniently and quickly check the multiplexing condition of the GPIO port, and the software debugging efficiency is improved; the state of the GPIO port is directly modified on the UI interface through the state visualization modification module of the GPIO port, so that the working efficiency of hardware debugging is improved, and the research and development time is saved.
Drawings
Fig. 1 is a schematic diagram of a GPIO visualization operation tool based on an Android system provided in an embodiment of the present invention;
fig. 2 is a schematic diagram of an implementation method of a GPIO visualization operation tool based on an Android system according to an embodiment of the present invention;
fig. 3 is a UI schematic diagram of a state visualization module of a GPIO port in a GPIO visualization operation tool based on an Android system according to an embodiment of the present invention;
fig. 4 is a UI schematic diagram of a multiplexing condition visualization module of a GPIO port in a GPIO visualization operation tool based on an Android system according to an embodiment of the present invention;
fig. 5 is a UI schematic diagram of a state visualization modification module of a GPIO port in a GPIO visualization operation tool based on an Android system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The following detailed description of specific implementations of the present invention is provided in conjunction with specific embodiments:
the first embodiment is as follows:
as shown in fig. 1, referring to fig. 3, fig. 4 and fig. 5, schematic diagrams of a GPIO visualization operation tool based on an Android system provided in an embodiment of the present invention are shown, and for convenience of description, only parts related to the embodiment of the present invention are shown, where the parts include the following:
the GPIO port state visualization module 101 is used for viewing the state of the GPIO port in a visualization interface;
a multiplexing condition visualization module 102 of the GPIO port, configured to view the multiplexing condition of the GPIO port in a visualization interface;
and the GPIO port state visualization modification module 103 is used for modifying the state of the GPIO port in a visualization interface.
Further, the state of the GPIO port comprises a high level state and a low level state.
Further, the state visualization module of the GPIO port is also used for viewing the application of the GPIO port after being applied and the current input and output states in a visualization interface.
Further, modifying the state of the GPIO port comprises pulling high and pulling low.
Example two:
fig. 2 shows a schematic diagram of an implementation method of a GPIO visualization operation tool based on an Android system provided in an embodiment of the present invention, and for convenience of description, only a part related to the embodiment of the present invention is shown, where the method includes the following steps:
step S201: acquiring an operation instruction of a user through an APK;
step S202: running a corresponding Adb shell script command according to an operation instruction of a user to acquire or modify related data of the GPIO port;
step S203: and displaying the acquired related data on a UI interface after the acquired related data are displayed or processed.
Further, the operation instruction of the user comprises checking the state of the GPIO port, checking the multiplexing condition of the GPIO port and modifying the state of the GPIO port.
Further, the Adb shell script commands comprise a first Adb shell script command cat/d/GPIO used for reading data related to the state of the GPIO port, a second Adb shell script command io-4-r 0xffxxxxxx used for circularly reading multiplexing related data of the GPIO port and a third Adb shell script command io-4-w0xffxxxxxx used for modifying the state of the GPIO port.
Further, the step S203 of displaying the acquired related data on the UI interface includes the following specific steps:
storing the acquired related data in a system directory in a txt text form;
APK reads and analyzes the relevant data to obtain an analysis result;
and displaying the analysis result on a UI interface.
Further, step S203 includes saving the relevant data in the system directory using the redirect command.
Further, the step S203 of processing the acquired related data and displaying the processed related data on the UI interface includes the following specific steps:
comparing the obtained related data with related data in the chip datasheet to obtain the multiplexing condition of the GPIO port;
and displaying the multiplexing situation on a UI interface.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. A GPIO visual operation tool based on an Android system is characterized by comprising:
the GPIO port state visualization module is used for viewing the state of the GPIO port in a visualization interface;
the GPIO port multiplexing condition visualization module is used for checking the multiplexing condition of the GPIO port in a visualization interface;
and the state visualization modification module of the GPIO port is used for modifying the state of the GPIO port in a visualization interface.
2. The Android system-based GPIO visual operating tool of claim 1, wherein the state of the GPIO port comprises a high state and a low state.
3. The Android system-based GPIO visual operation tool as claimed in claim 1 or 2, wherein the GPIO port status visualization module is further configured to view the application of the GPIO port and the status of the current input and output in a visual interface.
4. The Android system-based GPIO visual operation tool of claim 1, wherein the modification of the state of the GPIO port comprises a low level pull-up and a high level pull-down.
5. A method for realizing GPIO visual operation tool based on Android system is characterized by comprising the following steps:
acquiring an operation instruction of a user through an APK;
running a corresponding Adb shell script command according to the operating instruction of the user to acquire or modify the related data of the GPIO port;
and displaying the acquired related data on a UI interface after the acquired related data is displayed or processed.
6. The implementation method of the GPIO visual operation tool based on the Android system as claimed in claim 5, wherein the operation instruction of the user comprises checking the state of the GPIO port, checking the multiplexing condition of the GPIO port and modifying the state of the GPIO port.
7. The implementation method of the GPIO visualization operation tool based on the Android system as claimed in claim 5, wherein the Adb shell script commands comprise a first Adb shell script command for reading data related to the state of the GPIO port, a second Adb shell script command for cyclically reading data related to multiplexing of the GPIO port, and a third Adb shell script command for modifying the state of the GPIO port.
8. The implementation method of the GPIO visualization operation tool based on the Android system as claimed in claim 5, wherein the step of displaying the acquired related data on a UI interface comprises the following specific steps:
storing the acquired related data in a system directory;
the APK reads and analyzes the related data to obtain an analysis result;
and displaying the analysis result on a UI interface.
9. The method for implementing the GPIO visual operation tool based on the Android system as claimed in claim 8, wherein the step of saving the obtained related data in a system directory comprises saving the related data in the system directory using a redirect command.
10. The implementation method of the GPIO visualization operation tool based on the Android system as claimed in claim 5, wherein the step of processing the acquired related data and displaying the processed related data on a UI comprises the following specific steps:
comparing the acquired related data with related data in a chip datasheet to obtain the multiplexing condition of the GPIO port;
and displaying the multiplexing condition on a UI interface.
CN202111157327.6A 2021-09-30 2021-09-30 GPIO visual operation tool based on Android system and implementation method Pending CN113885987A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111157327.6A CN113885987A (en) 2021-09-30 2021-09-30 GPIO visual operation tool based on Android system and implementation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111157327.6A CN113885987A (en) 2021-09-30 2021-09-30 GPIO visual operation tool based on Android system and implementation method

Publications (1)

Publication Number Publication Date
CN113885987A true CN113885987A (en) 2022-01-04

Family

ID=79004715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111157327.6A Pending CN113885987A (en) 2021-09-30 2021-09-30 GPIO visual operation tool based on Android system and implementation method

Country Status (1)

Country Link
CN (1) CN113885987A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566980A (en) * 2008-04-23 2009-10-28 凤凰微电子(中国)有限公司 Method for multiplexing interface of SD card and SD card with expanded function
CN106055456A (en) * 2016-06-23 2016-10-26 乐视控股(北京)有限公司 Monitoring method and monitoring system for terminal state
CN112363969A (en) * 2020-11-11 2021-02-12 歌尔科技有限公司 Interface debugging method and device, electronic equipment and readable storage medium
CN113190478A (en) * 2021-03-19 2021-07-30 山东英信计算机技术有限公司 GPIO (general purpose input/output) efficient configuration method, system and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101566980A (en) * 2008-04-23 2009-10-28 凤凰微电子(中国)有限公司 Method for multiplexing interface of SD card and SD card with expanded function
CN106055456A (en) * 2016-06-23 2016-10-26 乐视控股(北京)有限公司 Monitoring method and monitoring system for terminal state
CN112363969A (en) * 2020-11-11 2021-02-12 歌尔科技有限公司 Interface debugging method and device, electronic equipment and readable storage medium
CN113190478A (en) * 2021-03-19 2021-07-30 山东英信计算机技术有限公司 GPIO (general purpose input/output) efficient configuration method, system and medium

Similar Documents

Publication Publication Date Title
WO2020134634A1 (en) Program debugging method, program debugging apparatus, terminal device, and storage medium
CN104050080B (en) User space debugs the method and system of linux kernel
CN107907814B (en) Method for improving mass production test efficiency of chips
CN201497985U (en) Embedded equipment auxiliary failure analytical tool
CN105740139B (en) A kind of debugging embedded software method based on virtual environment
CN110750437B (en) Equipment debugging method, device, equipment and system
CN113051514B (en) Element positioning method and device, electronic equipment and storage medium
CN112506854B (en) Page template file storage and page generation methods, devices, equipment and media
CN105117339A (en) Method and apparatus for debugging native command debugging program by utilizing plugin
CN105095041A (en) Chip debugging method
CN110569076A (en) method for realizing plug-in based on embedded browser console application program
CN113885987A (en) GPIO visual operation tool based on Android system and implementation method
CN101149700B (en) Method for implementing order display through configuration files
CN116300780B (en) Component configuration method, device, electronic equipment and storage medium
CN102567126A (en) Method and device for site reproduction of hardware
CN104899122A (en) Mobile terminal testing system and method
CN110389751B (en) Data interface mock method applied to knowledge graph
CN103853572A (en) Starting-up method and electronic equipment
CN104780249B (en) Mobile phone and method for outputting kernel debugging information
CN111258970A (en) Method, device, equipment and storage medium for displaying log at client
CN108388370B (en) Mobile terminal touch screen interruption detection method, mobile terminal and storage medium
CN111459736A (en) Plate electrode debugging method of video processing chip
CN110968566A (en) Migration tool-based domestic application system migration method
CN113110885A (en) Method for connecting application software with database, storage medium and terminal equipment
CN104102512A (en) Embedded platform IO equipment dynamic identification system based on external interruption and IO equipment dynamic identification method of system

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