jielie

JieLi CTP

Some camera protocol used by the WiFi mode on the JieLi cameras.. At least for the AC520N (DV12) SDK.

Main source of information was the “iSDV Cam” android app (which is rather a hacked up version of JieLi’s camera app), link for which was in this camera. (both on a box and in the camera fw itself, as two QR codes for Android and iOS)

Back in 2019-2020..

Network stuff

CTP protocol

The data is transmitted via TCP socket.

Each command is encapsulated into a CTP packet, which has the following structure:

The IIII/CCCC/LLLL fields are written out in decimal, the length field indicates the length in bytes (characters)! e.g. CTP:0001 4777 0006 kagami is CTP ID 0001, Command 4777, data length 6: ‘kagami’.

If there is more than one packet is transmitted in a row, then it just follows the previous packet like so: CTP:0001 4777 0006 kagamiCTP:0001 8168 0009 JIELITECH: cmd 0001/4777/kagami, cmd 0001/8168/JIELITECH.

The parameters or the response is usually a set of numbers separated with spaces, e.g. CTP:0001 2606 0011 4777 32 641: 0001/2606 4777,32,641

CTP IDs

Commands

RT stream

The data is tramsitted via UDP socket.

1: audio, 2/4/5/6/7: video, 3: photo

TODO..