These are chat archives for esp8266/Arduino

27th
Nov 2015
brutzler
@brutzler
Nov 27 2015 03:34
ok, but not the loosing is what I am complaining. The IDE is not scanning active.
Me No Dev
@me-no-dev
Nov 27 2015 09:07
it is, just not after some time
Markus
@Links2004
Nov 27 2015 09:07
?
Me No Dev
@me-no-dev
Nov 27 2015 09:07
wrong keyboard.. :)
brutzler
@brutzler
Nov 27 2015 09:13
@me-no-dev: you are sure, that the IDE is scanning? I flashed my NodeMCU with a new IP. After this the Ethernet-port dissapeared. I waited one hour, and no new ethernet-port was shown in the port-Menu. After closing the IDE an restarting, the ethernet-port was shown, as expected.
Therefore it looks like there is always only a scan on starting the IDE, and not cyclic. Perhaps I will sniff a little bit with wireshark, to figure this out.
Or is this behaviour because I do not have a TCP-server running on port 8266. As discussed, I have only running a http-server (80).
But why does the IDE find the board on startup? Thats illogical....
Me No Dev
@me-no-dev
Nov 27 2015 09:31
I had some debug printouts while I was developing the OTA parg of the IDE and saw it scanning
brutzler
@brutzler
Nov 27 2015 09:34
ok, believe you, but I see different. Can you tell me at what time-lag the IDE is scanning?
Me No Dev
@me-no-dev
Nov 27 2015 09:34
it should be 2 minutes or so
I know it because I have changed board parameters and have seen them propagate to the IDE
brutzler
@brutzler
Nov 27 2015 09:35
And what is the IDE scanning for? a special port?
Helps me to setup the filter of Wireshark
Me No Dev
@me-no-dev
Nov 27 2015 09:35
IDE is using mDNS to discover devices that expose particular service
_arduino._tcp in out case
then gets all devices that andswer and goes from there
brutzler
@brutzler
Nov 27 2015 09:36
think I will have to learn a little bit about mDNS
Me No Dev
@me-no-dev
Nov 27 2015 09:36
the answer contains the IP of the dvice, the name and port
and I really need to buy a new keyboard
brutzler
@brutzler
Nov 27 2015 09:40
And for this its enough only to include the <ESP8266mDNS.h>?
I do not see any other specific call in the BasicOTA example
In the DNS_SD_Arduino_OTA there was
   MDNS.begin(host);
   MDNS.addService("arduino", "tcp", aport);
Me No Dev
@me-no-dev
Nov 27 2015 10:06
it's now inside ArduinoOTA itself
since it's required for OTA to run
so only the header is enough
call ArduinoOTA.setHostname("blah") before ArduinoOTA.begin() to change it
brutzler
@brutzler
Nov 27 2015 10:11
OK. I have seen there is no need for the header, because its already referred in the ArduinoOTA.cpp
Me No Dev
@me-no-dev
Nov 27 2015 10:11
it used to be required in order for the IDE to figure out which library to load
not sure if it's still the case
Markus
@Links2004
Nov 27 2015 10:13
only for >1.6.6 somewhere there they add dependency check for librarys
Me No Dev
@me-no-dev
Nov 27 2015 10:14
good to know
onkelfunny
@onkelfunny
Nov 27 2015 11:29

hi @all i have a problem with the eeprom.

  1. flash firmware with eprom.put
struct MyObject{
  float field1;
  byte field2;
  char name[10];
};

void setup() {
MyObject econfig = {
        3.14f,
        65,
        "Working!"
      };
EEPROM.put(0, config);

EEPROM.get(0, econfig);

    Serial.println( "Read custom object from EEPROM: " );
    Serial.println( econfig.field1 );
    Serial.println( econfig.field2 );
    Serial.println( econfig.name );
}
  1. flash firmware only with eprom.get
    ```
    struct MyObject{
    float field1;
    byte field2;
    char name[10];
    };

void setup() {
MyObject econfig;

EEPROM.get(0, econfig);

Serial.println( "Read custom object from EEPROM: " );
Serial.println( econfig.field1 );
Serial.println( econfig.field2 );
Serial.println( econfig.name );

}


The output is:

Read custom object from EEPROM:
0.00
0
```

onkelfunny
@onkelfunny
Nov 27 2015 11:41
I tried this examples:
  1. https://www.arduino.cc/en/Reference/EEPROMPut
  2. https://www.arduino.cc/en/Reference/EEPROMGet
    after the second flash the eprom is empty
