attachments:
1)usb_serial.zip contains configuration of serial_usb system
2)SerialUsbTest.zip contains test visual studio 2010 C# project
SerialUsbTest\bin\Debug\SerialUsbTest.exe - test aplication
approximately device code
void USB_init_serial(void)
{
sduObjectInit(&usb_serial);
sduStart ...
Search found 7 matches
- Fri Apr 14, 2017 10:51 am
- Forum: ChibiOS/HAL
- Topic: STM32F407 Strange SerialUsbDriver behavior
- Replies: 15
- Views: 9864
- Fri Apr 14, 2017 9:19 am
- Forum: ChibiOS/HAL
- Topic: STM32F407 Strange SerialUsbDriver behavior
- Replies: 15
- Views: 9864
Re: STM32F407 Strange SerialUsbDriver behavior
Oh....
Thanks, i'll attach test project.
moment
Thanks, i'll attach test project.
moment
- Tue Apr 04, 2017 11:20 am
- Forum: ChibiOS/HAL
- Topic: STM32F407 Strange SerialUsbDriver behavior
- Replies: 15
- Views: 9864
Re: STM32F407 Strange SerialUsbDriver behavior
while (true)
{
msg_t c;
while ( (c = chnGetTimeout(&usb_serial, MS2ST(50))) != Q_TIMEOUT )
{
debug_format("%02X ", c);
}
}
same situation without of events using:
#define SERIAL_USB_BUFFERS_SIZE 1024
then i send 64 byte packet from host - nothing readed on device
then send another ...
- Tue Apr 04, 2017 9:40 am
- Forum: ChibiOS/HAL
- Topic: STM32F407 Strange SerialUsbDriver behavior
- Replies: 15
- Views: 9864
Re: STM32F407 Strange SerialUsbDriver behavior
ChibiOS ver 16.1.0
Now i am trying to rewrite code without using events.
Thanks
Now i am trying to rewrite code without using events.
Thanks
- Tue Apr 04, 2017 7:37 am
- Forum: ChibiOS/HAL
- Topic: STM32F407 Strange SerialUsbDriver behavior
- Replies: 15
- Views: 9864
Re: STM32F407 Strange SerialUsbDriver behavior
PC Windows 7 + .Net Application
- Mon Apr 03, 2017 4:30 pm
- Forum: ChibiOS/HAL
- Topic: STM32F407 Strange SerialUsbDriver behavior
- Replies: 15
- Views: 9864
Re: STM32F407 Strange SerialUsbDriver behavior
i changed default buffer size to
#define SERIAL_USB_BUFFERS_SIZE 1024
due to my app logic buffer have never filled out
if i send single packet (63 or 65 bytes length) my event successfully triggered, i read this bytes -> all correct
but if i send single packet with 64 byte nothing triggered ...
#define SERIAL_USB_BUFFERS_SIZE 1024
due to my app logic buffer have never filled out
if i send single packet (63 or 65 bytes length) my event successfully triggered, i read this bytes -> all correct
but if i send single packet with 64 byte nothing triggered ...
- Mon Apr 03, 2017 2:03 pm
- Forum: ChibiOS/HAL
- Topic: STM32F407 Strange SerialUsbDriver behavior
- Replies: 15
- Views: 9864
STM32F407 Strange SerialUsbDriver behavior
Hi.
I am using SerialUsbDriver to realize simple protocol.
My device wait a command from host, do some actions and return a response.
eventflags_t flags;
event_listener_t protocolDataEvent;
//.....
chEvtRegisterMask((event_source_t *)chnGetEventSource(&usb_serial ...
I am using SerialUsbDriver to realize simple protocol.
My device wait a command from host, do some actions and return a response.
eventflags_t flags;
event_listener_t protocolDataEvent;
//.....
chEvtRegisterMask((event_source_t *)chnGetEventSource(&usb_serial ...