Hi,
I am bit confused; In "Smart Home Automation" demo, Which is acting as server and client?
Here smart Config is completing but socket related function have problem because i am struck in the loop saying "waiting for clients".
Regards.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
I am bit confused; In "Smart Home Automation" demo, Which is acting as server and client?
Here smart Config is completing but socket related function have problem because i am struck in the loop saying "waiting for clients".
Regards.
Hi Uma,
For the Home Automation demo, the Android app is the client and the CC3000 is the server.
Thanks,
Aaron
Hi Aaron,
Ok i got the point but I am not able to run the "Home Automation" demo.
Here LEDs 1 to 4 glow but LED5 not glowing and on my android device it continuously scan for CC3000 device when i press START.
Please help me to run the demo.
Thanks in advance.
Regards.
Hi Uma,
So its apparently connecting to AP, but not connecting to Android device. You should make sure you have flashed the FRAM with 1.11 patches and the Home Automation code itself. You should not have to run smart config more than just the one time, so just start the Android app, and then power on the FRAM and wait.
Regards,
Aaron
Hi Aaron,
Yes i have flashed fram with the latest patches and firmware and "home automation" demo.
At the hyperterminal i am getting these messages:
-------Press ENTER for terminal prompt--------
Home Automation App version: v1.1.6.11.10
Connected to: CDAC
CC3000 MAC: 0:25:ca:2:4:33
CC3000 IP: 192.168.1.104
Starting Server...
Server Initialized on port 3333
Waiting for Clients
Here my android device having "Home Automation" android application when open the application I cannot see cc3000 device connected ..
What may be wrong?
Please help in this regard.
No. What I wanted to check is if you open Console (for example https://play.google.com/store/apps/details?id=jackpal.androidterm) and type ping 192.168.1.104 there will be a response.
Ok so one potential issue is now out of the list of potential ones. The next question is if your router is blocking port 3333. Not sure hot to check it with CC3000. On Linux system I would check if I get handshake telneting that port. In your case it might be the best to check router settings (turn firewall off).
If the port is OK in router I am out of ideas.
Hope this will help,
Maciej
Hi Maciej,
I am using my office Access point or router I think i do not have permission to do so.. Is there any alternate means to check on this ? or do i need just to change the port to some number that is instead of 3333 is it ok to use like any numbers for eg.113?
If you use office router the port is most likely blocked (Contrary to popular opinion some IT guys are doing their job :) ). You should get separate router for development. If this is not possible you should contact your IT department to open some port for you to use.
Regards,
Maciej
HI Maciej,
addition to above thread i have other question
if we use this command "netstat -an -p udp for example:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\CDAC>netstat -an -p udp
Active Connections
Proto Local Address Foreign Address State
UDP 0.0.0.0:500 *:*
UDP 0.0.0.0:4500 *:*
UDP 0.0.0.0:5355 *:*
UDP 0.0.0.0:15000 *:*
UDP 0.0.0.0:58876 *:*
UDP 10.180.4.164:137 *:*
UDP 10.180.4.164:138 *:*
UDP 10.180.4.164:1900 *:*
UDP 10.180.4.164:55689 *:*
UDP 127.0.0.1:1900 *:*
UDP 127.0.0.1:55690 *:*
UDP 127.0.0.1:63593 *:*
UDP 127.0.0.1:63600 *:*
C:\Users\CDAC>
I get these listing. so which port we usually have to choose?
Uma,
Here is a list of ports and their assignments: http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers (please note that only some ports are fixed to specific service). The port is located in CC3000.
I highly recommend getting know network well before working with it. The knowledge is extensive but one needs to know some most common concepts (ex: TCP, UDP, socks, ftp, http, ip, ethernet ...).
Wikipedia is a good start as always: http://en.wikipedia.org/wiki/OSI_model
Regards,
Maciej