05-18-2015 11:04 PM
05-18-2015 11:28 PM
What if I do not want extra component , just the arduino yun itself.
05-18-2015 11:33 PM
05-19-2015 01:02 AM
Oh so sorry . Right now I am using Yun's network . I am trying to communicate with my computer labview(client) to my yun (server). I tried to communicate using TCP/IP but no data was recieved nor sent out.Here below is what I have done . Please guide me on where am I wrong.
Here is the code I used for my yun
i change it a little from the example
#include <SPI.h>
#include <Ethernet.h>
#include<Console.h>
// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network.
// gateway and subnet are optional:
byte mac[] = {
0x90, 0xA2, 0XDA , 0XF0 , 0X24 , 0X23
};
IPAddress ip(192, 168, 240, 117);
EthernetServer server(3477);
boolean alreadyConnected = false; // whether or not the client was connected previously
void setup() {
// initialize the ethernet device
Ethernet.begin(mac, ip);
// start listening for clients
server.begin();
Bridge.begin(); // Initialize Bridge
Console.begin();
// Open serial communications and wait for port to open:
while (!Console);
Console.print("Chat server address:");
Console.println(Ethernet.localIP());
}
void loop() {
// wait for a new client:
EthernetClient client = server.available();
// when the client sends the first byte, say hello:
if (client) {
if (!alreadyConnected) {
// clead out the input buffer:
client.flush();
Console.println("HI");
client.println("Hello, client!");
alreadyConnected = true;
}
if (client.available() > 0) {
// read the bytes incoming from the client:
char thisChar = client.read();
// echo the bytes back to the client:
server.write(thisChar);
// echo the bytes to the server as well:
Console.write(thisChar);
}
}
}
I am unable to send nor receive . HELPP!!
05-19-2015 01:10 AM
FYI .I am getting error 63 on my labview. Unable to send out data to my arduino.
12-17-2015 02:05 AM
How do you success of using it at the end?
12-27-2015 01:25 AM
How do you success of using it at the end?
03-06-2016 12:28 AM