onkelfunny
@onkelfunny
Nov 27 2015 11:55
with EEPROM.begin and EEPROM.commit everything works
Markus
@Links2004
Nov 27 2015 11:55
you always need EEPROM.begin and EEPROM.commit
Sven Eliasson
@comino
Nov 27 2015 12:58
Does someone else have issues with softAP? I used to work like a charm - now I can not connect with my laptop, but works still with my smartphone. Someone an idea?
(even with AP example)
(stable version it was working, now issues on some devices)
Markus
@Links2004
Nov 27 2015 13:11
may its linked to esp8266/Arduino@6be74ec
can you try latest git?
Sven Eliasson
@comino
Nov 27 2015 15:26
@Links2004 : Im running current github version - I will test with more devices. Maybe I can localize the issue. I used to work so smooth few weeks ago, so it cant be a big issue.
I = It*
Sven Eliasson
@comino
Nov 27 2015 15:44
Oh and - good job with the httpClient :)
onkelfunny
@onkelfunny
Nov 27 2015 16:43
@Links2004
is it possible to see wich library throws an error?
Exception (28):
epc1=0x4020c454 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

ctx: cont 
sp: 3fff07f0 end: 3fff0a10 offset: 01a0


>>>stack>>>
3fff0990:  00000001 00000002 3ffef78c 40208143  
3fff09a0:  00000001 3ffef78c 3ffef7a8 40207603  
3fff09b0:  3fffdc20 3ffef78c 3ffef78c 40207403  
3fff09c0:  3fffdc20 00000000 3ffef9d9 40207e0e  
3fff09d0:  3fffdc20 00000000 3ffef700 40207d13  
3fff09e0:  3fff1f38 00000000 40207c3c 40207bec  
3fff09f0:  3fffdc20 00000000 3ffef9d9 4020b35d  
3fff0a00:  00000000 00000000 3ffef9f0 40100114  
<<<stack<<<

 ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1264, room 16 
tail 0
chksum 0x42
csum 0x42
~ld
brutzler
@brutzler
Nov 27 2015 16:52
@me-no-dev or someone else: talking about mDNS scanning of the Arduino IDE. I let wireshark run (now for 15 min) in the background:
I see on starting of the IDE some Standard query 0x0000 PTR _arduino._tcp.local.... on Port 5353. And my ESP is answering as expected:
But after this there is no further mDNS Query any more :-(
I do not know, why you did see different behaviour on your system...
192.168.1.80    224.0.0.251    MDNS    5353    5353    79    Standard query 0x0000  PTR _arduino._tcp.local, "QM" question
IDE: 1.6.5
siedi
@siedi
Nov 27 2015 16:55
@brutzler same behavior with my IDE, it works only when restarting (1.6.5 AND 1.6.6)
brutzler
@brutzler
Nov 27 2015 17:08
another fellow sufferer. Makes things not better, but settles me down not to be alone.......
siedi
@siedi
Nov 27 2015 17:16
:-) I hardcoded my IP in the espota.py call in platform.txt so it is independent and I can keep Port to Serial
Another question: should function definitions decorated with the "ICACHE_FLASH_ATTR" macro as it is done in "native" development?
brutzler
@brutzler
Nov 27 2015 17:23
@me-no-dev : The only question for now is: What IDE do you use, cause of having a permanent rescan?
siedi
@siedi
Nov 27 2015 17:31
Espressif SDK 1.5 is out, any plans when to integrate it?
Markus
@Links2004
Nov 27 2015 17:59
@onkelfunny yes if you run
"$(XTENSA_TOOLS_ROOT)/xtensa-lx106-elf-objdump" -S $(PNAME).elf > obj.dump
you can look up the function name and from this the library.
@comino https://github.com/esp8266/Arduino/issues/1054#issuecomment-160180993 is that the same error then you have?
Sven Eliasson
@comino
Nov 27 2015 18:12
Yes kind of. With my laptop I can't connect - with any phone/tablet I tried (tried with 4 different co-workers phones) it works. And with other laptops (tested 3 other) it works too. I flashed a old firmware and there it works for my laptop too... So something must have changed my laptop / wifi controller doesnt like. I will try to wireshark what exactly happens ;).
onkelfunny
@onkelfunny
Nov 27 2015 18:27
@Links2004 thanks
brutzler
@brutzler
Nov 27 2015 21:22
Does anybody know, if there is a NTP-lib around? I only know the NTPClient.ino. But perhaps there is something easier to integrate, and releasing the udp-channel after getting the time infos.
siedi
@siedi
Nov 27 2015 21:24
@brutzler hrhr, I'm working on a sntp lib to work with the Time library from the Arduino project literally just now. Is that what you are looking for? If so, give me an hour and I put a first version on github
brutzler
@brutzler
Nov 27 2015 21:28
I "need" it for time controlled warmwater-heater. Want to keep a software-clock, sychronized via internet on startup and every x hours.
siedi
@siedi
Nov 27 2015 21:29
Actually it doesn't use a handmade udp call, expressif provides an sntp client, my library is just a wrapper for that so it can be used with the mentioned time lib
Markus
@Links2004
Nov 27 2015 21:29
the ESP has ntp support
siedi
@siedi
Nov 27 2015 21:29
@brutzler yeah, that should work, I'm running my wordclock with that
brutzler
@brutzler
Nov 27 2015 21:30
@Links2004: pls more info
oh too late
Is there any example how to use?
Markus
@Links2004
Nov 27 2015 21:31
basically the standard c time Interfaces are implemented
http://www.cplusplus.com/reference/ctime/
siedi
@siedi
Nov 27 2015 21:32
as said, give me a couple of minutes and I can release my library
or use that piece of code
brutzler
@brutzler
Nov 27 2015 21:36

