Yes. I updated the wi-fi shield firmware.
Firmware version is 1.1 now.

But it is not working.

Samsung S/W Membership Software Developer
Sungkyunkwan Univ. Computer Engineering 08
B.E.S.T. House Team & Side Of House 
Jake Kim

-----Original Message-----
From: "Naga Ashok Babu Jampani"<[email protected]> 
To: "Madan Kanth Lanka"<lanka.madan at samsung.com>; "???"<copy_x at 
naver.com>; "IoTivity"<iotivity-dev at lists.iotivity.org>; 
Cc: 
Sent: 2015-10-26 (?) 10:31:30
Subject: Re: Re: [dev] Arduino unicast is not working.









Hi Jake,

Have you updated the wifi shield firmware?

Best Regards,

Ashok JN



------- Original Message -------

Sender : Madan Kanth Lanka<lanka.madan at samsung.com> S5/Senior 
Engineer/IoT Lab./Samsung Electronics

Date : Oct 26, 2015 10:21 (GMT+09:00)

Title : Re: [dev] Arduino unicast is not working.






Hi Jake,



As mentioned by Ashok in his email reply to you, Arduino WiFi shield has few 
limitations.



Arduino WiFi shield will always respond from a port number 4097 even if the 
mulicast server is running on a different port. 

So, when using Arduino WiFi shield, after discovery, ignore the port response 
received in discovery response and send a unicast request with 55555 port 
number.



Example GET URI with default unicast port number 

"IP:55555/uri" -> "112.108.39.218:55555/a/light"



In your example, case 1 looks fine. However, case 2 the port number has to be 
55555 (instead of 4097)



Regarding the documentation or WiFi shield issues, I found a JIRA issue 
reported already in JIRA for the instructions update, but not sure about the 
progress.

https://jira.iotivity.org/browse/IOT-483



Thanks,

Madan

------- Original Message -------

Sender : ???<copy_x at naver.com>

Date : Oct 25, 2015 00:42 (GMT+09:00)

Title : [dev] Arduino unicast is not working.






Hello, all.



I heard that Arduino(mega + Wi-Fi Shield) can't get data through multicast.

So I tried to communicate Arduino and Linux(C++ SDK) using unicast.

Below code is that.



Base code is <iotivity>/resource/examples/simpleclient.cpp and 
<iotivity>/resource/csdk/stack/samples/arduino/SimpleClientServer/ocserver/ocserver.cpp

Version of Wi-Fi shield is 1.1.

I upgraded it.



1. using findResource function with IP + Port

   requestURI << OC_RSRVD_WELL_KNOWN_URI << "?rt=core.light";

        OCPlatform::findResource("112.108.39.218:55555", requestURI.str(),

                CT_DEFAULT, &foundResource);

        std::cout<< "Finding Resource... " <<std::endl;



2. using constructResourceObject function with IP

        std::vector<std::string> resourceTypes;

        resourceTypes.push_back("core.light");

        std::vector<std::string> interfaces;

        interfaces.push_back(DEFAULT_INTERFACE);

        OCResource::Ptr resource = 
OCPlatform::constructResourceObject("coap://112.108.39.218:4097", "/a/light", 
CT_DEFAULT, true, resourceTypes, interfaces);



Both code are not working.

First code can find resource, but GET command is not working.

Second is also not working on same part(GET)



I want to know the reason why it is not working.

And How to solve it.

Or the other way to communicate between Arduino(mega + wi-fi) and Others(Linux, 
Android)



Samsung S/W Membership Software Developer
Sungkyunkwan Univ. Computer Engineering 08
B.E.S.T. House Team & Side Of House 
Jake Kim











-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20151026/1ff24052/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 201510261031844_Z5JE7EUA.gif
Type: image/gif
Size: 13168 bytes
Desc: not available
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20151026/1ff24052/attachment.gif>

Reply via email to