This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
Thanks for your time
I have designed the TUSB2046B USB HUB IC as per the standard details which TI referred
I designed four downstream ports in my PCB, i can able to read the data from all four ports
But I couldn't able to read the port status from firmware end. but same firmware which i used for some other HUB (HS8836a) which i bought locally, its through the port status
I have connected the TUSB2046B USB HUB to MAX3421e host controller its connected to atmel microcoontroller
With help of this firmware, i can able to read the port status - but its not working for this scenario, if i neglect in firmware i can able to read the data, unfortunately its require port status as per our requirement.
bool checkUsbPortStatus()
{
uint16_t temp = 0;
uint8_t* portStatus = (uint8_t*)&temp;
for(uint8_t i = 1; i <= 4; i++)
{
Hub.GetPortStatus(i, 2, portStatus);
Serial.println("temp=");
Serial.println(temp);
if(temp & bmHUB_PORT_STATUS_PORT_CONNECTION)
return true;
}
return false;
}
While checking the forum, most of the taking about SUSPEND pin, VBUS, and D+, D- pin - for my case able to read the data, but can't able to read the port status
Kindly let me know, how to solve this, look like no problem in firmware end
Regards
Arun Prakash
Hi Arun,
The TUSB2046B responds to all the expected USB commands including the GetPortStatus and GetHubStatus commands. The TUSB2046B is a USB Full Speed hub, this may be a difference from the previous device you were using.
I can take a protocol trace and post it later today so you can see what the port status reports look like for reference.
Regards,
JMMN
Hi JMMN,
Thanks for the complete info, we will check and update the status
Regards
Arun
Hi JMMN
Thanks for the details, with help of this we can able to read the Port status.
In USB HUB library - inbuild event trigger option is available to know the port status
Regards
Arun Prakash