I am in the process of creating a very nice C# Winforms application, for controlling and viewing my two foscams.
One of the key things i would like very much to have, is the ability to search the network for cameras!
I know of the "IP Camera Tool" thats very quickly finds the cameras, but i have not been able to recreate it at all (and don't want third-party application).
After searching for days on the internet, i have found "some" documentation, but after many hours of trial and error, i am at a loss here..
The documentation uses UDP packets, you send a command, and the cameras respond back.
First off, i used wireshark to intercept the "IP Camera Tool"s send packet, and replicated it in C#, and the cameras DO respond, but the response does not make any sense, and when i try to intercept it with my application, i only get a small portion of the response, from only the first camera to respond (udp stopped listening)
If there is anyone out there with some knowledge and/or code snippets, i would be very grateful! :)
Documentation:
http://foscam.us/forum/download/file.php?id=522 (pdf)
I had written some code to send the response, but i just had a BSOD and the whole .cs file got screwed..
it was basicly just creating a UdpClient object and send a string that was converted so it mached up with this: 4d:4f:5f:49:00:00:00:00:00:00:00:00:00:00:00:04:00:00:00:04:00:00:00:00:00:00:01
and broadcast it on port 10000.
And then! udp.recive would start right after send, and intercept (the first part of the message only) :-/
Any pointers to listen for more than just the first part of a response, would be very helpful!
I made some nice screenshots of everything for this post, but as this is my first post here, i can't add the images :-/
Thankyou :)
Please let me know if there is any info i missed :)
Kind regards
Niels
Edit:
Links to images:
Documentation (Search_Req):
http://dl.nxsoft.dk/stackpics/doc_search_req.PNG
Documentation (Search_Response):
http://dl.nxsoft.dk/stackpics/doc_search_resp.PNG
Wireshark Output (IP Camera Tool):
http://dl.nxsoft.dk/stackpics/fs_ws_ipTool.PNG
Wireshark Output (Camera Response):
http://dl.nxsoft.dk/stackpics/fs_ws_cam.PNG
Related
Does anyone know if the Twilio api allows for the following use case? I can't find a good example in any of the documentation.
I call a number through Twilio where I expect to be placed on hold
Twilio recognizes that I am on hold and waits until someone picks up
When a human picks up, Twilio calls me and connects me to the call.
Essentially, I don't want to wait on hold!
PS: I found this but I don't think it's what I need. Anyone agree/disagree? https://www.twilio.com/docs/voice/answering-machine-detection
The challenge with this is the definition of "hold". Basically, you have an established call and you are waiting for a human to connect (while you wait in queue).
You need some logic to listen to the media portion of this existing call to identify utterances that sound similar to when an agent connects to a customer (vs. the on hold music and ads). However, the issue is the agent will probably say hello a few times and if you don't answer they will hang-up.
You could play back, please hold while I connect you to Nick but the agent may find that strange and may hang-up.
You could ask the agent to press any key (DTMF) to connect you to them but again, the agent may find that strange and hang-up (they expect the customer to be there when they get connected).
Anyway, for the stream processing, you would need to use something like Twilio Media Streams to fork the media to some processing logic for the voice stream and if that logic identifies patterns in the voice stream that appears to be the agent speaking, it would need to tell Twilio to call you back to connect you to that agent. The actual processing of the voice stream isn't something Twilio offers, you would need to use a service from a third party and at what expense, given it sounds like really long hold times.
So ultimately, not sure how realistic this would be. Maybe the most cost effective would be to have the agent press a key to reach you one they are connected to you.
Really, the contact center needs to have a callback option when an agent is available, which would do away with all this - that works really well.
Media Streams
How to transcribe live phone calls using Twilio Media Streams
I am looking to create a project where user A will stream audio and user B will receive it, I am not looking to upload the audio into a WebServer and then Download it. I have done quite a lot of research but I didn't come to a final design. I am asking for guides and not for you to design my application, where am I supposed to start with such a project?
I have a design in mind but not sure how feasible is it with IOS xamarin.
I would like to know your thoughts on this design.
User A will choose audio file from their playlist
Then I want to decode that audio into bits (Packets) and then send packets over to User B
User B will receive these packets and then encode them back to be an audio file
I am looking to achieve this using HTTP protocol. This is what I was able to get to. I am welcoming any ideas or guides as to where I should start with such a project.
P.S. I don't mind switching to swift/objective-C if it's not possible with Xamarin.
You can copy the voice transferring concept from the Internet calling concept. You will get the idea regarding how the voice is being transferred along with encryption and decryption of the packets.
You can get a little brief from here and here.
Once you can get the hang of it, you can easily switch with the audio files which you wants to play.
I have several IP cameras. I want to get their streaming video but using an additional server to centralize the cameras. This server should get the video stream from 2-5 cameras and then, deliver it again through a different url. thereby many streaming users wouldn't overload the IP cameras which can not hold a high number of viewers.
It the first time I'm facing video streaming that's why I'm a bit lost and I don't know where should I begin from. I've any restrictions about which protocol use, rtsp, http... I'm quite free about that.
I've found this project which looks like pretty similiar to my problem. Anyway, before going deeper in it, I would like to have the opinion of someone who has develop anything similar before. Any tip would be apreciated.
If I need to post this elsewhere let me know.
We have some old software thats being re-written, that uses a printerdriver to a propriatery printer.
I need to rewrite the software bypassing the print driver and go directly to the printer. I do have the specs for the printer communication, thats fine, but what Id like to do is monitor the communications to the printer to view its contents (from the existing software that Im re-writing) and compare it to the specs, and what I will be sending it for validation.
I have to make sure Im not missing anything.
Any ideas on how I might be able to accomplish this?
Thanks
To capture the traffic you have to basic options.
1. Use software
If you are using ethernet, you can use a program like WireShark or USBTrace to capture the packets that are being sent out. There are similar programs for USB.
2. Use hardware
Another option would be to use an external logic analyzer. It's basically a box that sits in-between the computer and the printer that captures all the data, then uses software to decode it. There are some inexpensive options available (USBEE, Bus Pirate, and Total Phase Beagle.
I own a USBEE and I've used it to debug a simple USB device. It works well enough for that. The software is a little clunky though.
I'm implementing software to casino auto-play. I'm using .NET technology and C# language.
The main problem is how to capture data from casino game (here is the link to the game http://www.bet-at-home.com/redirNetentCasino.aspx?game=lrblackjack2-3h&pff=True ). I have never been dealing with Flash so I don't know a lot about this technology.
Well, I know that In the game we have server and client. Server is sending data to client and client is responding. For example server is sending information about dealt cards. My question is it's possible to capture data sent by server to client, I quess it is?? I need to now what kind of card I'm receiving. This data is sent in readable format or is ciphered?? Could you give me some hints?
The second option is to use a screen capture.. but this is very slow method. What are you thinking??
Thank you for help.
Regards,
Pablo
There are a couple of things you can do to interpret data from the game. First, you can use CheatEngine which is mostly the choice of Flash game hackers. The following links will help you get started:
How to hack flash games with cheat engine 5.5How to Cheat and Hack Flash based Games
The above method will not work for server based games like the ones hosted on Facebook. So, your second choice is capturing the network traffic and see what you can gather to attain the required information. For capturing the network from C#, you can use Pcap.NET. But before you try to do it programmatically, you should try it doing using Fiddler, which gathers plethora of information for you whenever you surf a website or when a plugin like Flash makes use of web.Get Fiddler and GL !