teco-kit / Jennisense

A modularized open hardware, sensor drivers based on contiki for the JN51xx µController. A detailed description and how-to can be found in the wiki (see link below).
http://github.com/teco-kit/Jennisense/wiki
19 stars 16 forks source link

Porting Jennic JN5148 platform to Contiki 2.7 #8

Open aicastell opened 9 years ago

aicastell commented 9 years ago

Hello. I have been working on Jennic JN5148 and Jennisense for the last year. I have a star based network of sensors implemented yet, and some background information. I have tested my system with 4 sensors recovering data every 6 seconds for 2 weeks, with success. So, the hardware platform and Jennisense works really fine.

Now I want to migrate this system to a mesh based network. Jennisense has open issues with the mesh topology. Contiki 2.7 implements stable wireless IPv6 mesh networking, but Jennisense is based on an older Contiki version. I don't want to migrate the hardware platform, so I'm planning to migrate Jennisense to Contiki 2.7.

Does some of you have started working on this issue?

aicastell commented 9 years ago

Hello forum.

I have migrated Jennic layer from Jennisense to Contiki 2.7:

contiki-jn51xx/cpu/jennic ==> contiki/cpu/jennic contiki-jn51xx/platform/jndevkit ==> contiki/platform/jndevkit

I have modified Makefile.jndevkit, just to leave it almost empty and start migration step by step from scratch:

$ cat contiki/platform/jndevkit/Makefile.jndevkit CONTIKI_CPU=$(CONTIKI)/cpu/jennic include $(CONTIKI_CPU)/Makefile.jn51xx

I'm trying to compile contiki/examples/helloworld with my jndevkit platform, but I'm getting this compilation error:

$ make TARGET=jndevkit V=1 ../../cpu/jennic/net/ieee802.h:92: warning: type defaults to ‘int’ in declaration of ‘rimeaddrt’ ../../cpu/jennic/net/ieee802.h:92: error: expected ‘;’, ‘,’ or ‘)’ before ‘’ token ../../cpu/jennic/./jts.c:153:3: warning: #warning "jts not been ported to JN5148" make: _\ [obj_jndevkit/jts.o] Error 1

Line 92 of ieee802.h file is this:

92 void ieee_register_lqi_callback(void (_func)(const rimeaddrt, uint8_t));

The "struct rimeaddr_t" struct is defined on Jennisense at contiki-jn51xx/core/net/rime/rimeaddr.h, but it is not defined on contiki 2.7 at all. Does exist some equivalence between old/new rime stack, to try to fix this issue?

Thanks!

pscholl commented 9 years ago

Probably. That callback is optional anyway, it's a mechanism to get rssi (or lqi) from received packets. However it points to a change that needs porting.

It might just be a simple renaming. My guess is that rimeaddr_t is no more but has been replaced with linkaddr_t. You need to adapt accordingly.

On Tue, Dec 30, 2014 at 02:57:18AM -0800, aicastell wrote:

Hello forum.

I have migrated Jenic layer from Jennisense to Contiki 2.7:

contiki-jn51xx/cpu/jennic ==> contiki/cpu/jennic contiki-jn51xx/platform/jndevkit ==> contiki/platform/jndevkit

I have modified Makefile.jndevkit, just to leave it almost empty and start migration step by step from scratch:

$ cat contiki/platform/jndevkit/Makefile.jndevkit CONTIKI_CPU=$(CONTIKI)/cpu/jennic include $(CONTIKI_CPU)/Makefile.jn51xx

I'm trying to compile contiki/examples/helloworld with my jndevkit platform, but I'm getting this compilation error:

$ make TARGET=jndevkit V=1 ../../cpu/jennic/net/ieee802.h:92: warning: type defaults to ‘int’ in declaration of ‘rimeaddrt’ ../../cpu/jennic/net/ieee802.h:92: error: expected ‘;’, ‘,’ or ‘)’ before ‘’ token ../../cpu/jennic/./jts.c:153:3: warning: #warning "jts not been ported to JN5148" make: _\ [obj_jndevkit/jts.o] Error 1

Line 92 of ieee802.h file is this:

92 void ieee_register_lqi_callback(void (_func)(const rimeaddrt, uint8_t));

The "struct rimeaddr_t" struct is defined on Jennisense at contiki-jn51xx/core/net/rime/rimeaddr.h, but it is not defined on contiki 2.7 at all. Does exist some equivalence between old/new rime stack, to try to fix this issue?

Thanks!


Reply to this email directly or view it on GitHub: https://github.com/teco-kit/Jennisense/issues/8#issuecomment-68347578

Embedded Sensing Systems - TU Darmstadt https://www.ess.tu-darmstadt.de/

Tel.: +49 6151 16 75023