Skip to content

Instantly share code, notes, and snippets.

View sin5678's full-sized avatar

fuckdji sin5678

View GitHub Profile
@sin5678
sin5678 / gist:4d34b29bef1ed44befc323ca471773a5
Created November 27, 2021 07:41
DJI Mavic Air 2s parameters
DEVICE TYPE:AVI wm232 20210625|111159
0:0:multi_esc_type type: uint8 min:0 max:1 def:0 value: 0
3:3:F_CHL_F1 type: uint8 min:0 max:255 def:16 value: 16
4:4:F_CHL_F2 type: uint8 min:0 max:255 def:19 value: 19
5:5:F_CHL_F3 type: uint8 min:0 max:255 def:255 value: 255
6:6:F_CHL_F4 type: uint8 min:0 max:255 def:255 value: 255
7:7:F_CHL_F5 type: uint8 min:0 max:255 def:255 value: 255
8:8:F_CHL_F6 type: uint8 min:0 max:255 def:255 value: 255
9:9:F_CHL_F7 type: uint8 min:0 max:255 def:255 value: 255
10:10:F_CHL_F8 type: uint8 min:0 max:255 def:255 value: 255
DEVICE TYPE:AVI wm260 20211104|003535
0:0:vps_func_en|g_config.mvo_cfg.mvo_func_en type: uint8 min:0 max:1 def:1
1:1:disable_tof_if_close_vps|NULL type: uint8 min:0 max:1 def:1
2:2:is_locked|g_config.device.is_locked type: uint8 min:0 max:1 def:0
3:3:imu0_x type: int16 min:-32768 max:32767 def:57
4:4:imu0_y type: int16 min:-32768 max:32767 def:0
5:5:imu0_z type: int16 min:-32768 max:32767 def:-28
6:6:gps0_x type: int16 min:-32768 max:32767 def:68
7:7:gps0_y type: int16 min:-32768 max:32767 def:0
8:8:gps0_z type: int16 min:-32768 max:32767 def:-28
@sin5678
sin5678 / gist:c775022bb3bc844406c5f5bace4e32ca
Last active August 25, 2021 17:57
DJI Mavic Mini2 full flight controller parameters dump , version 03.04.09.18
[
{
"index" : 0,
"typeID" : 0,
"size" : 1,
"attribute" : 16,
"minValue" : 0,
"maxValue" : 17,
"defaultValue" : 0,
"name" : "sweep_test_flag"
@sin5678
sin5678 / gist:f13d96d5406e16b15154c40f458bb474
Created August 25, 2021 08:04
strings from DJI Mavic Mini 2 Flight controller
wm161
aUGW
]B[&
98/a&
%! @]
pYY pLZ
pdc
phf
pLi
p\m
multi_esc_type default = 0 range = < 0 .. 1 >
F_CHL_F1 default = 16 range = < 0 .. 255 >
F_CHL_F2 default = 19 range = < 0 .. 255 >
F_CHL_F3 default = 255 range = < 0 .. 255 >
F_CHL_F4 default = 255 range = < 0 .. 255 >
F_CHL_F5 default = 255 range = < 0 .. 255 >
F_CHL_F6 default = 255 range = < 0 .. 255 >
F_CHL_F7 default = 255 range = < 0 .. 255 >
F_CHL_F8 default = 255 range = < 0 .. 255 >
F_CHL_D_FREQ default = 50 range = < 1 .. 1000 >
@sin5678
sin5678 / 小米4解锁cpu
Created November 18, 2018 05:53
小米4解锁cpu
小米4解锁cpu
system/bin目录下changepowermode.sh
以下复制粘贴
#!/system/bin/sh
target=`getprop ro.product.model`
@sin5678
sin5678 / shell.so.c
Last active October 26, 2018 15:31
so tcp bind shell
#include <stdio.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <unistd.h>
int shell()
{
查看 STM32 F103C8T6 的文档 I2C SDA ->PB11 (板子上的 B11) SCL->PB10 (板子上的 B10)
使用 arduino 的 Wire 库操作之前 要定义先定义
TwoWire WIRE2 (2,I2C_FAST_MODE);
#define Wire WIRE2
然后就能正常使用 Wire 库了
淘宝 十几块 一个的开发板 CPU是 STM32F103C8T6 64K闪存 72MHZ 的主频 性能是可以完爆 arduino nano 的那个 8 位CPU了 价钱却也没贵多少
下载 arduino
arduino 开发板管理器中搜索 SAM 并安装 这个主要是安装 arm 开发板的工具链
https://github.com/rogerclarkmelbourne/Arduino_STM32 选择下载 zip 文件,整个项目打包下载下来
解压到 arduino 的 hardware 目录
重新打开 arduino 工具下面应该可以看到新增的 STM32 类型的开发板 选择 STM32F103C 系列的
选择一个示例项目 即可测试烧录 推荐使用 ST-LINK 方式下载
@sin5678
sin5678 / gist:91166bd5613a4328753eb49a71e58962
Created March 1, 2018 08:56
中国移动 GM219 型光猫破解
访问 http://192.168.1.1/cgi-bin/telnet.asp 开启猫的 telnet 服务
然后 telnet 192.168.1.1 8023 用户名 密码 admin chzhdpl
查看猫的配置文件: cat /boaroot/html/romfile.cfg 里面超级管理员密码 宽带账号都在里面了
其实可以直接尝试默认的超级密码登陆 CMCCAdmin CMCCAdminzfly7aI2 或者 CMCCAdmin chzhdpl
进入后台可以改下 桥接 这样就能使用自己的路由器来拨号了