Just trying to check the code:

int timezone = 3;
int dst = 0;
...
 configTime(3 * 3600, 0, "pool.ntp.org", "time.nist.gov");

Looks like first defined and then hardcoded? Am I right?

Markus
@Links2004
Nov 27 2015 21:37
yes, the code need some update it seams.
brutzler
@brutzler
Nov 27 2015 21:38
Where do I get infos about "configTime" parameters?
OK. Open the lib and read....
Markus
@Links2004
Nov 27 2015 21:39
void configTime(int timezone, int daylightOffset_sec, const char* server1, const char* server2, const char* server3);
brutzler
@brutzler
Nov 27 2015 21:40
daylight must be calculated manually?
Me No Dev
@me-no-dev
Nov 27 2015 21:40
@brutzler will have a look at it and prolly fix it once they accept my merge
I guess it's different on a mac maybe?
brutzler
@brutzler
Nov 27 2015 21:41
@me-no-dev I am working on w7/64
Me No Dev
@me-no-dev
Nov 27 2015 21:41
I'm on a Mac :)
we have mDNS as part of the OS, for windows there is bonjour
brutzler
@brutzler
Nov 27 2015 21:41
member of minority ..... LOL
as me :-)
Me No Dev
@me-no-dev
Nov 27 2015 21:42
we are all the same here :P
Markus
@Links2004
Nov 27 2015 21:42
bonjour is not needed for the arduino IDE, bonjour only needed for the browser for example
Me No Dev
@me-no-dev
Nov 27 2015 21:43
sure, what I meant was that maybe apple's mdns runs query more often
siedi
@siedi
Nov 27 2015 21:43
@me-no-dev I'm on Mac and have the same issue
brutzler
@brutzler
Nov 27 2015 21:44
but it should be initiated from the IDE, no matter what OS
Me No Dev
@me-no-dev
Nov 27 2015 21:44
@siedi I did not say I do not have it :) I say that I see the mDNS asked about it every 2 minutes
brutzler
@brutzler
Nov 27 2015 21:44
mac:ms$ -> 2:1
siedi
@siedi
Nov 27 2015 21:44
I was running an mdns browser to see if it is announced and it was, so it must be something with the IDE
Me No Dev
@me-no-dev
Nov 27 2015 21:44
wether it's requested by the OS or by the IDE I have no idea
Dmitry Kireev
@kireevco
Nov 27 2015 21:45
is there a stable and popular esp-arduino bridge protocol? something with good data structures and fail-safe?
I’ve seen some, and I’m not sure if they are used ...
Me No Dev
@me-no-dev
Nov 27 2015 21:45
I know for certain that there is a bug in the IDE, but was not sure up until now if it's only on mac or what
@kireevco you mean a protocol for communication between ESP and AVR Arduino?
Dmitry Kireev
@kireevco
Nov 27 2015 21:47
yep. well «protocol» is just a set of tested agreements
Me No Dev
@me-no-dev
Nov 27 2015 21:47
it's really up to you wether you want to use Serial, I2C or SPI
then the other stuff is also up to what you need
brutzler
@brutzler
Nov 27 2015 21:47
@all: just a thought back to sntp:
daylight must be calculated manually? or is there something ready to use?
Markus
@Links2004
Nov 27 2015 21:48
daylight is not used internally set it to 0 and it will work
Dmitry Kireev
@kireevco
Nov 27 2015 21:48
oh, i2c & spi - never though about it… is there anyone who maintains something ready-to-use… something like a class for arduino… initUARTEsp8266(PORT), startHttpServer() etc...
(@me-no-dev )
Me No Dev
@me-no-dev
Nov 27 2015 21:49
there really can't be anything ready to use, because the data requirements differs from project to project
I have done some packet apps and some stream ones
Dmitry Kireev
@kireevco
Nov 27 2015 21:50
@me-no-dev well, send/receive http data...
just a pass-through
with ArduinoJson integrated and such..
Me No Dev
@me-no-dev
Nov 27 2015 21:50
HTTP data has length
Dmitry Kireev
@kireevco
Nov 27 2015 21:50
I know, it is pretty trivial to implement. I was wondering if you know about someone who already did
Me No Dev
@me-no-dev
Nov 27 2015 21:51
AT example from espressif :)
it's a good example for serial communication
Dmitry Kireev
@kireevco
Nov 27 2015 21:51
well… yeah.
Me No Dev
@me-no-dev
Nov 27 2015 21:52
I can't really think of a way to wrap soch thing into something even close to universal
let me find another one
(that one is just ftdi)
(but also nice)
ah
@me-no-dev
I’ll probably use that one then
it is still under active developmetn
Me No Dev
@me-no-dev
Nov 27 2015 21:55
you should know that the UART is the slowest way of communication
Dmitry Kireev
@kireevco
Nov 27 2015 21:55
It just sounds that esp+arduino could be more power-saving solution
@me-no-dev what are the options? you would recommend spi probably?
Me No Dev
@me-no-dev
Nov 27 2015 21:56
i'm just preaching here :) but sending a webpage over Serial returns me back to the dial-up internet days
Dmitry Kireev
@kireevco
Nov 27 2015 21:56
@me-no-dev webpage is on esp flash
(should be)
in my scenario esp is just wifi and a webserver device that works when it is in the «ON» mode...
all other time it is off
(no power from arduino)
Me No Dev
@me-no-dev
Nov 27 2015 21:57
I started working on SPI Slave Stream class for both AVR and ESP but not done yet
then you can go 8Mbps
Dmitry Kireev
@kireevco
Nov 27 2015 21:57
spi would be great, of course
yeah, SDs are using SPI, I felt your incline :)
@me-no-dev do you think ESP can be used as a remote sleeping sensor device by itself? What’s the wakeup time with Arduino/esp8266? what’s the power consumption? (any estimates would be welcomed))
Me No Dev
@me-no-dev
Nov 27 2015 21:59
yes it can, wakeup time is the same as boot time
uses no power when asleep
startup has some options though
so there things varry a bit
Markus
@Links2004
Nov 27 2015 22:01
deep sleep need around 10uA
Me No Dev
@me-no-dev
Nov 27 2015 22:01
I saw some new functions in 1.4 (have not checked what we run currently) that you can use to stop the WiFi and use verry little power while mentaining operation
Markus
@Links2004
Nov 27 2015 22:01
SDK is at 1.3
1.4 make problems hope 1.5 will do better
Me No Dev
@me-no-dev
Nov 27 2015 22:02
yeah, I heard
slow loop as well
yeah, wififpm* functions are not in 1.3
#define FPM_SLEEP_MAX_TIME 0xFFFFFFF
wifi_station_disconnect();
wifi_set_opmode(NULL_MODE); // set WiFi mode to null mode
wifi_fpm_set_sleep_type(MODEM_SLEEP_T);
wifi_fpm_open();
wifi_fpm_do_sleep(FPM_SLEEP_MAX_TIME);
......
// wake up to use WiFi again 
wifi_fpm_do_wakeup(); 
wifi_fpm_close(); 
wifi_set_opmode(STATION_MODE); 
wifi_station_connect();
brutzler
@brutzler
Nov 27 2015 22:09
just one additional question to the time.ino:
there are two parts of the code. one in setup an one in loop.
Is the time in both parts picked from the ntp.server, or is it only read out from the internal clock?
Markus
@Links2004
Nov 27 2015 22:11
the ntp server is called periodically (in background) to keep the internal clock correct,
all time functions use the internal clock.
brutzler
@brutzler
Nov 27 2015 22:14
OK, set timezone to "1" for me to work (germany). But I am not sure, that daylight will be automatically?
Markus
@Links2004
Nov 27 2015 22:15
I use configTime(1 * 3600, 0, "192.168.1.12", "192.168.0.1"); and it working fin. also Germany :)
brutzler
@brutzler
Nov 27 2015 22:16
Using interal NTP?
Markus
@Links2004
Nov 27 2015 22:17
yup, they are in sync with the PTB atomic clock.
brutzler
@brutzler
Nov 27 2015 22:17
Router? or what device?
Markus
@Links2004
Nov 27 2015 22:18
one router with openwrt + RTC one linux server
server is master
brutzler
@brutzler
Nov 27 2015 22:19
will have a look, if my router makes ntp...
Markus
@Links2004
Nov 27 2015 22:19
a fritzbox have it integrate for example
brutzler
@brutzler
Nov 27 2015 22:20
Guess, what I have? ;-)
Markus
@Links2004
Nov 27 2015 22:20
yup fritzbox is common in germany
brutzler
@brutzler
Nov 27 2015 22:23
Just wanted to see this periodically update. Started wireshark, but I do not see any matching telegrams?
There is only one telegram on startup of the ESP:
10579    23:22:46.609658000    192.168.1.29    224.0.0.1    IGMPv2            60    Membership Report group 224.0.0.1
Markus
@Links2004
Nov 27 2015 22:24
periodically not meany minutes the internal clock is good.
brutzler
@brutzler
Nov 27 2015 22:25
Yes, but shouldn't be there a ntp-request on booting the chip?
Markus
@Links2004
Nov 27 2015 22:26
yes if configTime is called ther shut be one
if you add Serial.setDebugOutput(true); you will see the sync info
brutzler
@brutzler
Nov 27 2015 22:29

