xbee digimesh

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

Reply to
Marco Trapanese
Loading thread data ...

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.

--
Tim Wescott 
Control system and signal processing consulting 
www.wescottdesign.com
Reply to
Tim Wescott

Il 22/12/2012 19:52, Tim Wescott 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.

Thanks Marco

Reply to
Marco Trapanese

Il 22/12/2012 20:04, Marco Trapanese ha scritto:

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

Marco

Reply to
Marco Trapanese

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

--
"it's the network..."                          "The Journey is the reward" 
speff@interlog.com             Info for manufacturers: http://www.trexon.com 
Embedded software/hardware/analog  Info for designers:  http://www.speff.com
Reply to
Spehro Pefhany

Il 22/12/2012 20:33, Spehro Pefhany ha scritto:

I'm using the OpenPicus FLYPORT

formatting link
. I cannot change the hardware of course. It has onboard a PIC24.

The code I'm working on is here:

formatting link

Marco

Reply to
Marco Trapanese

On a sunny day (Sat, 22 Dec 2012 20:58:48 +0100) it happened Marco Trapanese wrote in :

Ah, arduino code. I looked at the arduino C++ code for my acceleration sensors and thought it was too much. Took the sensor datasheets and wrote good C code in an afternoon. C++ is a crime against humanity, and arduino too.

In the same time you try to read that C++ stuff you can write your own code, just do not be intimidated. Else just strip that C++, make a list of the routines, scrap what you do not need, and than recode it in C.

Reply to
Jan Panteltje

Call Digi Tech Support. They are very helpful.

--
Regards, Joerg 

http://www.analogconsultants.com/
Reply to
Joerg

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.

Reply to
linnix

Il 23/12/2012 19:40, linnix ha scritto:

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

Reply to
Marco Trapanese

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.