Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Remote sensing with CORONIS module

Status
Not open for further replies.

teleko7

Junior Member level 2
Joined
Sep 27, 2009
Messages
24
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Location
Basque country, Spain
Activity points
1,559
Hi

I am developing a remote sensing and actuating system, with a PIC18f8722 and a coronis radio module (868MHz) in each equipment. Basically, it´s a master-slave scheme, programmed in C, with one of the equipments sending the readings and the other one receiving them. When i try to send a group of frames in message mode (no more than 30 bytes each)from one module to another module, i have to wait something like 3-4 secs. between frames...

8-O 8-O

The thing is that i use the fputc(...); statement in C to send the frames (cast as char arrays) to the coronis module, via serial line, and if i send a couple or three frames consecutively to the coronis, one after another, only the first one is received by the second module. No matter how short or long the receiver´s timeots and wakeups are set, only the first one arrives. What is more, setting a breakpoint before each frame is sent makes everything go ok!!! So i guess the problem is in the sender...

I have no clue about what´s going wrong, may be wakeup and timeout times are wrong... but... I just don´t believe such a module can´t send more than 30 bytes every 4 secs... Do i have to synchronize somehow the wakeups with the fputc(); ??? I mean, if i send an array of chars when the module is not waken up... is it lost or buffered for when the module is on???

Is there any flag or response from the module i have to wait for in order to know when to send subsequent frames??

Thanks in advance, best regards

iban
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top