GithubHelp home page GithubHelp logo

gunsight's People

Contributors

shell-albert avatar shellalbert avatar

Stargazers

 avatar

Forkers

trellixvulnteam

gunsight's Issues

jy901 debug related

Connect jy901b SCL/SDA to NanoPC T4 R196(I2C7_SCL_HDMI) , R199(I2C7_SDA_HDMI)
Donot connect HDMI screen while using jy901b. HDMI and jy901b has the same address 0x50.

modify the hotspot name & password

execute following command & reset:
./update.sh NewHotSpotName NewPassword

this will create two files .hotspotname file and .password .
the startup shell script monitor.sh will read these two files to create new hotspot.
to avoid create more AVLizard config items,delete all old items before creating new.

3rd pcb debug

1.remove R15&R18, 10.7mhz signal amplitude get bigger.

dlib

zypper install cblas-devel
modify CMakeCache.txt
//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING= -lcblas

FPGA-I2S

1.read pcm from /dev/fpga-i2s play directly with noise.
2.write pcm to file , upload to pc ,play in openSuse,everything okay.
3.write pcm to file, play in rk3399 board using plughw:realtekrt5651co,DEV=0 with noise.
4.write pcm to file,play in rk3399 board using plughw:CARD=rockchiphdmi,DEV=0 everything okay.

Qt cross compile

In file included from items/qquicksprite_p.h:63:0,
from items/qquickitemsmodule.cpp:97:
items/qquickspriteengine_p.h: 在成员函数‘virtual int QQuickStochasticState::variedDuration() const’中:
items/qquickspriteengine_p.h:114:38: 错误:对‘qMax(qreal, double)’的调用没有匹配的函数
- m_durationVariation);
^
In file included from /home/zhangshaoyan/MyWork/experiment/qt5113/qt-everywhere-src-5.11.3/qtbase/include/QtCore/qglobal.h:1:0,
from /home/zhangshaoyan/MyWork/experiment/qt5113/qt-everywhere-src-5.11.3/qtbase/include/QtCore/QtCore:4,
from ../../include/QtQuick/QtQuickDepends:3:
/home/zhangshaoyan/MyWork/experiment/qt5113/qt-everywhere-src-5.11.3/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:596:34: 附注:candidate: template constexpr const T& qMax(const T&, const T&)
Q_DECL_CONSTEXPR inline const T &qMax(const T &a, const T &b) { return (a < b) ? b : a; }
^~~~
/home/zhangshaoyan/MyWork/experiment/qt5113/qt-everywhere-src-5.11.3/qtbase/include/QtCore/../../src/corelib/global/qglobal.h:596:34: 附注: template argument deduction/substitution failed:
In file included from items/qquicksprite_p.h:63:0,
from items/qquickitemsmodule.cpp:97:
items/qquickspriteengine_p.h:114:38: 附注: deduced conflicting types for parameter ‘const T’ (‘float’ and ‘double’)
- m_durationVariation);
^
Makefile:73590: recipe for target '.obj/qquickitemsmodule.o' failed
gmake[3]: *** [.obj/qquickitemsmodule.o] Error 1

cross compile openCV4.0 for RK3399

CMake Error at cmake/OpenCVCompilerOptimizations.cmake:460 (message):
Required baseline optimization is not supported: VFPV3
(CPU_BASELINE_REQUIRE=;NEON;VFPV3)
Call Stack (most recent call first):
cmake/OpenCVCompilerOptions.cmake:268 (include)
CMakeLists.txt:556 (include)

cross compile kernel-rockchip for rk3399

http://wiki.friendlyarm.com/wiki/index.php/NanoPC-T4#Compile_FriendlyCore.2FFriendlyDesktop.2FLubuntu.2FEFlasher_Kernel_Source_Code

14.5 Compile FriendlyCore/FriendlyDesktop/Lubuntu/EFlasher Kernel Source Code

