Re: Issue with CDC driver when receiving the data character 0x1A

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Donnerstag, 27. Januar 2011, 13:57:13 schrieb Ramya Desai:
> On Thu, Jan 27, 2011 at 6:08 PM, Ramya Desai <ramya.desai@xxxxxxxxx> wrote:
> > Dear Experts,
> >
> > I am developing an application which communicates with the external
> > device using USB CDC driver in Ubuntu 10.04.
> > When I am trying to transfer the chunk of data from the device to the
> > PC, I found that junk data was being received.
> >
> > If I modify the data value 0x1A (which is at 13th offset of my
> > buffer), I was bale to receive the data with out any issues.
> >
> > When I used Windows machine to read the data, I found no problem even
> > with 0x1A character.
> >
> > Please let me know, how can I fix this issue.
> 
> Please found the code snippet that I am using.
> -RD
> 
> fd = open("/dev/ttyACM0", O_RDWR);
> 
> if(fd == -1)
> 
> {
> 
>     	printf("ERROR: Cannot open the serial port terminal fd = %d\n", fd);
> 	exit(1);
> 
>  }
> 
> 
> retval = read(fd, &header, HEADER_LEN);

What is HEADER_LEN?

	Regards
		Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux