自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(33)
  • 收藏
  • 关注

原创 [Display嵌入式]SDL播放 mjpeg 檔案到屏幕上

將MJPEG 用 SDL2 顯示在屏幕上

2022-09-07 17:01:32 255 1

原创 Windows上使用 glaze 製作嵌入式GUI與處理交叉編譯

.glaze 可以改名為 .ui 在交叉編譯中使用

2022-08-31 20:17:34 122

原创 X window system 從buildroot移植二三事

使用 buildroot 交叉編譯與安裝 x window system

2022-08-31 20:02:31 339

原创 Buildroot libGTK2 support DirectFB

Buildroot 上讓 libgtk2 可以 gdk-target=directfb

2022-06-10 11:41:17 244 1

原创 Buildroot patch 使用 git format-patch 製作

使用 git format-patch 製作 buildroot patch文章目录使用 git format-patch 製作 buildroot patchgit patch 基於commit 來製作修改git patch for buildroot經常不能直接用,但是Diff 產生的patch 又遠不如git patch 能夠存放各筆修改的重要訊息,本文紀錄git patch 無法給buildroot 使用的根本原因與解法。git patch 基於commit 來製作原本的commit aaa

2022-05-31 16:49:26 193

原创 [Buildroot] patch for buildroot package

如何製作Buildroot package patch公司規定第三方庫都要放在buildroot 管理,也就是如果要修改source code 的話,就需要打patch。文章目录如何製作Buildroot package patchbuildroot architecturehow to make Linux patchdiffgit format-patch將其中一筆作為patch將兩筆作為patch從HEAD 開始算起N筆作為PATCHbuildroot download source and pa

2022-05-09 13:46:09 299

原创 Linux Kernel config enable USB mouse/keyboard, Virtual terminal, frame buffer & snapshot /dev/fb0

起因最近在目標平台上移植 DirectFB,需要先用 Virtual framebuffer (虛擬幀緩衝) 進行測試,才能開始開發gfx device & gfx driver需求根據 directFb 官方 readme至少會需要 /dev/fb0 , /dev/tty0, /dev/psaux or /dev/mouseUsage Requirements------------------ Depending on the DirectFB application you

2022-04-21 12:12:39 221

原创 HTTPS streaming 傳輸 flv 檔案的最小實現

寫了一個用 https 傳輸FLV檔案的最小實現當作proof of concept

2021-10-28 17:24:36 1092

原创 Wireshark 將TLS (https) decrypt 並保存明文

使用 SSL/TLS 協議傳輸的封包在 handshake 之後以加密形式傳輸,即使wireshark 抓包也無法看到內容,本文介紹使TLS 封包解為明文的方法

2021-10-28 17:08:16 8972

原创 使用 wireshark 抓本地包

一般而言 windows 系統本地到本地ip 的傳輸不會經過網卡,因此無法由 wireshark 捕捉解析,本文介紹 wireshark 同步安裝 Npcap方式,藉此loopback本地ip 到 本地ip

2021-10-28 16:56:34 9691

原创 AAC 還原 pcm/WAV, faad 的已知問題填坑

年假在家研究一了一下流媒體,之前客戶需求要把mp4轉成h264+pcm 串流,紀錄一下文章目录前言FAAD (libfaad)的已知錯誤原碼Makefile 要怎樣include faadfaad example親測使用ffplay 播放前言libfaac 相信轉過aack格式的人都知道。他有一個對應的庫:libfaad,可用於將aac轉為pcm,windows , linux , macOS 都有offcial release,其他os 可能要交叉編譯就是了。WAV 檔實際上就是 wav head

2021-02-15 21:40:36 193

原创 http-flv 協議解析-wireshark 抓包

由於目前我從沒有找到 http-flv 協議的規格書之類的東西,僅藉由 nginx-http-flv範例中尋找規則,輔以wireshark 進行協議分析。下一篇文章,會進行最基本的實作:使用 HTTP-FLV 協議串流至flv.js文章目录結果說明環境stepsrun nginx-http-flv-moduleffmpeg push在接收端用 flv.js 打開抓包結果flv.js GET requestnginx-http-flv responsehttp-flv stream結果說明http-

2021-02-15 12:25:49 1370

原创 libmp4V2 初始化 MP4 Header

先前被客戶刁難要做出與上一個 OEM 一樣的MP4 header, 在此紀錄 libmp4v2 產生mp4 header的機制文章目录驗證工具AAC ESConfigurationaac obj typesample ratechannelexampleH264代碼銘謝驗證工具https://www.metadata2go.com這個網站可以解析MP4 header,提供如下資訊Furbo 2Compatible Brandsisom, mp41, mp42Handle

2021-02-05 14:18:45 546

原创 [抓包] wireshark 抓取RTP,播放/存檔語音碼流

Wireshark 其實可以播放rtsp 的聲音裸流不懂為什麼可以播audio 卻不能播video ????contentWireshark 其實可以播放rtsp 的聲音裸流使用環境步驟RTSP 抓包Wireshark 播放 audio輸出音頻裸流播放/解析音頻裸流使用環境環境版本說明WiresharkVersion 3.4.2 (v3.4.2-0-ga889cf1b1bf9) on windows 64 bit可能需要自行安裝audio codec dll plugin

2021-01-29 16:49:27 697

原创 [Audio]potplayer播放 G.711a or G.711mu 底躁問題

potplayer播放 音頻串流G.711a or G.711mu 的底躁音會忽大忽小現象環境版本windows 10potplayer201209 (1.7.21396) 64 bitpotplayer200204 (1.7.21126) 64 bit大約在播放前10秒很小聲,第10秒之後逐漸放大,大到某一個程度之後停止。wireshark 抓audio sample 也沒有振幅 (也就是音量)上的變化。與之相對 vlc 等其他也可以播放 g711a,

2021-01-29 13:31:29 801 1

原创 [抓包]使用 .lua 在wireshark dump HEVC 的二三事

怎樣安裝h265_export.lua總之順利的在wireshark 輸出h265流並保存到檔案了文章目录怎樣安裝h265_export.lua前言添加 lua 插件修改init.lua修改h265_export.lua添加h265_export.lua 到 init.lua 路徑wireshark encode 設置wireshark filterUDP decode as RTPRTP decode to H265Tool > lua > Export H265 to file [HQX

2021-01-28 13:29:42 465

原创 【python】UI/ function code seperated(ISP), TCP server receive multi client and send to a client

【python】UI/ function code seperated(ISP), multithread TCP server receive multi client and send to specific one client少少行數實現的python tcp-server,自愉自樂用 :)文章目录【python】UI/ function code seperated(ISP), multithread TCP server receive multi client and send to sp

2021-01-28 01:25:58 198

原创 Git: work flow of how a feature added to a branch

A workflow of how to add a feature in remote repository Git: work flow of how a feature added to a branchPULL REMOTE TO LOCALNEW FEATURE BRANCH FROM LOCALEDIT YOUR FEATURE BRANCH (ADD, COMMIT)LOCAL PULL REMOTEFEATURE MERGE TO LOCAL, ALSO FIX CONFLICTLOCAL

2021-01-28 01:12:09 84

原创 [linux]包裝 cpp檔案讓純c編譯器編譯

[linux]包裝 cpp檔案讓純c編譯器編譯文章目录[linux]包裝 cpp檔案讓純c編譯器編譯用詞說明架構圖狀況一:狀況二:步驟參考許多嵌入式平台只有純c 編譯器,或是因為code size 或執行效率等問題必須使用純c 編譯器,不能使用c++。然而許多原始碼是用c++撰寫,看了不能用很可惜,總不可能看到一個就自己用c實現一次吧 ?本文提供一方法將c++ 原始碼檔案可以用c編譯。一言以蔽之:**需要使用 c++ wrapper 的方式將 c++ files compile to shared

2021-01-27 16:56:44 93

原创 Linux環境變數作用域問題

