python + QXDM5高通平台通过自动化截取log方法及代码

本文介绍了如何利用Python配合QXDM5工具在高通平台上进行自动化截取log的方法,包括安装QXDM5、设置adb环境变量以及使用Python 3以上版本的代码实现。
摘要由CSDN通过智能技术生成

准备工作:

1.安装QXDM5

2.配置adb 环境变量

3.使用python 3以上

4.完成代码如下

import sys
import time
import os

if sys.platform.startswith("linux"):
    sys.path.append('/opt/qcom/QXDM/Support/python')

elif sys.platform.startswith("win"):
    sys.path.append('C:\Program Files (x86)\Qualcomm\QXDM5\Support\python') #QXDM5的默认路径
    sys.path.append('C:\Program Files (x86)\Qualcomm\QUTS\Support\python')

elif sys.platform.startswith("darwin"):
    sys.path.append('/Applications/Qualcomm/QUTS/QUTS.app/Contents/Support/python')

import QutsClient
import QxdmAutomationClient
import QxdmAutomationService.ttypes


class deviceManager(object):
    #通过模块的devicesID获取QXDM需要连接设备的devicehandle, protocolHandle
    def getDeviceInfo(self,devid,getPortName="Diagnostics"):
        protocolHandle = ""
        deviceHandle = ""
        comport = ""
  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
高通 qualcomm QXDM 工具使用手册 The QXDM Pro software is provided either over the network or on CD-ROM. The installer sets up the QXDM Pro execution environment, which includes installing application binaries, data files, and documentation; registering COM automation components and file associations; and configuring QXDM Pro for initial use. The QXDM Pro installation consists of two main folders:  QXDM program folder – The path to this folder is set by the user when installing QXDM. The default path offered by the installer is based on the underlying Microsoft operating system program files folder, which is typically C:\Program Files\Qualcomm\QXDM. After installation, this folder will contain subfolders containing the QXDM binaries, the QXDM documentation, and parsing DLL wizards for the Microsoft Visual Studio development environment. The contents of this folder should be considered read-only.  QXDM data folder – The base path to this folder is set by the underlying Microsoft operating system and represents the documents folder shared by all users of the host PC. Typically, the Microsoft Windows shared documents folder is located at C:\Documents and Settings\All Users\Documents. After installation, this folder will contain a Qualcomm\QXDM subfolder. The resulting complete path represents the QXDM data folder. A shortcut to this location named “QXDM Data” is located in the Start Menu under the “QXDM Professional” group. Under this will be several subfolders containing QXDM automation script samples, the QXDM database, implementation files for all QXDM HTML-based displays, temporary QXDM item store format files, user-submitted QXDM extensions, reference dynamic parsing DLLs, and the reference QTI vendor database. Unlike the program folder, the QXDM data folder is designed to accommodate user extensions, such as a user database or a user authored QXDM HTML display. Two folders are utilized in order to be compliant with the current Microsoft Windows Logo Program requirements. The installer creates a QXDM Pro folder in the Windows Start Programs menu that can be run by selecting Start→All Programs→QXDM Professional→QXDM Professional. The installed application binaries and user guides are accessible from this location. Additionally, a shortcut to the QXDM Pro data folder is installed. NOTE: Attempting to install QXDM Pro by running the QXDMInstaller.msi file is not supported. The only supported means of installing QXDM Pro is via the setup.exe program.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

奔波儿灞8708

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值