Altera_Forum
Honored Contributor
11 years agoDE2 115 : Trying to send/receive usb bulk data from ISP1362 to FTDI 232H chip
Hi everyone,
I'm trying to use the isp 1362(host mode) with nios2 to communicate with a FTDI 232H chip (bulk transfer mode supported only). Everything is fine, i can get the descriptor of the FTDI chip and i'm connected in full speed mode . (VID, PID, MaxPacketSize etc..) VID = 0x403 PID = 0x6014 MaxPckt = 0x40 There is a PTD.c file provided by Terasic with multiple methods to handle all 4 usb transfert modes which are : -send_iso for isochronous -send_int for interrupt -send_control for control -send_ptl (what is that?) I just want to send a byte in bulk mode (ie 0xAA) What is the right way to do this? i would say i should make a ptd with "void make_ptd(int *rptr,char token,char ep,int max,char tog,char addr,char port)" But what should i put in the rptr[4], rptr[5], rptr[6] and rptr[7]? Is there a special code to put next the ptd to do an OUT transfer like in Control transfer? Or should i just put the data after the ptd? Well i'm quite lost for now... If any got the solutions.. And thanks to you for your concern. :rolleyes: Ps: it's mandatory for me to use the isp1362 with nios2