Search found 16 matches
- Sun Jun 22, 2014 1:02 pm
- Forum: General Support
- Topic: chSequentialStreamWrite Time for transmission
- Replies: 4
- Views: 3450
Re: chSequentialStreamWrite Time for transmission
Thanks a lot
- 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.h ...
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.h ...
- 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 ...
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 ...
- 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.
*/
int main(void) {
/*
* System initializations.
* - HAL initialization, this also ...
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.
*/
int main(void) {
/*
* System initializations.
* - HAL initialization, this also ...
- 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
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
- 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
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
- 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.h"
#include "hal.h"
#include "chprintf.h"
#include <stdio.h>
#include ...
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.h"
#include "hal.h"
#include "chprintf.h"
#include <stdio.h>
#include ...
- 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?
Maybe can you show me where in the code the functions are called out of proper context please?
- 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 ...
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 ...
- 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
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