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

Search found 4 matches
CCS Forum Index
Author Message
  Topic: USB CDC - Receive strings
soapfeldmann

Replies: 6
Views: 12145

PostForum: 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

PostForum: 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

PostForum: 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

PostForum: 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(); ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group