I am using Renesas s7g2 development board , I configured USB hub host module and working as expected tested with usb stick and key board.
We are using Rongta mobile printer (RPP 300) device, connected printer device to USB hub Renesas board,
How to configure printer for renesas board (Hub) ?
Need to install any driver ?
How to test ?
Please provide me source code , documents or links .
In reply to adboc:
In reply to naven:
I meant ux_host_class_prolific_src, not ux_host_class_src. The USBX Host Class Hub Module Guide has detailed description how to use Host Class Hub, in short words, you should add New Stack > X-Ware > USBX > Host > Classes > HUB > USBX Host Class HUB and all classes you would like to handle (e.g. CDC-ACM or Prolific, please remember that the latter is not available in stacks, you should enable it in Components tab).
Hi Naveen, Could you manually remove Debug directory and build the project again? As I wrote earlier, the Prolific Host Class is not officially supported, but I suppose you should do at least: 1) Register this class using ux_host_stack_class_register (please see synergy_gen/common_data.c file, ux_common_init0 function). 2) In host event notification callback, if Prolific device is detected, assign the instance of this device (as a keyboard is detected in USBX_Host_Class_HUB_EL_MG_AP app). 3) If you already have the instance, you can call ux_host_class_prolific_write function. Regards, adboc
I recommend to register a class in thread's code, not in the host notification callback. Moreover, you should use g_prolific instead of Ptr_CdcPrinterClass. The last parameter to ux_host_class_prolific_write is a pointer to ULONG, the function will store a number of actually sent bytes. You should declare ULONG variable and give an address to the function e.g. ULONG bytes_sent; ux_host_class_prolific_write(..., &bytes_sent);
Please see a simple example below (note it hasn't been tested with Prolific device):
Hi Naveen, As I wrote earlier, if you've got a development/production license (may apply on https://www.renesas.com/en-us/products/synergy/software/ssp.html - must be signed in), you may view the source code in synergy/ssp/src/framework/el/ux_host_class_prolific_src (add it in Components tab first and generate project content). Additionally, you may ask printer's manufacturer for communication protocol, commands etc. Regards, adboc