I did put a post in the updates and questions section, but i also thought it might sit here also, is the WiFi Peer to Peer manager going to be implemented into a library soon? or can the reflector be used to get this info.
I have been asked to develop and app that connects to a serial-to-WiFi adaptor, this adaptor sets up an adhoc network, i need to be able to connect to the network and then listen to an ip address and port. My app just needs to receive the data.
If i cant get this sorted the company will go off and use iPads for the task as they work fine with adhoc networks
i just cant understand why google would not have it as standard when you search for a network. :BangHead:
It seems like these classes are only needed to programmatically create a connection. Once the connection has made you can use the standard sockets to communicate. That means that if you can make the connection step manually then you can communicate with this device with the Network library.
On my samsung G3 and my wifes HTC wildfire, they dont see ADHOC networks, thus i cant connect to it. I only found this out last night as i powered up the converter and saw the network on my laptop, and my daughter saw it on her iPhone, but i didn't see any SSID on my phone or the wifes (both android), looking on the net Android apparantly filter the ADHOC networks from being displayed, unless you have a rooted device.
I might have to look for another way to do this or show the company how to root their android tablets so that the ADHOC networks show in the WiFi list.
The Manual for the Serial to Wifi adaptor doesn't give alot of information appart from :
The unit creates an ad-hoc network which enables another device to connect to it and share data.
To set up the WiFi connection is a two stage operation, firstly the WiFi device such as a smart phone ot PC must be on the same network, and secondly it needs to be connected to the program that you are using.
ith the unit powered on and connected to your serial equipment scan for wireless networks on the device you wish to connect to. This procedure will vary between devices so consult the user manual of the device you are using.
The device will show on WIFI networks in range. On the list you will see a network with the name "SERIAL-TO-WIFI". Connect to this network as per your devices instructions.
Once connected you need to run the application that accepts Serial over TCP/IP, configure the application to listen on:
IP Address 169.254.1.1 Port 2000
The green STATUS LED should be on constantly to confirm a connection has been made.
What i might look at doing is having the unit connect to a wireless router and then the tablet connect to the router as AP. not sure if this will work but i can try (i really dont want them using iPads )
I emailed the company who make the serial to WiFi device and they are going to produce a unit that sets up an Access Point instead of ad-hoc network, hopefully this will work ok with android
Hi I think I have your same issue with the same connector, there is an ad-hoc connection now but still android is not able to find the device when scanning.
Thanks
The only solution is to root the device and install third party drivers as Android does find all networks, it just filters out the AD-HOC networks (for some strange reason, not sure why google did this).
i couldn't do anything, but the company i am working for found another product that transmits the data over a normal network.