Maker Pro
Maker Pro

xbee digimesh

M

Marco Trapanese

Jan 1, 1970
0
guys... I'm going to use the digimesh modules from digi.
I'm working with Microchip C30 compiler.

The xbee API protocol is not hard to implement, just very long due to
the number of functions.

After a quick search on the web I found a lot of well written C++
libraries, very handy to use.
I cannot find anything in "plain" C, though.

Do you know something about?
Otherwise I will write my own....

Thanks
Marco
 
M

Marco Trapanese

Jan 1, 1970
0
Il 22/12/2012 19:52, Tim Wescott ha scritto:
Don't discard the idea of taking the C++ libraries and rewriting them.
Particularly if you take an object-oriented approach to your C-writing,
(and depending on the peculiarities of the C++ code in question) it is
often easier to rewrite than to write from scratch.


A deeper look into the code shows that almost all functions have their
prefix, related to the parent class.
Probably it's enough to remove the classes and modify the calls... I'll
give it a try.

Thanks
Marco
 
M

Marco Trapanese

Jan 1, 1970
0
Il 22/12/2012 20:04, Marco Trapanese ha scritto:
A deeper look into the code shows that almost all functions have their
prefix, related to the parent class.
Probably it's enough to remove the classes and modify the calls... I'll
give it a try.


Anyway it's quite strange there is no code in C. Xbee is widely used
nowadays.

Marco
 
S

Spehro Pefhany

Jan 1, 1970
0
Don't discard the idea of taking the C++ libraries and rewriting them.
Particularly if you take an object-oriented approach to your C-writing,
(and depending on the peculiarities of the C++ code in question) it is
often easier to rewrite than to write from scratch.

I think the PIC32 now has a C++ compiler. If you're willing to upgrade
to a 32-bit processor that might be a possibility. Just about every
new application that would have been 8-bit or 16-bit and is not
utterly trivial will probably go to some flavor of 32-bit core (eg.
ARM Cortex M0) in the next 5 years. Hopefully the MIPS PIC32 will end
up with a decent market share, but ARM PLC is a juggernaut at the
moment.. from low end to the new V8 multi-core server chips.

Of course, code that heavily uses C++ features may be unsuited for an
limited embedded environment, in general, but in this specific case it
could be useful.


Best regards,
Spehro Pefhany
 
M

Marco Trapanese

Jan 1, 1970
0
Il 22/12/2012 20:33, Spehro Pefhany ha scritto:
I think the PIC32 now has a C++ compiler. If you're willing to upgrade
to a 32-bit processor that might be a possibility. Just about every
new application that would have been 8-bit or 16-bit and is not
utterly trivial will probably go to some flavor of 32-bit core (eg.
ARM Cortex M0) in the next 5 years. Hopefully the MIPS PIC32 will end
up with a decent market share, but ARM PLC is a juggernaut at the
moment.. from low end to the new V8 multi-core server chips.

Of course, code that heavily uses C++ features may be unsuited for an
limited embedded environment, in general, but in this specific case it
could be useful.


I'm using the OpenPicus FLYPORT
(http://store.openpicus.com/openpicus/prodotti.aspx?cprod=015356). I
cannot change the hardware of course. It has onboard a PIC24.

The code I'm working on is here:

http://code.google.com/p/xbee-arduino/


Marco
 
J

Joerg

Jan 1, 1970
0
Marco said:
guys... I'm going to use the digimesh modules from digi.
I'm working with Microchip C30 compiler.

The xbee API protocol is not hard to implement, just very long due to
the number of functions.

After a quick search on the web I found a lot of well written C++
libraries, very handy to use.
I cannot find anything in "plain" C, though.

Do you know something about?
Otherwise I will write my own....

Call Digi Tech Support. They are very helpful.
 
M

Marco Trapanese

Jan 1, 1970
0
Il 23/12/2012 19:40, linnix ha scritto:
This link is for the ethernet module. Do you have one for 802.15.4? Just curious what chip they are using. We are using PIC32MX and MRF24J40.


The OpenPicus modules come in two versions: Ethernet and WiFi.
Then you can add your 802.15.4 transceiver on your own carrier board.

Marco
 
Top