Main Site Documentation

Fez panda ii icmp


#1

Hi,
i try to send a icmp (ping) packet from my PandaII board using raw mode but the application lock

Can you help me?

Many thanks


#2

Not if you don’t post your code.


#3

raw is not supported, only UDP and TCP are supported.


#4

OK, thanks
in any way my (simple) code was:


            Socket pippo = new Socket(AddressFamily.InterNetwork, SocketType.Stream   , ProtocolType.Raw   );

            EndPoint pippo1 = new IPEndPoint(new IPAddress(new byte[] { 192, 168, 0, 63 }),-5 );
            byte[] mydata = { 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 30 };
            pippo.SendTo( mydata ,  pippo1);


Bye

Mauro


#5

Yes could be added in future if we see enough interest.

Note that you can complicate with W5100 chipset directly to send raw packets.


#6

OK, many thanks
exist sample for low level communication (or starting point ?)

thanks again


#7

I meant to say communicate not complicate! Stupid iphone spell check :slight_smile:

There are many examples code for W5100 all over the web. But mainly you need to understand the chipset internals so start by reading its datasheet.


#8

:smiley:
ok , thanks