Search found 16 matches

by adnil
Fri Jun 20, 2014 2:03 pm
Forum: General Support
Topic: Help wit serial read and write data
Replies: 8
Views: 5639

Re: Help wit serial read and write data

Hi,
When I changed the functions of write and read the port and it works but i need to use a funtion like chSequentialStreamWrite for sending my data of 10 bytes. How can I make to work it. Thanks a lot.

#include "ch.h"
#include "hal.h"
#include "chprintf.h"
#include <stdio&#46;h ...
by adnil
Fri Jun 20, 2014 1:46 am
Forum: General Support
Topic: Help wit serial read and write data
Replies: 8
Views: 5639

Re: Help wit serial read and write data

Thanks for your replies,

The pins are ok because with the code of the post http://forum.chibios.org/phpbb/viewtopic.php?f=2&t=1770 they work, but I have a lot of mistakes as you told me. I'm trying to correct it and now it looks like this, but I have a problem with the if sentence when i only ...
by adnil
Thu Jun 19, 2014 4:32 am
Forum: General Support
Topic: Help wit serial read and write data
Replies: 8
Views: 5639

Re: Help wit serial read and write data

Thank you for your reply,

Maybe can you help me, I made this code and I don't understand why it did not work, thanks a lot and sorry about this kind of questions.

/*
* Application entry point&#46;
*/
int main(void) {

/*
* System initializations&#46;
* - HAL initialization, this also ...
by adnil
Sun May 25, 2014 12:29 am
Forum: General Support
Topic: Help wit serial read and write data
Replies: 8
Views: 5639

Help wit serial read and write data

Hello,

I want to ask you wich is the best way to read and write data with SD1 constantly in the main thread.

Thank you very much
by adnil
Fri Apr 25, 2014 3:39 am
Forum: General Support
Topic: Serial Communication
Replies: 4
Views: 3519

Re: Serial Communication

Thanks a lot for the replies,
I mean tuncated when the data is not complete, I supposed that I was sending a 10 byte data but I only get 8 byte data.

How can I explicitly specify the lenght of the data?

Thans again,

Regards
by adnil
Thu Apr 24, 2014 6:01 am
Forum: General Support
Topic: Serial Communication
Replies: 4
Views: 3519

Serial Communication

Hi to all,

I want to know what is the time restriction for using chSequentialStreamWrite function, I am using the next code, when I put a chThdSleepMilliseconds < 600ms the frame is truncated:
#include "ch&#46;h"
#include "hal&#46;h"
#include "chprintf&#46;h"
#include <stdio&#46;h>
#include ...
by adnil
Tue Mar 18, 2014 4:08 am
Forum: General Support
Topic: chSequentialStreamWrite Time for transmission
Replies: 4
Views: 3450

Re: chSequentialStreamWrite Time for transmission

Thank you for your reply,

Maybe can you show me where in the code the functions are called out of proper context please?
by adnil
Fri Mar 14, 2014 2:36 am
Forum: General Support
Topic: chSequentialStreamWrite Time for transmission
Replies: 4
Views: 3450

chSequentialStreamWrite Time for transmission

Hi,

I'm writting a program for read analog and digital inputs and write digital outpus. I'm sending a string of 10 bytes using chSequentialStreamWrite with the state of the inputs in static msg_t Thread1(void *arg). I have a problem, if I put the chThdSleepMilliseconds time less than 600ms I ...
by adnil
Fri Nov 29, 2013 2:10 pm
Forum: General Support
Topic: Pull down Configuration
Replies: 4
Views: 2748

Re: Pull down Configuration

Giovanny,
Thanks and excuse me my costume board has an error on the label of the pin I was measuring in the wrong pin. Thanks for your reply I could figure it out.
Regards