bigdogguru
Administrator
- Joined
- Mar 12, 2010
- Messages
- 9,821
- Helped
- 2,350
- Reputation
- 4,694
- Reaction score
- 2,272
- Trophy points
- 1,413
- Location
- Southwest, USA
- Activity points
- 62,383
I can use ICD3 also with explorer 16 booard?
when you receive a UDP datagram or a TCP connecton you can get information regarding the source address, port, etc, e.g.java TCP when we have done a serverSocket.accept()Please i have two question :
1. in wireless Communicatin protocol 802.11, it was defined frame format ie the frame that containing specific FCS, Dest adress, source adress ... and the data transmitting to the receiver will be in the frame; My problem is that I 'm not understand how I can know the values of FCS, or it will be automatically calculated by the RN171 module and I can display the values of these variables?
System.out.println("Chat client connect from IP address " + socket.getInetAddress()
+ " port " + socket.getPort());
br = new ObjectInputStream( ( socket.getInputStream() ) );
pw = new ObjectOutputStream( socket.getOutputStream() );
TcpClient^ client = server->AcceptTcpClient();
s=(String::Format( "Remote client connected IP address {0} port {1}\n" ,IPAddress::Parse(dynamic_cast<IPEndPoint^>(client->Client->RemoteEndPoint)->Address->ToString())
,(dynamic_cast<IPEndPoint^>(client->Client->RemoteEndPoint)->Port)));
terminalTextBox->AppendText(s);
PCB stands for Printed circuit board - in this case you would probably have two the Explorer 16 PCB andd the RN171 Pictail PCB2. Another question about the PCB for example when I will using explores16 board so the PCB will be in my case the explorer 16? or what is the PCB please exactly?
thanks in advance
you need to run a server program on the PC - this can be written in C, C++, Java, etc
the RN171 then joins the local WiFi network, sets up the IP address and port and sends data
e.g. this sets up the network SSID and password, joins the network, sets up the IP (192.168.1.11) and port (999) that the server is listening on, exits command mode and sends a message
Code:set wlan host wifissid AOK <4.00> set wlan pass password AOK <4.00> join Auto-Assoc horace1 chan=1 mode=WPA2 SCAN OK <4.00> Joining horace1 now.. Associated! DHCP: Start DHCP in 2136ms, lease=86400s IF=UP DHCP=ON IP=192.168.1.17:888 NM=255.255.255.0 GW=192.168.1.1 set ip host 192.168.1.11 AOK <4.00> set ip remote 999 AOK <4.00> set ip local 888 AOK <4.00> exit EXIT hello UDP server
the server is waiting on UDP port 999 to receive data, e.g.
View attachment 110735
CMD
$$$
ERR: ?-Cmd
<4.00>
wifly_pass_thru_demo_exp16_p24...
version: 00.01
build date: Nov 27 2014
build time: 17:20:32
use a terminal emulator to communicate directly with the module...
(optional) press S4 on Explorer16 to reset WiFly to factory defaults...
wifly-EZX Ver 4.00.1, Apr 19 2013 11:47:16 on RN-171
MAC Addr=00:06:66:80:74:1b
*READY*
set wlan h abir
AOK
<4.00>
set wlan p ***********
AOK
<4.00>
join
Auto-Assoc roving1 chan=0 mode=NONE FAILED
<4.00>
Joining abir now..
ERR
set wlan h abir
set wlan ssid abir
set wlan host wifissid
AOK
<4.00>
set wlan pass password
AOK
<4.00>
join
Auto-Assoc horace1 chan=1 mode=WPA2 SCAN OK
<4.00>
Joining horace1 now..
Associated!
DHCP: Start
DHCP in 2136ms, lease=86400s
IF=UP
DHCP=ON
IP=192.168.1.17:888
NM=255.255.255.0
GW=192.168.1.1
set ip host 192.168.1.11
AOK
<4.00>
set ip remote 999
AOK
<4.00>
set ip local 888
AOK
<4.00>
exit
EXIT
set ip host 192.168.1.11
AOK
set ip protolcol 1
AOK
<4.00>
get ip
IF=DOWN
DHCP=ON
IP=192.168.1.17:888
NM=255.255.255.0
GW=192.168.1.1
HOST=192.168.1.11:999
PROTO=UDP,
MTU=1
FLAGS=0x7
TCPMODE=0x0
BACKUP=0.0.0.0
<4.00>
exit
EXIT
set wlan ssid abir
set wlan pass password
join
set ip protolcol 1
get ip
set ip host 172.21.0.9
set ip remote 999
set ip local 2000
exit
SCAN:Found 3
01,01,-69,02,1104,14,00,00:19:5b:42:d1:3a,horace1
02,01,-60,04,1104,18,00,58:98:35:28:56:7c,test
03,07,-78,00,2104,00,00,00:02:6f:bc:e5:85,Ferry
set ip host 172.21.0.9
CMD
scan
<2.45>
SCAN:Found 4
01,09,-78,00,2104,00,00,00:0b:86:c0:4b:60,abir
02,09,-77,08,3104,28,00,00:0b:86:c0:4b:61,edur
03,13,-77,00,2104,00,00,00:0b:86:c0:6f:00,abir
04,13,-77,08,3104,28,00,00:0b:86:c0:6f:01,edur
END:
<2.45> set wlan ssid abir
AOK
<2.45> set wlan p RhLDbP5
AOK
<2.45> join
Auto-Assoc abir chan=9 mode=OPEN SCAN OK
Joining abir now..
<2.45> Associated!
DHCP: Start
DHCP in 11811ms, lease=43200s
IF=UP
DHCP=ON
IP=172.21.185.255:2000
NM=255.255.0.0
GW=172.21.0.9
Listen on 2000
get ip
IF=UP
DHCP=ON
IP=172.21.185.255:2000
NM=255.255.0.0
GW=172.21.0.9
HOST=0.0.0.0:2000
PROTO=TCP,
MTU=1524
FLAGS=0x7
TCPMODE=0x0
BACKUP=0.0.0.0
<2.45> set ip protocol 1
ERR: ?-Cmd
<2.45> set ip protocol 1
AOK
<2.45> get i^p
IF=UP
DHCP=ON
IP=172.21.185.255:2000
NM=255.255.0.0
GW=172.21.0.9
HOST=0.0.0.0:2000
PROTO=UDP,
MTU=1524
FLAGS=0x7
TCPMODE=0x0
BACKUP=0.0.0.0
<2.45> Disconn from abir,LOST-AP
<2.45> get ip
IF=DOWN
DHCP=ON
IP=172.21.185.255:2000
NM=255.255.0.0
GW=172.21.0.9
HOST=0.0.0.0:2000
PROTO=UDP,
MTU=1524
FLAGS=0x7
TCPMODE=0x0
BACKUP=0.0.0.0
<2.45> set ip host 0.0.0.0
AOK
<2.45> set ip remote 999
AOK
<2.45> set ip local 2000
AOK
<2.45> exit
EXIT
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?