一般嵌入式系統在OS 裡面會設置環境變量,至少有:LIB=/system/lib 之類的,但如果在其他bin 有如下代碼:...system("do-some-exec-or-some-shell-script");...是 不會 參考到環境變量的,因此如果關連到某些庫函數之類的就會執行失敗,因此要加上....system("export LIB=/system/lib); /*或其他的環境變量*/system("do-some-exec-or-some-shell-script");.

2021-01-27 16:32:04 61

原创 CMAKE 交叉編譯

CMAKE 交叉編譯文章目录CMAKE 交叉編譯前言CMAKE necessary filesCMakeList.txttoolchain.cmakeexample for arm-xxxx-linux platform步驟前言需要include open source 的時候,有兩種常見的cross compile 的設定方式:cmake 有公開標準,比較容易自行擴充到不同的平台上Makefile + configureCMAKE necessary filesCMakeList.txt

2021-01-27 15:02:55 372

原创 [http-flv]開發好用工具彙整

[http-flv]開發好用工具彙整文章目录[http-flv]開發好用工具彙整Players開發過程需要validator,時時確認驗證,本人親自開發rtmp-publisher與http-flv server 時使用。Players由於需兼容各家播放器,但其實每一家的播放器開發都離不開幾個open source,整理如下:項目名稱註解http-flv playerflv.jsrtmp player playerWOWZA test playergoogle

2021-01-27 14:52:34 100

原创 [ffmpeg] How to check a mp4 audio/video duration without re-encode

[ffmpeg] How to check a mp4 audio/video duration without re-encode文章目录[ffmpeg] How to check a mp4 audio/video duration without re-encodeCondition:download or build ffmpeg for Windowscopy target clips to ffmpeg folderconcatenateFor analyse frame informatio

2021-01-27 14:02:57 183

原创 我不是搬運工聲明

本人 agathakuan與 Blogger: Programming notes 作者 關佳德 是同一個人, 目前拓展發表平台,想在CSDN上發布文章,所以將原Blogger: Programming notes部分內容搬遷至CSDN agathakuan 的博客上。 未來會在google Blogger上發表同一內容英文版本、在CSDN上發表中文版本,文章內容均為本人所原創,引用他...

2018-09-11 09:56:01 151

原创 nRF52 fstorage (1):a simple example

There are few examples about SDK12, and that is the reason why I wrote this. the pstorage function(persistent storage)  of nRF5X has been changed as fstorage in SDK12. the APIs have been chan...

2018-09-11 09:50:24 1214

原创 nRF5X: prevent bootloader from erased after programming

Board : nRF52832_xxac / SDK11/s132  (but not only these have the problem) After add DFU service in application, we have to program bootloader. In nRFgo , the IROM must be look like this : ...

2018-09-11 09:49:26 206

原创 python 3 with serial :dynamic update /save MCU uart value with csv file

This article is an implement of: 1. dynamic update chart by matplotlib 2. raw data input by serial (COM port) 3. start/pause function for save value array 4. save as .csv format with system time...

2018-09-11 09:47:21 225

原创 nRF5x: how to use UICR as your signature

board: nRF52832_xxac_s132/ SDK11After developing a firmware, you can use UICR as a mark to use .because **UICR can not be erased by DFU-OTA**STEP 1copy file “uicr_config.h” at:C:\..\nRF5x_SD...

2018-09-11 09:45:08 863

原创 nRF52 avoid "DfuTarg": how to prevent from staying stuck in bootloader mode without starting the app

board: nRF52832_xxac_s132 nordic / SDK 11While you try to add DFU  OTA service and flash softdevice, application ,and bootloader to your nRF52 (by nRFgo or command line tools),  you might ...

2018-09-11 09:42:12 597

原创 J-Link as UART- Logging Output for nRF51/52

I use SEGGER RTT to replace UART logging .STEP 1.Download J-Link RTT Viewer and install it.Download the RTT library files from SEGGER site and unzip them into a folder of your BLE SDK:

2017-02-16 10:32:14 803

原创 nrf51822 secure DFU by OTA: How to Set Password in the DFU zip File

This article is to provide a security solution for DFU.My application is based on Heart rate Service ( s110 with dfu in Nordic SDK)C:\..\..\..\nRF51_SDK_10.0.0\nRF51_SDK_10.0.0_dc26b

2017-01-16 11:23:15 1886

原创 nRF51822 mergeHex 三合一量產用燒錄檔案

nRF51822 用 nRFgo studio 燒寫的時候需要三個 hex檔案,此三個hex可合併為一,用於量產較為方便,本篇介紹三合一hex檔案的製作方法

2017-01-16 11:15:12 3587

原创 nRF51822 空中升級 .zip壓縮/製作

nRF51822 支援固件空中升級(下稱OTA)服務,本篇說明如何製作升級用 .zip 檔案(關於什麼是DFU服務、如何添加,請參考以下)第一次實作,請按照step慢慢做完加速方法,請直接跳到 Step 5環境:蕊片:nRF51822EKbootloader: dual bank s110 bootloader

2017-01-16 11:08:39 542

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除