Author |
Message |
Topic: USB CDC - Receive strings |
soapfeldmann
Replies: 6
Views: 12145
|
Forum: General CCS C Discussion Posted: Sun Jul 03, 2011 6:15 pm Subject: USB CDC - Receive strings |
I've solved the problem on my own by creating the following function:
char recv[64] = "";
void getString()
{
int i = 0;
for (i=0;i<sizeof(recv ... |
Topic: USB CDC - Receive strings |
soapfeldmann
Replies: 6
Views: 12145
|
Forum: General CCS C Discussion Posted: Sun Jul 03, 2011 10:31 am Subject: USB CDC - Receive strings |
I´m using a C# program that i´ve made to send the strings.
The problem is that the result char array from the loop contains only a strange char such like omega, beta, arrows, asterisks....
My be ... |
Topic: USB CDC - Receive strings |
soapfeldmann
Replies: 6
Views: 12145
|
Forum: General CCS C Discussion Posted: Sun Jul 03, 2011 8:06 am Subject: USB CDC - Receive strings |
Hello, and thanks for the reply.
Yes, I know that´s the best way, but after writing the incoming text on the LCD, i want to compare the received string to execute some command like powering up RB1, ... |
Topic: USB CDC - Receive strings |
soapfeldmann
Replies: 6
Views: 12145
|
Forum: General CCS C Discussion Posted: Sat Jul 02, 2011 8:23 pm Subject: USB CDC - Receive strings |
Hello.
I'm trying to receive a string over the CDC on my PIC18F4550.
The problem is that there are only functions to get one char at a time.
I tried:
do
{
usb_task();
... |
|