hmmmmm.... Code is working, I see the actual time in the console, but no telegram...
capturing filter is:

ip.src == 192.168.1.29|| ip.dst ==192.168.1.29

debug is on. what sync info do you expect?

I get this:
Connecting to WiFi
...scandone
state: 0 -> 2 (b0)
.state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 3
pm open phy_2,type:2 0 0
cnt 

connected with WLAN_xyz, channel 4
dhcp client start...
.ip:192.168.1.29,mask:255.255.255.0,gw:192.168.1.1

Waiting for time
please start sntp first !
.Fri Nov 27 23:29:28 2015
Markus
@Links2004
Nov 27 2015 22:31
looks like working :)
i get the date + time one time Fri Nov 27 23:31:22 2015
brutzler
@brutzler
Nov 27 2015 22:31
please start sntp first! Sounds not good
Markus
@Links2004
Nov 27 2015 22:32
i dont get this, i only have configTime in my code.
Only made changes regarding to my WiFi
Markus
@Links2004
Nov 27 2015 22:35
make sens based on the code.
in the first time call to check the time the time is not synced
brutzler
@brutzler
Nov 27 2015 22:36
???
Markus
@Links2004
Nov 27 2015 22:37
  while (!time(nullptr)) {
    Serial.print(".");
    delay(1000);
  }
