Open happytm opened 6 years ago
Hey there, @happytm!
I'd be glad to help.
To answer your questions:
I believe so. I think you will need to make sure you are using both byte zero from the upper table as well as byte one from any of the lower tables to make sure it works, so as long as you provide two byte command codes, I think it should work.
As of right now, the Android app doesn't actually work. For some reason, I cannot get React Native to interact with the API, even when I'm connected to the NodeMCU wifi network. I'm guessing there's some security layer there that is messing with that, but I'm not totally sure yet. If it did work, however, it would need no modifications, as all the changes would be on the NodeMCU side. You would just need to replace the command codes with the Sony ones and then the app should function normally.
I would imagine it is. This blog post describes how to get .ino files running on your Pi
Let me know if there is anything I can do to help.
Hi ,
Thanks for your quick reply.I think it will be fair to give you some background of my project. Right now I am using following for my project :
Elmo PTC-100S Camera - https://www.bhphotovideo.com/c/product/250457-REG/Elmo_9718_2_PTC_100S_1_4_Inch_CCD_Color.html - this camera is very impressive for it's zoom.it uses Sony's Visca protocol but it was easy to control with built in IR receiver. I am using following code in python with LIRC to control it :
from flask import Flask, render_template, request from os import curdir import subprocess
app = Flask(name)
@app.route("/") def main(): templateData = {} return render_template('remote.html', **templateData)
@app.route('/send/
command.append('Elmo_PRC-100S')
else:
command.append('Sony')
command.append(button)
command = " ".join(command)
templateData = {'button':button}
subprocess.call(command, shell=True)
return "{} - OK".format(button)
if name == "main": print(curdir) app.run(host='0.0.0.0', port=8082, debug=True)
As you can see the code above serve remote.html page at localhost:8082 code for which is below :
I like this setup for it's simplicity by copying 2 files ( no install,compile or config) and was hoping to see if you can port your code to python (possibly adding code to same 2 files above) thereby eliminating nodemcu. I have to use Raspberry Pi to capture and stream video which I do using EasyCap capture card and uv4l driver from https://www.linux-projects.org/uv4l/ .
Everything works nicely with above setup but now I want to add Sony CDR-SX85 camcorder to increase the zoom range.I live in very small town in Vermont and we are surrounded by beautiful mountains and it is fun to watch live PTZ camera and capture timelapse images. My Plan is to add both cameras on same Pan/Tilt platform. It is shame that Sony do not have IR receivers on their camcorder which cost very little additional cost to implement.
By the way I realize your town is famous for this : https://www.youtube.com/watch?v=N6QOZGgbj-g
I am following Gary's projects for long time.
Please feel free to advice in my project.
Thanks Ken
Hi,
I have been searching web for remote web control solution for my Sony SX85 camcorder and I can find only your project. From what I understand you have put great effort in creating this project and for that I thank you very much.I am not programmer but I can understand your code.Now I will try to implement this code for my particular camera but I am waiting for a D type plug for my lanc interface.I will have to make circuit based on sample circuit you provided for my type of connector. I am interested in only Rec On/Off, Zoom In/Out & mode change for Photo/Video.This is auto focus camera so I do not want to control Iris or focus manually.The plan is to use camera on top of the building on Pan/Tilt plaform so remote web control is very important.
Please help me Thanks Ken