[ell-i-developers] Re: CoAP testing (was Re: Status report: Also CoAP works in real hardware. Please test.)

  • From: Eero Hakala <eero.k.hakala@xxxxxxxxx>
  • To: ell-i-developers <ell-i-developers@xxxxxxxxxxxxx>
  • Date: Tue, 18 Mar 2014 10:02:22 +0200

Hi, after some interesting times I got this up and running, but there is
some problem with the IDE, after I updated compiler to 2013 version, I got
rid of the c++11 flag error, now it is missing path to include the
inc-directory where system_init.h file is... I could not figure out where
on platform.txt the include path information is set up!?

But the make file based environment works like charm (after I corrected a
naming typo and because there are more references to spiAPI.h...):

libraries/SPI/SPIClass.h:#include <spiApi.h>
libraries/SPI/SPIClass.h:#include <spiAPI.h>

this is tcpdump from (firefox)copper-dialog:
tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 5683
bytes
09:34:48.281219 IP (tos 0x0, ttl 64, id 45942, offset 0, flags [DF], proto
UDP (17), length 32)
    10.0.0.1.44327 > 10.0.0.2.5683: [udp sum ok] UDP, length 4
0x0000:  4500 0020 b376 4000 4011 7354 0a00 0001  E....v@.@.sT....
0x0010:  0a00 0002 ad27 1633 000c 2106 4000 c772  .....'.3..!.@..r
09:34:48.282026 IP (tos 0x0, ttl 64, id 3328, offset 0, flags [DF], proto
UDP (17), length 32)
    10.0.0.2.5683 > 10.0.0.1.44327: [no cksum] UDP, length 4
0x0000:  4500 0020 0d00 4000 4011 19cb 0a00 0002  E.....@.@.......
0x0010:  0a00 0001 1633 ad27 000c 0000 4000 c772  .....3.'....@..r
0x0020:  0000 0000 0000 0000 0000 0000 0000       ..............
09:34:48.282995 IP (tos 0x0, ttl 64, id 45943, offset 0, flags [DF], proto
UDP (17), length 32)
    10.0.0.1.44327 > 10.0.0.2.5683: [udp sum ok] UDP, length 4
0x0000:  4500 0020 b377 4000 4011 7353 0a00 0001  E....w@.@.sS....
0x0010:  0a00 0002 ad27 1633 000c 0106 6000 c772  .....'.3....`..r
09:34:53.284062 ARP, Ethernet (len 6), IPv4 (len 4), Request who-has
10.0.0.2 tell 10.0.0.1, length 28
0x0000:  0001 0800 0604 0001 0060 6e40 0b3c 0a00  .........`n@.<..
0x0010:  0001 0000 0000 0000 0a00 0002            ............
09:34:53.284818 ARP, Ethernet (len 6), IPv4 (len 4), Reply 10.0.0.2 is-at
00:00:00:00:00:00, length 46
0x0000:  0001 0800 0604 0002 0000 0000 0000 0a00  ................
0x0010:  0002 0060 6e40 0b3c 0a00 0001 4000 0000  ...`n@.<....@...
0x0020:  0000 0000 0000 0000 0000 0000 0000       ..............
09:35:03.071809 IP (tos 0x0, ttl 64, id 45944, offset 0, flags [DF], proto
UDP (17), length 38)
    10.0.0.1.44327 > 10.0.0.2.5683: [udp sum ok] UDP, length 10
0x0000:  4500 0026 b378 4000 4011 734c 0a00 0001  E..&.x@.@.sL....
0x0010:  0a00 0002 ad27 1633 0012 99b3 4001 c773  .....'.3....@..s
0x0020:  b568 656c 6c6f                           .hello
09:35:03.072620 IP (tos 0x0, ttl 64, id 3584, offset 0, flags [DF], proto
UDP (17), length 46)
    10.0.0.2.5683 > 10.0.0.1.44327: [no cksum] UDP, length 18
0x0000:  4500 002e 0e00 4000 4011 18bd 0a00 0002  E.....@.@.......
0x0010:  0a00 0001 1633 ad27 001a 0000 4045 c773  .....3.'....@E.s
0x0020:  ff48 656c 6c6f 2c20 576f 726c 6421 12    .Hello,.World!.


-eero-





On Sun, Mar 16, 2014 at 6:42 PM, Pekka Nikander <pekka.nikander@xxxxxx>wrote:

> > Hi I don't have the POE injector, so I can test only with emulator, I'll
> grab one POE injector on Wednesday!
>
> You don't need to have a PoE injector, at least my board works nicely with
> just USB power from my laptop.  Though I've heard that apparently some
> boards don't, at least with some USB sockets.  Apple MacBookPros provide
> quite a lot of juice over the USB, that may be a factor.  My testing
> environment is simply MBP->USB cable->programming
> board->Ellduino<->Ethernet cable<->MBP.
>
> > Got some errors
> > stm32/cores/arduelli/Arduino.h:30:29: fatal error: ellduino_serial.h: No
> such file or directory
>
> Tnx, fixed in my internal sources now but not pushed yet.
>
> > When compíling with PLATFORM=emulator, I got errors:
> >
> > g++ -m32 -march=i386 -m32 -demangle -march=i386 -Xlinker -T -Xlinker
> ../../scripts//elf_i386.xc -o hello_world  main.o hello_world.o ellduino.o
> --start-group ../../variants/ellduino/libstm32f0.a
> ../../libraries/CoAP/CoAP.a ../../libraries/SPI/SPI.a
>  ../../libraries/SPI/ellduino_spi.o --end-group  -lstdc++
> > g++: error: unrecognized command line option '--start-group'
> > g++: error: unrecognized command line option '--end-group'
> > make: *** [hello_world] Error 1
>
> Hmm.  What is your native g++ version?  I guess --start-group and
> --end-group should be -Wl,--start-group and -Wl,--end-group for emulator
> linking in Linux.
>
> --Pekka
>
>
>

Other related posts: