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

USB CDC and Modbus

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
rwskinner



Joined: 08 Dec 2006
Posts: 125
Location: Texas

View user's profile Send private message

USB CDC and Modbus
PostPosted: Fri Nov 16, 2012 6:25 am     Reply with quote

I'm using the CCS Modbus RTU slave lib on one of the RS232 ports and using CDC for other messages to the PC, mainly debugging.

The only time that the USB CDC enumerates properly is if there is not modbus traffic. I'm sure this is because the traffic is causing delays and the usb_task does not get serviced in the required time frame.

Once it enumerates everything works fine but if you disconnect the usb and reconnected it, it again will not enumerate until you stop all traffic or cycle the power.

usb_task is being called in a tight loop in my main however it is still a problem.

Should I try to add it somewhere in the CCS modbus lib such as the timeout isr or the serial receive isr so it's called often enough?

Any suggestions?

Richard
rwskinner



Joined: 08 Dec 2006
Posts: 125
Location: Texas

View user's profile Send private message

PostPosted: Mon Nov 26, 2012 6:42 am     Reply with quote

Anyone?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group