您尚未登录。

楼主 # 2022-06-03 19:55:46

狼狼
会员
注册时间: 2020-06-14
已发帖子: 78
积分: 117

咸鱼找到一个BK7252方案的Wi-Fi摄像头,跑的还是RT-Thread

咸鱼上翻到一个32块钱的摄像头,于是买来拆开看看什么方案的……

image_editor_1654256858371.jpg

image_editor_1654256865150.jpg

IMG_20220603_172057.jpg

IMG_20220603_172048.jpg

BK7252我之前倒是没注意过,不过网上有个基于这个芯片的麻雀1号的开发板,这名字倒是挺符合芯片的hh

BK7252.png

离线

楼主 #1 2022-06-03 19:59:25

狼狼
会员
注册时间: 2020-06-14
已发帖子: 78
积分: 117

Re: 咸鱼找到一个BK7252方案的Wi-Fi摄像头,跑的还是RT-Thread

板子上TP1是UART1_RxD,TP2是UART1_TxD,启动的时候有输出信息

IMG_20220603_194807.jpg

 \ | /
- RT -     Thread Operating System
 / | \     3.1.0 build May 14 2022
 2006 - 2018 Copyright by rt-thread team

OSK Rev: R-3.0.22
SDK Rev: 3.0.33
[FUNC]rwnxl_init
IP Rev: W4-3.0.33-P0
[bk]tx_txdesc_flush
[FUNC]calibration_main

rfcali_mode:0

tssi:b-125, g-115
xtal_cali:25
[FUNC]ps_init
[FUNC]func_init_extended OVER!!!