the time call triggers the messages please start sntp first !
so basically the check if the sync is done is triggering the msg
brutzler
@brutzler
Nov 27 2015 22:38
OK, you think the stuff is working, but why do i get no telegram on wireshark?
Markus
@Links2004
Nov 27 2015 22:38
ther musst be one. will sniff my self.
brutzler
@brutzler
Nov 27 2015 22:39
arrrggg.....forget it. how to sniff WLAN?
Markus
@Links2004
Nov 27 2015 22:40
wireshark + (lowlevel driver or linux) , or use tcpdump at the router.
wireshark can decode wlan when you know the key.
Mario Mikočević
@mozgy
Nov 27 2015 22:41
I have RasPi on wlan for that :)
Markus
@Links2004
Nov 27 2015 22:42
openwrt on the router make it easy too, call tcpdump and you are done.
brutzler
@brutzler
Nov 27 2015 22:42
haha ... openwrt. Only a Fritz with AVM-OS
Markus
@Links2004
Nov 27 2015 22:43
yes hidden webinterface :)
brutzler
@brutzler
Nov 27 2015 22:43
more input pls
brutzler
@brutzler
Nov 27 2015 22:43
Raspi is somewhere around. Any Howto for this?
Markus
@Links2004
Nov 27 2015 22:44
no need use the url and you can capture as wireshark file
brutzler
@brutzler
Nov 27 2015 22:45
Fritz tells me: URL not found. Redirected to main page.....
Juppit
@Juppit
Nov 27 2015 22:46
Hi, the sntp makes an request on start, and about one hour later, nearly one hour. Then you see a new timestamp with Serial.setDebugOutput(true).
shut look like:
blob
brutzler
@brutzler
Nov 27 2015 22:46
ahh better... never seen this. will need some time to get it working
Markus
@Links2004
Nov 27 2015 22:47
press start an it will work ;)
brutzler
@brutzler
Nov 27 2015 22:48
haha ..... a lot of "START".
Markus
@Links2004
Nov 27 2015 22:48
wifi ?
brutzler
@brutzler
Nov 27 2015 22:49
still five ;-) AP or HW
Markus
@Links2004
Nov 27 2015 22:50
AP Schnittstelle 0
brutzler
@brutzler
Nov 27 2015 22:52
OK, working.
208    23:50:55.573213    192.168.1.29    192.168.1.1    NTP    4097    123    108    NTP Version 4, client
209    23:50:55.574151    192.168.1.1    192.168.1.29    NTP    123    4097    108    NTP Version 3, server
How can I post an image?
Markus
@Links2004
Nov 27 2015 22:54
C&P it in
will work for any file.
Dmitry Kireev
@kireevco
Nov 27 2015 22:55
@brutzler or upload it somewhere and post a link via markdown ![]()
C&P doesn’ work for me - mac client
brutzler
@brutzler
Nov 27 2015 22:56
Router.jpg
a little bit different to yours
Markus
@Links2004
Nov 27 2015 22:56
other fritzbox :)
brutzler
@brutzler
Nov 27 2015 22:57
I am sure. You have one with only 2,4GHz ?
Markus
@Links2004
Nov 27 2015 22:57
can make images of 5 different when i want, reinforced concrete ins´t good for wifi.
it was a 7270 5Ghz disabled
brutzler
@brutzler
Nov 27 2015 22:59
OK. using FritzBox nearly over 10 years, But never seen the capture possibility ....shocked....
Markus
@Links2004
Nov 27 2015 23:01
its not linked in the normal web interface, its a hidden debug feature.
you can capture all internet traffic with it, very useful for debugging IoT thinks and reverse engineering
brutzler
@brutzler
Nov 27 2015 23:01
What is the difference between "AP Schnittstelle 0" and "AP Schnittstelle 1"
Markus
@Links2004
Nov 27 2015 23:02
AP 1 is the "gast" wifi when aktive.
brutzler
@brutzler
Nov 27 2015 23:03
ok, needful background. Looks like I will have to search for a doc/howto regarding this feature, to complete my documentation
@Links2004 you earned a bear for your help. What part of D r u from?
Markus
@Links2004
Nov 27 2015 23:05
RP
Mario Mikočević
@mozgy
Nov 27 2015 23:06
bear ? oh my :)
brutzler
@brutzler
Nov 27 2015 23:06
Kölsch or Alt?
Markus
@Links2004
Nov 27 2015 23:06
Kölsch
brutzler
@brutzler
Nov 27 2015 23:07
BY ( Weissbier) :-)
@mozgy: how do you sniff with a RasPi?
Want to have a look at the other side too
brutzler
@brutzler
Nov 27 2015 23:13
Just found one of my RasPis with Wlan-Dongle. Should be enough hardware
Mario Mikočević
@mozgy
Nov 27 2015 23:13
WiFi USB dongle
brutzler
@brutzler
Nov 27 2015 23:23
Yes, have one (as i told). Any special software? Tshark, or....?
Mario Mikočević
@mozgy
Nov 27 2015 23:23
plain tcpdump
brutzler
@brutzler
Nov 27 2015 23:28
do I get an online dump with this? or do i have to dump into a file?
Hmmm....I like the gui and the filter possibility of wireshark. And it is "online" No need of dumping into a file.
Is there any äquivalent on Raspi for this?
And is it possible to sniff packages from different WiFi-modules? On normal LAN I use a switch with port mirroring to sniff "foreign" packages
brutzler
@brutzler
Nov 27 2015 23:37
Other idea: Use the WiFi Dongle on my W7-computer. looking for a driver to let wireshark work with the WiFi-interface. But is it possible to sniff all packages in the WLAN-network? Or only own telegrams. If I can not sniff the packages from my ESP, then the solution from Links2004 "capturing on the router" is the best (and only) way.
Markus
@Links2004
Nov 27 2015 23:39
in windows the drivers that give real low level access are rare, on linux its no problem.
"monitor mode" is the keyword