Closed kenthinson closed 4 years ago
Try ftp
Hi, I've used FTP before OK on a dafang. Maybe enabling swap would help?
If that fails, you can transfer just by using ssh e.g.
cat my-binary-file|ssh root@192.168.20.220 'cat - > /system/sdcard/my-binary-file'
(adjust names, paths as necessary)
Are you making a firmware for Dafang cameras to be able to connect to HomeKit natively, without a bridge? If so I’m very excited about that! If you need anyone to test your firmware I’m happy to!
@tonysprenk I am working on it when I have free time but I have very little free time.
I understand! Would you mind sharing the code that you have so far so I can maybe work on it myself?
@tonysprenk All I've done so far it work on getting the toolchain setup. I was able to get go to cross compile for mips(the architecture of the camera). I was able to compile a test hello world program and then run on the camera.
Things on my list.
If you want to help first step is getting the toolchain setup. Then go down the list.
Sounds very promising! Keep us updated please! And thanks for putting in the work, if you need me to test anything let me know!
Hello. I am working on using: https://github.com/brutella/hc To write a Homekit program for Dafang-Hacks.
His HomeKit Library is written in go. I have successfully compiled his library (mipsle) and gotten a basic Homekit program running on the camera and talking to my iPhone. However the process is very slow as whenever I make a change I have to remove the SD card and plug it into my computer. Do you have any advice for getting my binary to the camera? It seems to be a real lean system. no scp or rsync. I found ftpd however every time I connect the camera reboots. Thanks for any advice you might have.