Hello
In the meanwhile we succeeded to ping to our laser scanner from arduino. So we can connection between the two devices. Now we have to send a message to our laser scanner so that he start sending data to arduino. Does anybody have an idea how we can do that? The message that should be send is:
Request: sMN{SPC}LMCstopmeas
HEX string: 02 73 4D 4E 20 4C 4D 43 73 74 6F 70 6D 65 61 73 03
Ping code:
/*
Ping Example
This example repeatedly sends ICMP pings and sends the result over the serial port.
Circuit:
* Ethernet shield attached to pins 10, 11, 12, 13
created 30 Sep 2010
by Blake Foster
*/
#include <SPI.h>
#include <Ethernet.h>
#include <ICMPPing.h>
byte mac[] = {0x90, 0xA2, 0xDA, 0x0D, 0x21, 0x19}; // max address for ethernet shield
byte ip[] = { 169,254,228,218}; // ip address for ethernet shield
byte pingAddr[] = {169,254,228,219}; // ip address to ping
SOCKET pingSocket = 0;
char buffer [256];
void setup()
{
// start Ethernet
Ethernet.begin(mac, ip);
Serial.begin(9600);
}
void loop()
{
ICMPPing ping(pingSocket);
ping(4, pingAddr, buffer);
Serial.println(buffer);
delay(500);
}
thanks for reading