start_type:3
lwIP-2.0.2 initialized!
igmp_mac_filter add 224.0.0.1 01:00:5E:00:00:01
igmp_mac_filter add 224.0.0.1 01:00:5E:00:00:01
beken wlan hw init
drv_pm_init
[I/FAL] RT-Thread Flash Abstraction Layer (V0.4.0) initialize success.
msh />cmd 1:3 
cmd 1:3 
cmd 1:3 
SD File System initialzation failed!
[I/FAL] The FAL MTD NOR device (filesystem) created successfully
LFS Filesystem initialized! filesystem ==> /flash0
bk_misc_check_start_type=3,gDcOrBattery=0
[ilnkp2p\src\IpcDevSys.c][3197],IpcSysInit:0----->gBatteryValue=0:3656
cVersion=1_11_2_34
cVersion=1_11_2_34
00000000: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
00000010: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
00000020: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
00000030: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
00000040: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
00000050: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
00000060: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
00000070: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF  ................
nilnkp2p\src\IpcDevCfg.c][  78],keyFlashRead:3f4000 has no content,now read 1f4000
00000000: 7B 22 4D 41 43 5F 41 44 44 52 22 3A 22 63 30 30  {"MAC_ADDR":"c00
00000010: 31 30 32 30 30 30 30 31 31 22 2C 22 50 52 4F 44  102000011","PROD
00000020: 55 43 54 5F 4B 45 59 22 3A 22 46 54 59 41 32 31  UCT_KEY":"FTYA21
00000030: 37 37 33 32 50 47 46 5A 4D 22 2C 22 50 52 4F 44  7732PGFZM","PROD
00000040: 55 43 54 5F 53 45 43 52 45 54 22 3A 22 38 39 79  UCT_SECRET":"89y
00000050: 65 79 69 75 72 79 69 65 75 72 79 75 65 69 75 72  eyiuryieuryueiur
00000060: 22 2C 22 44 45 56 49 43 45 5F 4E 41 4D 45 22 3A  ","DEVICE_NAME":
00000070: 22 55 4D 4D 48 56 44 22 2C 22 44 45 56 49 43 45  "UMMHVD","DEVICE
[ilnkp2p\src\IpcDevCfg.c][  94],keyFlashRead:productName=huiehehiuhrr,p2pID=FTYA217732PGFZM,sec=UMMHVD,mac=c00102000011

[ilnkp2p\src\IpcDevCfg.c][ 421],IpcCfgInit:p2pID=FTYA217732PGFZM,sec=UMMHVD,mac=c00102000011

[ilnkp2p\src\IpcDevCfg.c][ 431],IpcCfgInit:lastShutdownTime---->1514766264,timeNow=1514764800[Mon Jan  1 00:00:00 2018
],rNow=[ilnkp2p\src\IpcDevCfg.c][1171],IpcCfgItemGet:failed--->EC_KEY_SLEEP

[ilnkp2p\src\IpcDevCfg.c][1188],IpcCfgItemGet:failed--->EC_KEY_SLEEP

sysmode=0,t=1053
[ilnkp2p\src\IpcDevSys.c][3445],_StartupWiFiInfChk:no wifi.ini file

[ilnkp2p\src\IpcDevSys.c][3722],_StartupFctChk:failed _StartupWiFiInfChk---->[-1]
[ilnkp2p\src\IpcDevSys.c][3240],IpcSysInit:_StartupFctChk--->-1,gFctChkOn=0
[ilnkp2p\src\IpcDevSys.c][ 543],IpcFuncSwitch:Net--->0:0

[ilnkp2p\src\IpcDevWlan.c][ 445],IpcWifiStop:mode=2,gWifiConnected=0
sending broadcast_deauth failed vif_entry == NULL
[ilnkp2p\src\IpcDevSys.c][3252],IpcSysInit:_StartupFctChk--->-1,gFctChkOn=0
[ilnkp2p\src\IpcDevSys.c][3052],normalRun:normalRun--->0,gFctChkOn=0
sysmode=1,t=1103
cmd 1:3 
cmd 1:3 
cmd 1:3 
SD Card initialzation failed!-->ret=-1:0
[ilnkp2p\record\IpcRecIdx.c][1370],IpcPicIdxChk:TFcard not mounted[0]

[ilnkp2p\record\IpcRecIdx.c][1416],IpcRecIdxChk:TFcard not mounted[0]

[ilnkp2p\record\IpcRecIdx.c][1393],IpcSplIdxChk:TFcard not mounted[0]

video_transfer_main entry
video transfer send type:3, open type:1
2----open I2C2
chNmb=0,sensor=7,gUsedCam=abc09
lost
lost
lost
lost
lost
lost
lost
lost
lost
lost
lost
SP0A19_DEV init finish
0a19 addr=0x02,value=fe a6
camera_intfer_init counter=0, needTime=lost
0
camera_intfer_init=7:abc09,a5a50003-a5a50005
[ilnkp2p\avServer\iLnkAvServer.c][ 327],vidBitrateSet:lBitrate:hBitrate=[10000:12000],gVidCrntCho:gVidBufLen=0:40960d

cmd 1:3 
[ilnkp2p\src\IpcCustomAV.c][1302],_VidFrameGetTh:pwr=0:3656,gVidCrntCho=[abc09:0:40960],size=0,fps=0,diff=1514766265

cmd 1:3 
cmd 1:3 
SD Card initialzation failed!-->ret=-1:0
[ilnkp2p\src\IpcDevSys.c][ 543],IpcFuncSwitch:Net--->0:0

[ilnkp2p\src\IpcDevWlan.c][ 417],IpcWifiStart:
mode=2,ssid=FTYA217732PGFZM,psk=12345678

[ilnkp2p\src\IpcDevWlan.c][ 103],ap_setup:no flash configuration, use default

[ilnkp2p\src\IpcDevWlan.c][ 112],ap_setup:no flash configuration, use default

[ilnkp2p\src\IpcDevWlan.c][ 130],ap_setup:chann=7,mac=c8:47:8c:78:5e:6a

[ilnkp2p\src\IpcDevWlan.c][ 152],ap_setup:set ip info: 192.168.1.1,255.255.255.0,192.168.1.1,c8:47:8c:78:5e:6a

[ilnkp2p\src\IpcDevWlan.c][ 154],ap_setup:ssid:FTYA217732PGFZM  key:

Soft_AP_start
[saap]MM_RESET_REQ
[bk]tx_txdesc_flush
[saap]ME_CONFIG_REQ
[saap]ME_CHAN_CONFIG_REQ
[saap]MM_START_REQ
[csa]csa_in_progress[0:0]-clear
mm_add_if_req_handler:0
hapd_intf_add_vif,type:3, s:0, id:0
apm start with vif:0
------beacon_int_set:100 TU
set_active param 0
[msg]APM_STOP_CFM
update_ongoing_1_bcn_update
mm_set_vif_state_req_handler
vif_idx:0, ch_idx:0, bcmc_idx:2
update_ongoing_1_bcn_update
uap_ip_start

configuring interface uap (with Static IP)
using static ip...
please use rtthread dncp start server
[DHCP] dhcpd_start: ap
[DHCP] ip_start: [192.168.1.100]
[DHCP] ip_end: [192.168.1.254]
[DHCP] dhcp_server_start(): starting new DHCP server
[DHCP] dhcp_server_start(): starting DHCP server
def netif is no ap's netif, sending boardcast or no-subnet ip packets may failed
[ilnkp2p\src\IpcDevWlan.c][ 435],IpcWifiStart:IpcWifiStart=208

[ilnkp2p\src\IpcDevSys.c][3137],normalRun:IpcSysInit=0,t=2345

start watch dog
rt_hw_wdg_start time=10000 threshold=500
[ilnkp2p\src\IpcDevWlan.c][ 322],IpcWifiStatusGet:bk_wlan_ap_is_up:wifiMode=2,ret=1

[ilnkp2p\libipc\IpcDevAPI.c][  47],_IpcInit:info[688]:
p2pID=FTYA217732PGFZM
svrStr=EKTDROREHXHURHRKRMCXEEKPRNKKUZPNLXNYNOHYAO[ilnkp2p\libipc\IpcDevAPI.c][  50],_IpcInit:info---P2pInit()

[ilnkp2p\libipc\IpcDevP2P.c][ 296],P2pInit:info!!! svrStr=EKTDROREHXHURHRKRMCXEEKPRNKKUZPNLXNYNOHYAONRNUNWRJSQGZNXGUNTIHKIJYEH[ilnkp2p\libp2p\XQP2P_API.c][  41],XQP2P_InitializeExt:svrStr=EKTDROREHXHURHRKRMCXEEKPRNKKUZPNLXNYNOHYAONRNUNWRJSQGZNXGUNTIHKI[ilnkp2p\libp2p\Xq_p2pEntry.c][1472],P2P_Init:pktSize=1032
                ExtPktBlockSize=1072
                P2PIDSize=20
                ojtLicense=EKTDROREHXHURHRK[ilnkp2p\libp2p\OsEncryptBase.c][ 643],XqCodeTableInit:codeTable=1352

[ilnkp2p\libp2p\Xq_p2pEntry.c][ 144],GlobalParamInit:
NodeName=UMMHVD


[ilnkp2p\libp2p\Xq_p2pEntry.c][ 158],GlobalParamInit:

_g_params:
sessionNmb=2
channelNmb=6
bufferSize=64
svrStr=EKTDROREHXHUR[ilnkp2p\libp2p\Xq_p2pEntry.c][1487],P2P_Init:GlobalParams_Init=0,st_globalParams=420,_g_pVerifyParam=524

[ilnkp2p\libp2p\Xq_p2pEntry.c][1508],P2P_Init:mpSize=96----P2PPktPool_Get

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[0].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[1].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[2].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[3].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[4].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[5].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[0].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[1].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[2].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[3].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[4].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[5].maxNmb=64

closesocket: invalid s=0
[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[0].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[1].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[2].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[3].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[4].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[5].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[0].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[1].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[2].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[3].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[4].maxNmb=64

[ilnkp2p\libp2p\Xq_p2pDataRW.c][  47],DataRW_Init:init chlLst[5].maxNmb=64

closesocket: invalid s=0
[ilnkp2p\libp2p\Xq_p2pEntry.c][1309],SDevMonThStart:superDevThread sucessfully!!

[ilnkp2p\libp2p\Xq_p2pEntry.c][1641],P2P_Init:--ok--_g_bInitialized=1,_g_session==16

[ilnkp2p\libipc\IpcDevP2P.c][ 305],P2pInit:info!!! P2pInit=0

[ilnkp2p\libipc\IpcDevAPI.c][  59],_IpcInit:info---IpcSession_Init()

[ilnkp2p\src\Ink[ilnkp2p\libp2p\Xq_p2pEntry.c][ 664],BCstListenProc:error[-1]-BrdCstSktFDPut

Pq_p2pEntry.c][ 664],BCstListenProc:error[-1]-BrdCstSktFDPu[ilnkp2p\src\InkP2pModule.c][  33],_getCbArray:CB_AV_CTRL:cbAvCtrlFun
[ilnkp2p\src\InkP2pModule.c][  38],_getCbArray:CB_STREAM_DATA_GET:cbAvStreamDataGet
[ilnkp2p\src\InkP2pModule.c][  43],_getCbArray:CB_STREAM_DATA_PUT:cbAvStreamDataPut
[ilnkp2p\src\InkP2pModule.c][  48],_getCbArray:CB_NETWORK_CTRL:cbNetCtrlFun
[ilnkp2p\src\InkP2pModule.c][  53],_getCbArray:CB_SD_CTRL:cbSdCtrlFun
[ilnkp2p\src\InkP2pModule.c][  59],_getCbArray:CB_EVENT_NOTIFY:cbEvenNoteFun
[ilnkp2p\src\InkP2pModule.c][  64],_getCbArray:CB_DATARCV:cbPassThough
[ilnkp2p\src\InkP2pModule.c][  66],_getCbArray:get callback over, ret=8

[ilnkp2p\libipc\IpcDevCallback.c][  77],cb_CallRegist:cmd nmb=8

[ilnkp2p\libipc\IpcDevCallback.c][  81],cb_CallRegist:register gCbArray[0].cmdID=a000

[ilnkp2p\libipc\IpcDevCallback.c][  81],cb_CallRegist:register gCbArray[1].cmdID=a002

[ilnkp2p\libipc\IpcDevCallback.c][  81],cb_CallRegist:register gCbArray[2].cmdID=a003

[ilnkp2p\libipc\IpcDevCallback.c][  81],cb_CallRegist:register gCbArray[3].cmdID=a004

[ilnkp2p\libipc\IpcDevCallback.c][  81],cb_CallRegist:register gCbArray[4[ilnkp2p\libp2p\Xq_p2pEntry.c][ 664],BCstListenProc:error[-1]-BrdCstSktFDPut

]ut

D=a001

[ilnkp2p\libipc\IpcDevCallback.c][  81],cb_CallRegist:register gCbArray[5].cmdID=a005

[ilnkp2p\libipc\IpcDevCallback.c][  81],cb_CallRegist:register gCbArray[6].cmdID=a006

[ilnkp2p\libipc\IpcDevCallback.c][  81],cb_CallRegist:register gCbArray[7].cmdID=a007

[ilnkp2p\libipc\IpcDevAPI.c][ 173],IpcLibStart:info---Using external ringbuf,check CB ifexisted

[ilnkp2p\libipc\IpcDevSession.c][ 997],LstnThStart:bInet[0]-->_ListenThread

[ilnkp2p\src\InkP2pModule.c][ 164],IpcP2pStart:Success[0]--IlnkModP2pStart

[ilnkp2p\src\InkP2pModule.c][ 172],IpcP2pStart:IpcP2pStart=0

[ilnkp2p\src\IpcDevSys.c][1610],sdPlugChk:sd-cd value=1,gSdPlugIn=-1

[ilnkp2p\libipc\IpcDevSession.c][ 671],_ListenThread:_ListenThread-----start

[ilnkp2p\libipc\IpcDevSession.c][ 689],_ListenThread:bInet=0-->listening by id:FTYA217732PGFZM,devName=UMMHVD

[ilnkp2p\libp2p\XQP2P_API.c][  86],XQP2P_Lis[ilnkp2p\libipc\IpcDevSession.c][ 856],CmdRecvTh:CmdRecvThread start...

[E/NTP]: ERROR no such host
cur_time is 0.
tvTh:CmdRecvThread start...

Code=UMMHVD

[ilnkp2p\libp2p\Xq_p2pEntry.c][ 554],BrdCstSktGet:error[XqSckIfValid=-1],pSession->sktFd=4

[ilnkp2p\libp2p\Xq_p2pEntry.c][1155],SessionGet:session id is FTYA-217732-PGFZM

gParam.bFlagServerHello==0
[ilnkp2p\libp2p\Xq_p2pSession.c][ 380],pSessionStart:sock=5,localAddr is 0.0.0.0:62510,udpPort4=62510

[ilnkp2p\src\IpcCustomAV.c][1302],_VidFrameGetTh:pwr=0:3597,gVidCrntCho=[abc09:0:40960],size=11884,fps=7,diff=3

[ilnkp2p\src\IpcCustomAV.c][1302],_VidFrameGetTh:pwr=0:3597,gVidCrntCho=[abc09:0:40960],size=10984,fps=8,diff=3

[ilnkp2p\src\IpcCustomAV.c][1302],_VidFrameGetTh:pwr=0:3565,gVidCrntCho=[abc09:0:40960],size=12296,fps=8,diff=3

[ilnkp2p\src\IpcCustomAV.c][1302],_VidFrameGetTh:pwr=0:3540,gVidCrntCho=[abc09:0:40960],size=11724,fps=8,diff=3

IpcShutdownDST for bForced 0-->t: 14888
---enter deep sleep :wake up with gpio 0~31 ps: 0x80 0x80 

这是出厂开机上电的时候打印的信息,Wi-Fi还没配置。

后面连上之后画质也就那样,从TF卡里看录像文件貌似640*960,推流码率180左右,帧率最高15FPS……

最近编辑记录 狼狼 (2022-06-03 19:59:57)

离线

楼主 #9 2022-06-10 09:24:13

狼狼
会员
注册时间: 2020-06-14
已发帖子: 78
积分: 117

Re: 咸鱼找到一个BK7252方案的Wi-Fi摄像头,跑的还是RT-Thread

dgtg 说:

视频是什么编码啊?

当时瞄了一眼TF卡里保存的录像是avi的,具体什么编码没看,然后它就被我扔去吃灰了:D

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn