Hi, I'm using a 8051 MCU which comes with a USB dongle. My question is "How can I configure the USB to be read as a COM port?" Has anyone done it before? All I know is that I need to configure the USB as a Communication Class Device but how do I go about doing it? Any help is very much appreciated.
"I'm using a 8051 MCU..."
Don't hide necessary information: What "8051 MCU" is it?? Please state manufacturer and full part number - including all prefix & suffix letters & digits. Preferably include a link to the datasheet.
Similarly for any Dev Board you're using.
"... which comes with a USB dongle"
What do you mean by that?
Is that a debugging adaptor? Or just a standard a USB-to-Serial adaptor? Or what?
"How can I configure the USB to be read as a COM port?"
Nobody can answer that without knowing the details of the product(s) that you're talking about!
Do you mean configuring the PC end, or are you talking about the MCU end?
Please clarify...
I'm using the nRF24LU1 by Nordic Semiconductor. www.nordicsemi.com/index.cfm Configuration to be done on the MCU
"Configuration to be done on the MCU"
No, it's not.
If you want the MCU's "Full speed USB 2.0 compliant device controller" to appear as a COM port on the PC, then what you need is the appropriate Driver for the PC.
You may also need some firmware on the microcontroller.
You will need to contact Nordic Semiconductor about that - it has nothing to do with Keil tools!
Are you sure that this is not covered in documentation already available from Nordic Semiconductor? It would be very strange indeed if such documentation were not available!
Do you have a "development kit" or "evaluation board" or similar for this part? If not, it sounds like you need one!
I do have the development kit. The firmware supplied by Nordic is based on a Human Device Class. But for it to be read as a COM port, I would need to configure it as a Communication Device Class.
"But for it to be read as a COM port, I would need to configure it as a Communication Device Class."
So you need to contact Nordic about that!
Well Nordic has no idea how to configure it to a CDC. So I'm trying here to see if anyone here has done it before.
"So I'm trying here to see if anyone here has done it before."
Why don't you code it by yourself? I don't have any experience on this chip. But at a glance, it is an usual USB engine. Nordic should have some USB example. Based on this example, you can port the implementations of CDC on other USB MCUs.
You'll find many CDC implementations I posted one of them to SiLabs forum. USB CDC implementation for 'F32x www.cygnal.org/.../000945.html USB CDC implementation query www.cygnal.org/.../001336.html
USB spec defines the behavior of USB engine (SIE) on the device in details. Then, the firmware code is much the same for '51, ARM, H8 or PIC, etc.
If you are not familiar with USB implementation, it's a good opportunity to start it. I'll help you.
BUT IN OTHER FORUM!!, which doesn't discard my post! Post it to 8052.com
Tsuneo
I am trying to code it myself, but I'm not too familiar with it so just need a bit of help to get going.
Ok will post to 8052.com Thanks for the help!
have not been there for a while, but http://www.usb.org/ has a forum that AFAIRC will be much more helpful than this re what you need.
Erik
It does look as though Nordic are targetting this chip purely at HID application - so it's probably not that they have "no idea", but rather that it's not their intention for this chip.
It looks like the firmware you get is HID, so if you want something else, you will have to write it yourself - it's not just a question of configuration.
If this device and the supplied firmaware doesn't meet your requirements, it might be better to seek a more appropriate device?
Perhaps you could just use a USB-to-serial adaptor on the UART...?
Thanks for the suggestion I am waiting for the administrator to approve my account on http://www.usb.org
I am trying to create an embedded system to pair with mobile phones and PDAs so USB-to-serial adaptor is not possible.
So why did you choose this chip?
Doesn't sound like this is the application that it's designed for!
Have you explained your requirement to Nordic, and asked if they have something more suitable?
Have you looked elsewhere for something that (more) directly meets your requirements?
Because this chip has been tested to have very low power consumption and has a RF+MCU-in-one chip.
I will be re-writing the firmware myself. Chinzei Tsuneo's links have given been some help. Thank you to everyone else who have contributed with their replies :)
"I am waiting for the administrator to approve my account on ">http://www.usb.org" Did you send email to admin@usb.org?
"Getting permission to post here" on USB-IF www.usb.org/.../viewtopic.php