Is it possible to establish a peer to peer connection with an external camera that is wiffi enabled ?
What framework should I use?
Is it possible to establish a peer to peer connection with an external camera that is wiffi enabled ?
What framework should I use?
Hi Luciane,
What do you mean by a WiFi-enabled camera? Like a WiFi-enabled DSLR or something, communicating with a mobile device?
Brent
Hi Brent,
an external camera that has Wi-Fi built-in and creates its own network that the phone connects to. Then the iPhone controls it via app, in a peer to peer connection where only the two devices are connected. Not one in which both are connected to a wiFi network. There some cameras that already do this and even a drone (http://ardrone2.parrot.com/). I want to know if/how I can build an app with corona to access such camera. And what apis/plugins I need for that. This is somewhat new territory for me, so maybe it is something obvious but I am not seeing it.
Hi Luciane. Corona supports peer-to-peer networking but at a very low level. You can open sockets, listen to sockets and transmit data over those sockets using either TCP or UDP protocols. Without knowing anything more about the device in question it’s hard to answer anything more. Some things open the ports and transmit well defined data like HTTP for web services, FTP For file transfers, SMTP and POP3 for email while other things are very binary and may use a completely unique and proprietary protocol.
Looking at the Parrot drone, they offer an iOS based SDK that you should be able to use with Corona Enterprise. Other devices may also offer SDK’s for accessing them. Some may offer the equivalent to SMB (windows based networking) file system mounts to transfer image files, other could be based around FTP or HTTP.
If it’s FTP, there is a module in the community code that lets you use FTP to transfer files. If it uses HTTP, then you can probably use our network.request() API. Anything lower level, you will need to use the Luasocket implementation and try to figure out the device protocol. Or if you need, use Enterprise and provided SDKs.
Rob
Take a look at this set up http://www.usa.canon.com/cusa/consumer/standard_display/EOS_app
is it possible to make an app with corona that controls a camera like the app on this one does?
The idea is to pair up the camera with the phone via peer to peer wi-fi; which I am sure this one is doing.
It looks like the Canon camera can operate either in FTP mode where it drops files on an FTP server (and you could in theory have an app act like an FTP server) or it can put the camera in to a mode where it acts like a web server, in which case our network.request()/network.download() should work. However camera control seemed unclear. Canon offers an SDK as well that you can apply to be a developer for. The first two you can do with Corona SDK if you need to use their proprietary SDK libraries then you will need Enterprise.
Hi Luciane,
What do you mean by a WiFi-enabled camera? Like a WiFi-enabled DSLR or something, communicating with a mobile device?
Brent
Hi Brent,
an external camera that has Wi-Fi built-in and creates its own network that the phone connects to. Then the iPhone controls it via app, in a peer to peer connection where only the two devices are connected. Not one in which both are connected to a wiFi network. There some cameras that already do this and even a drone (http://ardrone2.parrot.com/). I want to know if/how I can build an app with corona to access such camera. And what apis/plugins I need for that. This is somewhat new territory for me, so maybe it is something obvious but I am not seeing it.
Hi Luciane. Corona supports peer-to-peer networking but at a very low level. You can open sockets, listen to sockets and transmit data over those sockets using either TCP or UDP protocols. Without knowing anything more about the device in question it’s hard to answer anything more. Some things open the ports and transmit well defined data like HTTP for web services, FTP For file transfers, SMTP and POP3 for email while other things are very binary and may use a completely unique and proprietary protocol.
Looking at the Parrot drone, they offer an iOS based SDK that you should be able to use with Corona Enterprise. Other devices may also offer SDK’s for accessing them. Some may offer the equivalent to SMB (windows based networking) file system mounts to transfer image files, other could be based around FTP or HTTP.
If it’s FTP, there is a module in the community code that lets you use FTP to transfer files. If it uses HTTP, then you can probably use our network.request() API. Anything lower level, you will need to use the Luasocket implementation and try to figure out the device protocol. Or if you need, use Enterprise and provided SDKs.
Rob
Take a look at this set up http://www.usa.canon.com/cusa/consumer/standard_display/EOS_app
is it possible to make an app with corona that controls a camera like the app on this one does?
The idea is to pair up the camera with the phone via peer to peer wi-fi; which I am sure this one is doing.
It looks like the Canon camera can operate either in FTP mode where it drops files on an FTP server (and you could in theory have an app act like an FTP server) or it can put the camera in to a mode where it acts like a web server, in which case our network.request()/network.download() should work. However camera control seemed unclear. Canon offers an SDK as well that you can apply to be a developer for. The first two you can do with Corona SDK if you need to use their proprietary SDK libraries then you will need Enterprise.
hi! is there a way to retrieve info from current wifi connected?
and retrieve list of available wifi?
Not within Corona SDK. You would need to use Corona Enterprise and access those features in native land.
Rob
Thank Rob!
hi! is there a way to retrieve info from current wifi connected?
and retrieve list of available wifi?
Not within Corona SDK. You would need to use Corona Enterprise and access those features in native land.
Rob
Thank Rob!