Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

USB communication with GUI which class have to used?

MD18

Newbie level 6
Joined
Dec 9, 2021
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
72
Hello ,

I am working on STM32H745IIK3.I have to connect my board to Software which is based on GUI.SO which USB class I have to use.Can you please help me?
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
49,426
Helped
14,442
Reputation
29,148
Reaction score
13,239
Trophy points
1,393
Location
Bochum, Germany
Activity points
284,427
No idea what "GUI.SO" software is, please elaborate. Which kind of communication do you want to establish? Popular device classes working with generic description files are CDC (serial port) or HID.
 

MD18

Newbie level 6
Joined
Dec 9, 2021
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
72
No idea what "GUI.SO" software is, please elaborate. Which kind of communication do you want to establish? Popular device classes working with generic description files are CDC (serial port) or HID.
We are developing standalone application in qt software using c++/python language. We are sending some digital data/ waveforms from hardware and that we have to see on the application. We want to know how we can interface this application with the STM hardware. For Gui and hardware communication, we are using usb communication. But we don't know which usb class we should use for the communication.
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
49,426
Helped
14,442
Reputation
29,148
Reaction score
13,239
Trophy points
1,393
Location
Bochum, Germany
Activity points
284,427
I'm using a serial protocol layer, e.g. MODBUS or simple line orientated ASCII commands over CDC for similar purposes. Advantage is that it can be easily switched to ethernet or RS232. If you want an application specific bulk protocol, TMC (test and measurement class) could be an option.
 

MD18

Newbie level 6
Joined
Dec 9, 2021
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
72
I'm using a serial protocol layer, e.g. MODBUS or simple line orientated ASCII commands over CDC for similar purposes. Advantage is that it can be easily switched to ethernet or RS232. If you want an application specific bulk protocol, TMC (test and measurement class) could be an option.
But the TMC channel is not present in stm32cubemx.Only HID, custome Hid, Virtual con port.
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
49,426
Helped
14,442
Reputation
29,148
Reaction score
13,239
Trophy points
1,393
Location
Bochum, Germany
Activity points
284,427
Surely possible. I have seen various communication tasks implemented through HID, e.g. uC bootloader, controlling device IO. But not my choice.

You should start with a definitions of communication structure, then decide about suitable protocol and USB device class.
 

MD18

Newbie level 6
Joined
Dec 9, 2021
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
72
Hello ,

I am working on STM32H745IIK3.I have to connect my board to Software which is based on GUI.SO which USB class I have to use.Can you please help me?
HID CLASS is prefer for Mouse and keybaorad communication.
 

KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
21,113
Helped
4,534
Reputation
9,080
Reaction score
4,633
Trophy points
1,393
Activity points
139,348
Hi,

Why do you make it more dificult than necessary?

CDC is simple, you said it's available (post#5), and FvM sais it's a valid method (post#4, post#6).

It seems you ignore CDC, but insist in HID (post#7, post#9) ... and then you complain about HID (post#9)

Can you tell me where you see the problem with CDC / virtual COM?

Klaus
 

MD18

Newbie level 6
Joined
Dec 9, 2021
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
72
I am not complaining about the HID. I just want to communicate with application which give me the data of waveform and using USB peripheral I have to take that into my stm32h7 board. And using the DAC I have to generate the waveform. Main thing is that if I have to communicate with any application which Class I have to use. for eg. If there is one application which I have 3 LEDS and one user button, when we click one led option in application then our LED on board that I have start blinking. These kind of communication that I have to use.
--- Updated ---

Hi,

Why do you make it more dificult than necessary?

CDC is simple, you said it's available (post#5), and FvM sais it's a valid method (post#4, post#6).

It seems you ignore CDC, but insist in HID (post#7, post#9) ... and then you complain about HID (post#9)

Can you tell me where you see the problem with CDC / virtual COM?
I am not complaining about the HID. I just want to communicate with application which give me the data of waveform and using USB peripheral I have to take that into my stm32h7 board. And using the DAC I have to generate the waveform. Main thing is that if I have to communicate with any application which Class I have to use. for eg. If there is one application which I have 3 LEDS and one user button, when we click one led option in application then our LED on board that I have start blinking. These kind of communication that I have to use.
HID and CUSTOME HID are both are different class .
 

KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
21,113
Helped
4,534
Reputation
9,080
Reaction score
4,633
Trophy points
1,393
Activity points
139,348
Hi,

Again: what's wrong with CDC?

I also agree with FvM about "communication structure" (post#8)

Klaus
 

LaTeX Commands Quick-Menu:

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top