git clone https://github.com/friendlyarm/kernel-rockchip --depth 1 -b nanopi4-linux-v4.4.y kernel-rockchip
cd kernel-rockchip
make ARCH=arm64 nanopi4_linux_defconfig
export PATH=/opt/FriendlyARM/toolchain/6.4-aarch64/bin/:$PATH
make ARCH=arm64 nanopi4-images

After compilation is done a kernel.img and a resource.img will be generated. You can simply copy them to replace the existing files in your eflasher SD card. We assume your SD card's FRIENDLYARM partition is mounted at the FRIENDLYARM directory and you can run the following commands to update system:

for Lubuntu

cp kernel.img resource.img /media/FRIENDLYARM/lubuntu/

for FriendlyCore

cp kernel.img resource.img /media/FRIENDLYARM/friendlycore-arm64/

for FriendlyDesktop

cp kernel.img resource.img /media/FRIENDLYARM/friendlydesktop-arm64/

Or you can use a USB Type-C cable and the Linux_Upgrade_Tool utility to update system.

json protocol

json控制端口协议

tcp流边界:length+json data 采用request-response通信方式,Android端作为请求方,ARMLinux端作为应答方。

json协议格式规定

{
"name":"xxxxxxxx",
"age":30,
"country":"America"
}

json协议
1.Android请求设置数据

{
"ImgPro":"on/off/query" 请求开启/关闭/查询图像处理功能
"RTC":"2018/07/19 14:26:53" 请求更新ARMLinux的硬件时间
"DeNoise":"off/RNNoise/WebRTC/Bevis/mmse/query" 请求关闭或打开音频噪声抑制算法
"BevisGrade":"1/2/3/4/query" 设置Bevis降噪算法等级
"WebRtcGrade":"1/2/3/query" 设置WebRtc降噪算法等级
"DGain":"[0-90]/query" 设置音频数字增益,有效范围[0-90],query为查询当前值
"FlushUI":"on/off/query" 刷新本地UI
"Cam1CenterXY":"320,240/query" 设置或查询1号摄像头标定中心点坐标
"Cam2CenterXY":"320,240/query" 设置或查询2号摄像头标定中心点坐标
"Accumulated":"query" 查询设备累计运行秒数
"NoiseView":"white/pink/babble/vehicle/machine/current/custom1/custom2/query" 设置/查询不同的噪声场景
"MainCamSw":"sw/query" 请求切换主摄像头视场/查询当前视场
}

2.ARMLinux返回响应结果

{
"ImgPro":"on/off" 返回当前图像处理功能的状态是开启还是关闭
"RTC":"2018/07/19 14:26:54" 返回当前设备的RTC时间
"DeNoise":"off/RNNoise/WebRTC/Bevis/mmse" 返回音频噪声抑制算法的当前状态
"BevisGrade":"1/2/3/4" 返回Bevis降噪算法等级
"WebRtcGrade":"1/2/3" 返回WebRtc降噪算法等级
"DGain":"off/[0-90]" 返回数字增益当前值
"FlushUI":"on/off" 返回是否刷新本地UI
"Cam1CenterXY":"320,240" 返回1号摄像头标定中心点坐标
"Cam2CenterXY":"320,240" 返回2号摄像头标定中心点坐标
"Accumulated":"1202323" 返回设备累计运行秒数
"ImgMatched":"x1,y1,w1,h1,x2,y2,w2,h2,diffX,diffY,costMs" 返回图像比对结果数据
"NoiseView":"white/pink/babble/vehicle/machine/current/custom1/custom2" 返回当前的噪声场景
"MainCamSw":"big/small" 返回当时是标准视场还是扩展视场
}

(x1,y1,w1,h1):1号摄像头的模板选定区域
(x2,y2,w2,h2):2号摄像头的匹配区域
(diffX,diffY):在2号摄像头图像中匹配到的区域中心点坐标与标定中心点坐标的差值
costMs:算法实际消耗的时间(毫秒)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.