I’m intending to implement IP/IPv6 on top of MACRAW for educational purposes.
Although there are good Application Notes for TCP/UDP there aren’t any for MACRAW.
Any chance you will publish such on the wiki or data sheet?
It so much better to have an official documentation then figuring it out by trial&error
We publish the PPPoE application on the wiki site in April 2014.
In this application note, we described the structure of PPPoE protocol implemented by MACRAW mode firmware.
Hello,
I’m dealing with MACRAW mode and have some difficulties with filtration of incomig packets. I set up MFEN in Sn_MR according to datasheet
[quote]If user wants to implement Hybrid TCP/IP stack, it is
recommended that this bit is set as „1‟ for reducing host overhead to
process the all received packets.[/quote]
but where to I must write info about MAC addresses to be passed? haven’t found in dosc… neither datashit, not app note
Hello Zick,
All I see about SHAR register is it configures the source hardware address. Could you explain a little bit more, what I should write there when I want to enter multicast group and when I want to receive all multicast packets. By now I don’t get any meaning of this reg in MACRAW mode
I didn’t try that myself so everything below is how I interpret the datasheet.
Write the MAC address into the SHAR. On the WIZ550io board there’s a sticker with a MAC address. If you don’t have the W550io board come with a valid address you like (e.g. 00:11:22:33:44:55).
Set MFEN
Then you’ll only get packets sent to 00:11:22:33:44:55 and FF:FF:FF:FF:FF:FF (broadcast).
Some strange stuff continues to happen.
Initializing socket in MACRAW mode like that:
setSHAR(enaddr);
setSn_MR(MACRAW_SOCK, Sn_MR_MULTI | Sn_MR_MACRAW);
setSn_CR(MACRAW_SOCK,Sn_CR_OPEN);
while(getSn_CR(MACRAW_SOCK));
while(getSn_SR(MACRAW_SOCK) == SOCK_CLOSED);
MAC-address in SHAR non-zero. But, suddenly I receive all packets in networks, even with destination addresses that non-multicast and not mine (checked with wireshark).
How can I receive only broadcast packets (FF:FF:FF:FF:FF:FF) and packets with my MAC in SHAR?
upd: Fighting this problem for a week, still receiving all packets in network by the MACRAW socket without any filtration. Tried all flags in Sn_MR. so is that normal that there is no filtering of incoming packets??
upd2: was wrong, all works fine, was confused by ipv6 multicast addresses.