CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Wireless Module Microchip MRF24J40MA /B and CCS Compiler

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
stereotyp



Joined: 08 Apr 2011
Posts: 3

View user's profile Send private message

Wireless Module Microchip MRF24J40MA /B and CCS Compiler
PostPosted: Mon Apr 11, 2011 8:32 am     Reply with quote

Hello Community,

I want to built a wireless Sensor based on a PIC 18F4550 and a MRF24J40MA Wireless Module from Microchip for my diploma thesis. Additionally there should be the possibility to connect the sensor via USB to the PC. I want to use the MiWi or MiWi P2P Stack which is given by Microchip, unfortunately for the C18 compiler.

I have made several hours of internet investigation but did not find anything really usefull. I have seen several postings regarding the use of the MRF24J40MA Module with CCS compiler and several people wanted to port the Microchip MiWi Stack code from C18 to CCS. It seems that some of these people even got the Module working with a ported MiWi Stack and CCS but unfortunately they did not post their code. Some of these posts are dated back to 2007.

Basically I have two questions regarding this project.

1st: I would be very glad if anybody has ported the Miwi Stack from C18 to CCS and is willing to share it with me and the community (look at the number of post regarding this issue)? If not, is anybody interested in kind of a co-production porting the MiWi Stack to CCS with me (publishing this code here in case of succes assumed)? Any help, code, url's or additional information is appreciated!!!

2nd: I am worried about the code size. In a first consideration a USB Bootloader, simple USB communication, MiWi stack, MRF24J40 driver and the sensor application could be a little bit too much for the 18F4550, what do you think??

Thank you in anticipation for reading this post and torturing your brains Laughing

As already said before, any help, (sample)code, url's or additional information is appreciated!!!

Last but not least: Sorry for my english!!!
alexbibi



Joined: 12 Mar 2011
Posts: 3

View user's profile Send private message

PostPosted: Wed Apr 13, 2011 7:38 pm     Reply with quote

Hello

I have a very similar project to yours
I will have a PAN coordinator:
a device that will use a 18F4550
to communicate with a MRF24J40MB via spi
and will also communicate via USB to a computer

also I will have other units that will only have a 18F4550 connected to
a MRF24J40MB

The good news for you is that I already wrote the code
for the MRF driver (only translated from Mikro project)
right now the code compile but havent been tested or commented
(I wasnt planning on sharing it Smile

we could work together on that
_________________
Alex
chemical25



Joined: 26 Jun 2011
Posts: 1

View user's profile Send private message

PostPosted: Sun Jun 26, 2011 8:34 pm     Reply with quote

I second this - I would really like to stick with the CCS compiler, rather than C30.

My current focus is to put together a clustered tree/mesh network with the MRF24J40MA modules, using PIC hardware. I know I can easily make the SPI routines to provide a point-to-point system (I have done so already on Parallax Propeller hardware for development), but we now require a tree/mesh network due to signal strength issues between the coordinator and the end units (we need routers to expand the coverage area).

As far as tackling the task myself - just last night I got my PIC24FJ64GB002 to blink a LED... today, I now have the ADCs, SPI, UART, and RTCC running on a LCD... yes progress, but I have no idea where to start with the Microchip C30 code for their MiWi stack, as it is way too convoluted for my understanding. It is simply too overwhelming to even do it in nibbles (I tried).

SO, does anyone either have a port (long shot), or perhaps an idea of how to simply implement a rudimentary tree/mesh network with the MRF24 modules and the CCS compiler?


Thanks for any help -
stereotyp



Joined: 08 Apr 2011
Posts: 3

View user's profile Send private message

PostPosted: Thu Aug 04, 2011 8:01 am     Reply with quote

What about the following idea and its general possibility,

Compile MiWi Stack via c18 Compiler and Import/include the Hex-File in the CCS Main.c, similar to USB-Bootloader Projects. Reserve Data space for the Variables use by the MiWi Stack to prevent conflicts. Define interrupt routines and Functions used by MiWi Stack in CCS Main.c and create jump marks to original MiWi interrupt routines and functions in hex-file.

Thanks for any help -
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group