Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to decode chuangmi.camera.ipc013d pcap file #1949

Open
suvl opened this issue Jul 9, 2024 · 2 comments
Open

Unable to decode chuangmi.camera.ipc013d pcap file #1949

suvl opened this issue Jul 9, 2024 · 2 comments

Comments

@suvl
Copy link

suvl commented Jul 9, 2024

So I'm trying to decode the protocol for chuangmi.camera.ipc013d oldie camera, but the pcap is not being decoded.

I can get some data from the camera, like for instance (via xiaomi_miiot.get_token in home assistant):

list:
  - did: "322567174"
    name: Video camera
    host: 192.168.1.183
    model: chuangmi.camera.ipc013d
    token: ___REDACTED___
    miio_cmd: >-
      miiocli device --ip 192.168.1.183 --token ___REDACTED___ info
    miio_info:
      life: 3359
      model: chuangmi.camera.ipc013d
      token: ___REDACTED___
      ipflag: 1
      miio_ver: 0.0.9
      uptime: 3368
      mac: 64:90:C1:23:F7:E9
      fw_ver: 4.3.4_0509
      hw_ver: Linux
      bootloader_ver: a97a650aea304f0d2b08da11cab16439
      miio_client_ver: 4.3.4
      VmPeak: 7140
      VmSize: 6468
      VmRSS: 1716
      MemFree: 760
      ap:
        ssid: ___REDACTED___
        bssid: ___REDACTED___
        rssi: "-41"
        freq: 2472
      netif:
        localIp: 192.168.1.183
        mask: 255.255.255.0
        gw: 192.168.1.1
      miio_times:
        - 3358
        - 282
        - 0
        - 3074

But when I run

miiocli devtools parse-pcap ~/Downloads/camera.pcap __REDACTED__

nothing shows up.

My plan is to try and reverse engineer the video URL and try to make it work with https://github.com/miguelangel-nubla/videoP2Proxy because I'm mad switching from home assitant to Mi app just to see the cameras.

@suvl suvl added the new device label Jul 9, 2024
@suvl suvl changed the title Trying to decode chuangmi.camera.ipc013d Unable to decode chuangmi.camera.ipc013d pcap file Jul 9, 2024
@rytilahti
Copy link
Owner

It could also be that the camera itself is controlled using some other way. Have you looked into the pcap file to see if there are any relevant packets? 54321/udp is the used port.

@suvl
Copy link
Author

suvl commented Jul 11, 2024

Nope, nothing's talking to 54321/udp. I have many UDP packets going into [23964-23970]/udp

image

this goes on for a while, and then finally a TCP session is estabilished and the video starts playing in the app.

image

edit: .125 is my mac and .183 is the camera.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants