Dear friends,
I have a problem now, I am trying to combine spectrumwifi and lr-wpan to research inter-channel interference.
And now, my spectrumwifi is use adhoc-aloha-ideal-phy with MultiModelSpectrumChannel and MatrixPropagationLossModel by udp to transport.
When I create lr-wpan nodes with Ipv6 and sixlowpan to transport packet in udp.
uint16_t wsnport = 5000;
UdpServerHelper server2 (wsnport);
ApplicationContainer apps2 ;
apps2 = server2.Install (wsnnodes.Get (1));
apps2.Start (Seconds (0.0));
apps2.Stop (Seconds (5.0));
uint32_t MaxPacketSize2 = 127;
Time interPacketInterval2 = Seconds (0.01);
uint32_t maxPacketCount2 = 10;
UdpClientHelper client2 (serverAddress2, wsnport);
client2.SetAttribute ("MaxPackets", UintegerValue (maxPacketCount2));
client2.SetAttribute ("Interval", TimeValue (interPacketInterval2));
client2.SetAttribute ("PacketSize", UintegerValue (MaxPacketSize2));
apps2 = client2.Install (wsnnodes.Get (0));
apps2.Start (Seconds (0.0));
apps2.Stop (Seconds (5.0));
Although it would build successed, but sending me messages,"Error while sending 127 bytes to".
how can I resolve this problem?
please give me some suggestions, thanks.
Thanks
Regards
Chih-Mo Li