------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Contiki-developers mailing list
Contiki-d...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/contiki-developers
you just have to add in cooja/dev/rs232.c#include "dev/slip.h"voidslip_arch_writeb(unsigned char c){simlog_char(c);}voidslip_arch_init(unsigned long ubr){rs232_set_input(slip_input_byte);}
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Ciosco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
Take a complimentary Learning@Cisco Self-Assessment and learn
I am having similar issues while trying to use contiki mote types for
rpl specific examples. I managed to configure the motes so that they
compile and run properly, but I did this only by bypassing the UART
input configuration.
Specifically, I defined BAUD2UBR(x) similarly to Cyril's patch, and
also I skipped the configuration of the input for UART
uart1_set_input(serial_line_input_byte), since there is no
implementation for this mote type. This is enough to compile and run
the motes, but there is still something missing with UART. This
configuration seems to make motes work, but there are problems with
their communication. For example, in the rpl-udp case, the non-sink
mote does not receive any data.
It seems that these problems are related to uart, and, since there is
not an implementation for contiki motes, how could this be fixed?
Thank you all!
Cheers,
Ilias
Do you use sun-java or open-jdk? (There's an ppa for sun-java)
Cheers
Morty
--
Dipl.-Ing. Moritz 'Morty' Struebe (Wissenschaftlicher Mitarbeiter)
Lehrstuhl für Informatik 4 (Verteilte Systeme und Betriebssysteme)
Friedrich-Alexander-Universität Erlangen-Nürnberg
Martensstr. 1
91058 Erlangen
Tel : +49 9131 85-25419
Fax : +49 9131 85-28732
eMail : str...@informatik.uni-erlangen.de
WWW : http://www4.informatik.uni-erlangen.de/~morty
Hi Morty,I have tried with openjdk-6, openjdk-7, java-sun-6 and java-sun-7. And all of them throws the exception with udp-sender and crashes with udp-sink.If I simulate only one udp-sender, it throws the exception after 5 seconds but them it allows to run. :-!? If I try the same with many of those nodes and I try to run after the first exception it throws the some more exception a few times and then crashes.Cyril, in the log says:# JRE version: 7.0-b147# Java VM: Java HotSpot(TM) 64-Bit Server VM (21.0-b17 mixed mode linux-amd64 compressed oops)# Problematic frame:# V [libjvm.so+0x4576c7] frame::sender(RegisterMap*) const+0x237## Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java againThen... below... I can find:Stack: [0x00007f6142976000,0x00007f6142a77000], sp=0x00007f6142a75230, free space=1020kNative frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)V [libjvm.so+0x4576c7] frame::sender(RegisterMap*) const+0x237V [libjvm.so+0x7770e1] OptoRuntime::handle_exception_C(JavaThread*)+0xd1Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)C [mtype281.cooja+0x1c9c1] radio_read+0xa5[error occurred during error reporting (printing Java stack), id 0xb]So, when I go to the objdumed file I find:000000000001c9c1 <radio_send>:/*---------------------------------------------------------------------------*/static intradio_send(const void *payload, unsigned short payload_len){1c9c1: 55 push %rbp1c9c2: 48 89 e5 mov %rsp,%rbp1c9c5: 48 83 ec 20 sub $0x20,%rsp1c9c9: 48 89 7d e8 mov %rdi,-0x18(%rbp)1c9cd: 89 f0 mov %esi,%eax1c9cf: 66 89 45 e4 mov %ax,-0x1c(%rbp)Does it mean anything for you?Thanks!SergioPS> let me know if you want me to send you the log and objdumped files.
after managing finally to make Contiki motes work with RPL, I have
been trying to run the rpl-collect example, but unsuccessfully so
far... The problem is that while everything is running properly,
messages sent to the sink are not always delivered, and thus the test
fails. As an example, in the end the script out put looks like this
for some nodes:
Node 5 received: _1__1_1111 hops:_1__1_1111
I have tried various configurations of the network stack, but none
seems to work properly. For example:
Network sicslowpan
Framer 802154
RDC contikimac
MAC csma
Cooja radio
I have tried changing all of these to null drivers or even cxmac, but
with no success; every different configuration has a different effect
on how many messages are successfully delivered, but even this is not
stable per configuration.
Has anybody found a proper configuration to use with contiki motes?
What is the best match for Cooja radio? With sky motes and cc2420
radio, the above configuration works perfectly...This is on a clean
version of Contiki, but with the necessary configuration changes in
order to run RPL, as mentioned here in the same post.
> ------------------------------------------------------------------------------
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> _______________________________________________
> Contiki-developers mailing list
> Contiki-d...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/contiki-developers
>
>
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
thanks for your answer! (although I am not Cyril, but still :) )
For this test I am using the simulation found under
contiki/tools/cooja/contiki_tests but a bit transformed for contiki
mote types. This example consists of 25 motes, the sink waits to
receive 10 packets from each node, and the longest path consists of 3
hops.
I have not been using Cyril's patch though, but since you suggest this
I will try...However, I studied it and my configuration looks
similar...Thanks a lot for your feedback!
Cheers!
Ilias