- 博客(87)
- 资源 (3)
- 收藏
- 关注
原创 Android网络时间同步
同步成功、同步失败并且重试也都失败1天后再次同步。轮巡长间隔1天,同步成功、多次重试仍同步失败时用。AUTO_TIME设置为1时才会更新系统时间。Long.MAX_VALUE,在Java中,首次同步失败,再重试3次,重试间隔1分钟。dumpsys命令可以查看网络时间同步参数。时间差阈值5秒,超过此值进行时间同步。轮巡短间隔1分钟,同步失败重试时用。同步失败最大重试次数3次。的最大值为2^63-1,即。* 切换网络,有网络可用。系统(语言、时间、更新)
2024-08-15 20:18:43
421
原创 atomic[64]_cmpxchg之坑
atomic64_cmpxchg、atomic_cmpxchg是宏定义,第一个参数使用强制类型转换,移植代码到64位系统时容易入坑。
2024-08-15 07:59:02
406
原创 MTK方案背光服务BUG
MTK方案关机或恢复出厂时显示屏显示一段时间的灰色,android.hardware.light@2.0-service-mediatek.rc文件,light-hal-2-0服务增加 shutdown critical。
2024-08-15 07:51:21
115
原创 ROS melodic android_apps移植
目录环境遇到问题问题一Waiting for maps ...问题二 Attempting to connect to mongodb @ localhost:27017问题三 Insert map failed问题四保存同名地图错误mongo环境Ubuntu 18.04 + ROS melodicWindows 10 + Android Studio 2020.3.1 Patch 3遇到问题问题一Waiting for maps ...GitH...
2024-03-27 08:30:43
412
原创 Ubuntu udev rules
/etc/udev/rules.d/50-usbcan.rulesSUBSYSTEMS=="usb", ATTRS{idVendor}=="0471", ATTRS{idProduct}=="1200", GROUP="autoware", MODE="0666"SUBSYSTEMS=="usb", ATTRS{idVendor}=="0c66", ATTRS{idProduct}=="000c", GROUP="autoware", MODE="0666"51-android.rule
2021-11-03 15:11:27
865
原创 RV1126 lsm6dsl中断未接硬件iio驱动修改
目录方法一设备树代码修改方法二设备树代码修改lsm6dsl硬件上没接中断管脚,iio驱动修改方法。方法一设备树硬件上并未接中断管脚,设备树配置一没有被使用的GPIO管脚作为中断管脚。&i2c2 { status = "okay"; clock-frequency = <400000>; lsm6dsl: lsm6dsl@6b{ status = "okay"; comp...
2021-09-02 20:16:09
864
原创 Jetson Xavier NX编译Rviz2
目录容器编译foxyRViz2容器修改docker镜像保存路径$ systemctl show --property=FragmentPath docker$ sudo mkdir /ssd/docker$ sudo vi /lib/systemd/system/docker.service --graph=/ssd/docker$ sudo systemctl daemon-reload$ sudo service docker restart安装po...
2021-09-02 20:06:59
1208
1
原创 libiio
Ubuntu 16.04.4 LTS使用cmake编译,禁用AIO、DNS_SD。git clone https://github.com/analogdevicesinc/libiio.gitcd libiiomkdir buildcd buildcmake ../ -DWITH_AIO=OFF -DHAVE_DNS_SD=OFF-- cmake version: 3.5.1-- The C compiler identification is GNU 5.4.0-- Check.
2021-09-02 20:03:04
1672
6
原创 Win10 Docker Desktop
安装WSL参考https://docs.microsoft.com/zh-cn/windows/wsl/install-win10。安装Docker Desktop参考https://www.docker.com/products/docker-desktop。迁移docker-desktop-data防止C盘爆满,将docker-desktop-data迁移到其他盘。wsl -l -vwsl --shutdownwsl --export docker-desktop-data
2021-07-15 19:58:29
1203
原创 内核模块编译脚本
目录px3rk1808px30ag215spx3#!/bin/bashKSRC=/opt/px3/rkpx3/kernelexport PATH=${PATH}:/opt/px3/rkpx3/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/binexport CROSS_COMPILE=arm-eabi-if [ "$1" = "clean" ]; then make clean SUBDIRS=`pwd` -C ${K
2021-07-06 19:07:41
364
1
原创 yocto编译包含kernel-devsrc的sdk
目录增加kernel-devsrc编译sdk编译驱动找不到头文件找不到fixdep找不到modpost使用make scripts增加kernel-devsrcTOOLCHAIN_TARGET_TASK_append中增加kernel-devsrc,可以把内核模块开发所需的kerenl-devsrc编译进sdk。--- a/src/poky/meta-qti-bsp/recipes-products/images/qcs40x/qcs40x-base-ima..
2021-07-06 18:45:18
978
原创 快捷方式启动autoware
Ubuntu 16.04(18.04)/home/autoware/Desktop目录下创建autoware.desktop文件,内容如下:[Desktop Entry]Comment=AutowareExec=docker exec -it -u autoware ourautoware /home/autoware/entrypoint.shGenericName=AutowareTerminal=trueType=ApplicationIcon=/home/autoware/sh
2021-06-27 09:34:16
304
原创 利用rostopic pub发布消息进行调试
rosmsg info autoware_config_msgs/ConfigNDTrostopic pub -1 /config/ndt autoware_config_msgs/ConfigNDT -- '{ header: auto, x: 1, y: 2, z: 3 }'
2021-06-18 19:31:04
1026
原创 RViz汉化
目录RViz编译RViz修改全屏时不隐藏可停靠面板工具栏主界面、菜单、帮助image viewer pluginRViz编译cd srcgit clone https://github.com/ros-visualization/rvizcd rvizgit checkout melodic-develcd ../..source install/setup.bashcolcon build --cmake-args -DCMAKE_BUILD_TYPE=Re.
2021-06-16 19:04:59
1368
原创 ROS melodic installation from source
目录ROS Wikiapt installinstallROS Wikimelodic/Installation/Source - ROS Wikiapt installpython-rosdeppython-rosinstall-generatorpython-vcstoolpython-rosinstallbuild-essentialinstallrosdep initrosdep updatemkdir ~/ros_catkin_wscd ~/r
2021-06-10 17:33:59
133
原创 资源列表
C++ 参考手册 - C++中文 - API参考文档 (apiref.com)VSCode 使用Remote-ssh登录远程主机编写代码 - 简书 (jianshu.com)Developing on Remote Machines using SSH and Visual Studio Code
2021-06-04 17:35:45
106
1
原创 Visual Studio Code Remote-SSH Autoware
Visual Studio Codelaunch.json{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2
2021-06-04 17:34:55
189
原创 autoware points2image段错误
目录gdb调试rostopic echocalibration_publishergdb调试用gdb调试,发现段错误发送在src/autoware/visualization/points2image/nodes/points2image/points2image.cpp文件第68行。gdb install/points2image/lib/points2image/points2imagerostopic echorostopic echo /usb_am/camera_
2021-06-03 20:32:41
392
原创 ROS2
https://docs.ros.org/en/foxy/Installation/Ubuntu-Development-Setup.htmlmkdir -p ~/ros2_ws/srccd ros2_wswget https://raw.githubusercontent.com/ros2/ros2/foxy/ros2.reposvcs-import src < ros2.repos
2021-06-02 17:02:05
77
原创 CUDA 10.0 deviceQuery
CUDA 10.0 deviceQuery18.04@Ubuntu:~/NVIDIA_CUDA-10.0_Samples/1_Utilities/deviceQuery$ make"/usr/local/cuda-10.0"/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=com
2021-05-27 20:29:56
379
原创 Ubuntu CUDA-10.0
NVIDIA_CUDA-10.0_Samples/1_Utilities/deviceQuery18.04@Ubuntu:~/NVIDIA_CUDA-10.0_Samples/1_Utilities/deviceQuery$ make"/usr/local/cuda-10.0"/bin/nvcc -ccbin g++ -I../../common/inc -m64 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,co.
2021-05-27 20:22:49
125
原创 Open Source URL
Autowarehttps://github.com/vkrit/Autowarehttps://github.com/jsk-ros-pkg/jsk_visualizationhttps://github.com/ethz-asl/lidar_alignhttps://github.com/ros-visualization/rviz/https://github.com/ros/ros_comm/https://github.com/ros/roscpp_corehttps://gith
2021-05-21 13:57:26
104
原创 fix2pose debug
目录fix2pose debugroslaunch gnss_localizer fix2tfposerosparam getrostopic echo /gnss_poserostopic pubhttps://wiki.ros.org/ROS/YAMLCommandLinefix2pose debugroslaunch gnss_localizer fix2tfpose$ roslaunch gnss_localizer fix2tfpose.launch....
2021-05-19 19:40:42
243
原创 docker-nvidia
docker versionClient: Version: 19.03.6 API version: 1.40 Go version: go1.12.17 Git commit: 369ce74a3c Built: Fri Dec 18 12:21:44 2020 OS/Arch: linux/amd64 Experimental: falseServer: Engi
2021-05-18 16:31:53
207
原创 which_pkg.sh
which_pkg.sh#!/bin/bashif [ -n "$1" ]; then FNAME=$1fiSTIME=`date +%s`PKGS="`dpkg -l|grep "ii "|awk '{print $2}'`"for PKG in $PKGSdo #echo "$PKG ..." dpkg -L $PKG|grep $FNAME if [ 0 -eq $? ]; then
2021-05-18 16:31:24
105
原创 autoware runtime manager
目录rtmgr.pyruntime_manager_dialog.pyRVizbuildversionconfigpluginautoware_launcher_rvizautoware_launcherrtmgr.pydiff -u build/runtime_manager/catkin_generated/installspace/rtmgr.py install/runtime_manager/lib/runtime_manager/rtmgr.py-.
2021-05-14 17:43:08
624
原创 调试脚本
目录test.shvideo.ships.shGPIO.shrepo init -u ssh://git@www.rockchip.com.cn/linux/rk/platform/manifests -mrv1126_rv1109_linux_release.xmlssh://git@www.rockchip.com.cn/linux/linux/internal_doctest.sh#!/bin/bashCOUNT=0while :do wh..
2021-05-14 17:42:22
356
原创 Autoware开发
dockerhttps://github.com/Autoware-AI/autoware.ai/wiki/docker-installationhttps://docs.docker.com/engine/install/ubuntu/ Ubuntu docker-ce nvidia-container-runtime nvidia-container-toolkit nvidia-docker2
2021-05-14 17:41:40
588
原创 编译freescale imx6 yocto bsp
repo sync & bitbakeexport REPO_URL=https://mirrors.ustc.edu.cn/aosp/git-repomkdir fsl-release-bspcd fsl-release-bsprepo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b imx-3.10.17-1.0.0_garepo syncSDKMACHINE=`uname -m`;MACHINE=imx6
2021-05-14 17:40:45
326
原创 从源码编译usbmuxd
从源码编译 usbmuxdlibplist源码:https://github.com/libimobiledevice/libplist.git编译出静态库 libcnary,动态库 libplistlibusbmuxd源码:https://github.com/libimobiledevice/libusbmuxd.git编译出静态库 libinternalcommon,动态库 libusbmuxd,可执行文件 iproxy、inetcat。动态库依赖libinternalcommo
2021-03-29 13:37:48
1273
原创 autoware /vehicel_cmd测试程序
参考资料https://gitlab.com/autowarefoundation/autoware.ai/autoware/-/wikis/Generic-x86-Docker进入容器下载autoware docker仓库,修改run.sh,删除-rm参数,否则退出容器会自动删除容器,运行run.sh进入容器。git clonehttps://github.com/Autoware-AI/docker.gitcd docker/generic./run.sh -t 1.14.0.
2021-03-12 19:34:18
800
原创 primaryCpuAbi被第三方APP影响导致Android系统异常
分析packages.xml,显示primaryCpuAbi。#!/usr/bin/python# -*- coding: UTF-8 -*-from xml.dom.minidom import parseimport xml.dom.minidomDOMTree = xml.dom.minidom.parse("packages.xml")collection = DOMTree.documentElementpackages = collection.getElementsBy
2021-03-12 19:17:51
830
原创 重新安装gerrit
重新安装gerrit#!/bin/bashcd/home/gerrit./review_site/bin/gerrit.sh stoprm -rf review_sitejava -jar ~/work/gerrit.war init -b -d review_site --install-all-plugins./review_site/bin/gerrit.sh stopcp -f gerrit.config ./review_site/etc/./review_site/bin.
2021-02-01 18:51:24
289
原创 RKPX30看门狗驱动调试
RKPX30看门狗驱动调试设备树修改设备树文件px30-evb-ddr3-lvds-v10.dts中使能watchdog,默认为disabled。&wdt { status = "okay";};配置文件修改驱动代码修改注释掉dw_wdt_release函数中的reset_control相关代码,否则喂狗程序异常关闭看门狗设备,设备也不会重启。probe函数中增加dw_wdt_set_top、dw_wdt_arm_system_reset,让驱动自动喂狗,..
2020-12-31 18:32:51
1391
原创 Android调试常用命令
Android调试常用命令命令行打开常用APP串口或adb shell中运行am start com.android.settings/.Settingsam start com.android.launcher/com.android.launcher2.Launcheram start com.android.launcher3/.Launcheram start com.android.camera2am start com.android.soundrecorder/.Sound
2020-12-30 09:05:04
308
Roadmap TI 2015
2015-11-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人