imaginevision / Z-Camera-Doc

Document for Z Camera
151 stars 47 forks source link

Undefined camera discovery for HTTP API #3

Open pizthewiz opened 9 years ago

pizthewiz commented 9 years ago

How would one go about discovering a camera when using the HTTP API? If BLE, could you provide the services, characteristics and sample response data?

ghost commented 9 years ago

Regarding the BLE, it provide some characteristics. Regarding HTTP API, I am not clear about what you mean.

------------------ Original ------------------ From: "pizthewiz"notifications@github.com; Date: Mon, Sep 21, 2015 09:26 AM To: "imaginevision/Z-Camera-Doc"Z-Camera-Doc@noreply.github.com;

Subject: [Z-Camera-Doc] Undefined camera discovery for HTTP API (#3)

How would one go about discovering a camera when using the HTTP API? If BLE, could you provide the services, characteristics and sample response data?

— Reply to this email directly or view it on GitHub.

pizthewiz commented 9 years ago

Sorry for the confusion, if I were using the Z Camera app, how does it find the camera to connect to when using Wi-Fi (which I assume uses the HTTP API) because it doesn't allow us to manually specify an IP.

pizthewiz commented 9 years ago

Perhaps it uses ZeroConf, if so what is the service name?

ghost commented 9 years ago

The camera is AP, so the smartphone need to connect to it directly use a fixed IP. For ZeroConf, it's suitable for STA.

------------------ Original ------------------ From: "pizthewiz"notifications@github.com; Date: Tue, Sep 22, 2015 03:20 AM To: "imaginevision/Z-Camera-Doc"Z-Camera-Doc@noreply.github.com; Cc: "eric"eric@imaginevision-tech.com; Subject: Re: [Z-Camera-Doc] Undefined camera discovery for HTTP API (#3)

Perhaps it uses ZeroConf, if so what is the service name?

— Reply to this email directly or view it on GitHub.

pizthewiz commented 9 years ago

Ahh, I hadn't realized that the camera was the access point when using the HTTP API, that might be worth mentioning in http.md.

In the future will there be any consideration for allowing the camera to join an existing network (usually via paired mobile app and BLE) so that the connecting client could have an active outgoing internet connection? In that case, ZeroConf could be a nice discovery mechanism.

pizthewiz commented 8 years ago

How is the camera discovered via BLE, does it advertise a specific service?

ghost commented 8 years ago

Well, I will update the info about BLE

pizthewiz commented 8 years ago

Thanks!

pizthewiz commented 8 years ago

Does the E1 use Wi-Fi Direct instead of being a full Access Point? I'm trying to sort out why clients connected to the camera cannot communicate with each other.

bragonznx commented 8 years ago

Hi Ailikeimg

Could you provide the BLE documentation. In fact i'm trying to find how to boot the camera via bluetooth I did some reverse engineering, but it'll be appreciate if you can share information.

I'm looking for the BLE packet we need to send to boot the camera :)

The reverse engineering i did could be see here : http://bragon.info/pub/btsnoop_hci.log You can open it with wireshark

q3o commented 6 years ago

Hi, anyone knows how I can connect the E1 to an existing network? I change to STA wifi mode and it say wifi "ivt" and connecting to some ip, but it doesnt really connect to anything nor does it give the choice to pick up an existing network or ask for password or anything? Any help? thanks