Author Topic: Generate WLAN traffic under Linux for EMC measurements  (Read 1968 times)

0 Members and 1 Guest are viewing this topic.

Offline davorinTopic starter

  • Supporter
  • ****
  • Posts: 922
  • Country: ch
Generate WLAN traffic under Linux for EMC measurements
« on: December 02, 2015, 01:48:30 pm »
Hello

Has someone a good idea how I could generate traffic on an embedded Linux platform with built-in WLAN adapter?

There can't be another WLAN adapter where traffic is going through....just send out in the air (o;

 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 26906
  • Country: nl
    • NCT Developments
Re: Generate WLAN traffic under Linux for EMC measurements
« Reply #1 on: December 02, 2015, 04:29:55 pm »
A static IP address for the WLAN adapter and ping. As root you can set the rate and payload of pings.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline Karel

  • Super Contributor
  • ***
  • Posts: 2217
  • Country: 00
Re: Generate WLAN traffic under Linux for EMC measurements
« Reply #2 on: December 02, 2015, 04:42:44 pm »
Indeed, ping is the simplest solution. Do a "man ping" for details.

For example: ping -s 800 -i 0.2

Only root can set interval less than 0.2 seconds. As root you can also use the -f option (flood).


 

Offline davorinTopic starter

  • Supporter
  • ****
  • Posts: 922
  • Country: ch
Re: Generate WLAN traffic under Linux for EMC measurements
« Reply #3 on: December 02, 2015, 04:43:25 pm »
Well I'm not sure if there will be traffic if the WLAN adapter isn't connected to an AP...
 

Offline moya034

  • Regular Contributor
  • *
  • Posts: 84
  • Country: us
  • Former Welder, IT guy, and Ham Radio Junkie
Re: Generate WLAN traffic under Linux for EMC measurements
« Reply #4 on: December 02, 2015, 04:47:10 pm »
Well I'm not sure if there will be traffic if the WLAN adapter isn't connected to an AP...
If you have it in ad-hoc mode, perhaps there is a setting to decrease the interval where it announces it's presence to the rest of the world.
 

Offline mich41

  • Regular Contributor
  • *
  • Posts: 60
  • Country: 00
Re: Generate WLAN traffic under Linux for EMC measurements
« Reply #5 on: December 03, 2015, 08:06:37 pm »
I think ping in ad-hoc mode may work, provided that you add a static arp entry for the address being pinged.

Another option - start hostapd if AP mode is available. This will broadcast beacon frames and will be usable with ping.

If monitor mode is available, you can also try some of those various tools which employ frame injection.

EDIT:
And of course I'm stupid, because the easiest way is to trigger scanning, which typically is active and sends a bunch of probe packets. I think requesting association with some unavailable SSID also sends a few probe packets for this SSID before giving up.
« Last Edit: December 03, 2015, 08:24:14 pm by mich41 »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf