cancel
Showing results for 
Search instead for 
Did you mean: 

USB CDC VCP (STM32 Host, OneRNG Device)

NajeebUllahKhan
Associate II

Hi everyone,

I have STM32 Nucleo F767ZI Board and OneRNG V3.0 by Moonbase. OneRNG is using USB Serial Protocol. When I connect OneRNG directly to PC through USB connector, open it's COM Port on Serial Monitor like Putty, send CMD "cmdO", it starts giving continuous stream of Random Numbers until I send "cmdo" to stop data stream reception. Now what I want is, instead of PC, I want use STM32 Nucleo F767ZI board with OneRNG using USB interface CDC VCP with Nucelo as Host and OneRNG as a device. OneRNG doesn't need any coding as it's already working with built-in firmware from the organization. I am providing below my OnrRNG, Nucleo board, CubeMX cobfiguration and main file, but I am unable to receive any data from OneRNG.

Looking forward to your kind responses...

I am using following link to configure and connect OneRNG according to my own needs "https://embetronicx.com/tutorials/microcontrollers/stm32/stm32-usb-host-msc-connect-pendrive-to-stm32/"

I am using following tutorial to code for USB CDC VCP Host according to my requirements "https://www.youtube.com/watch?v=pC16Aon4crk"

and Here is the link about OneRNG "http://moonbaseotago.com/onerng/" & "https://onerng.info/"

Looking forward to help and support regarding integration...

 

Capture.PNG

Capture1.PNG

Capture2.PNG

  

3 REPLIES 3
FBL
ST Employee

Hi @NajeebUllahKhan 

Thank you for reaching out. Based on the information provided, it appears that the issue may be related to the OneRNG firmware rather than the STM32. We recommend reviewing the OneRNG documentation and firmware details for further insights.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.


Pavel A.
Super User

Here you can find help with this project.

 

@FBL @Pavel A. 

When I connect OneRNG to PC directly, a COM Port appears. On selecting that COM Port in any serial terminal, and when send cmd "cmdO", OneRNG starts giving random number continuously until I send a cmd "cmdo" to stop, during no transmission, led on OneRNG remains bright and as I transmit cmd, led gets dim and random data starts until send stop cmd and led again gets brighten.

But in my case with Nucleo board, on transmitting cmd, led doesn't get dim most probably cmd isn't received by OneRNG.

kindly help me out in this, whether it's from Nucelo board side or OneRNG side and if any example on Nucleo board using USB HOST CDC VCP...