Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

At REMOTE_NDIS_KEEPALIVE_MSG mode , but still can not communicate with device. #10

Open
andarm opened this issue Sep 14, 2021 · 0 comments

Comments

@andarm
Copy link

andarm commented Sep 14, 2021

1. It seems all the process has been done but cao not callback "usbd_rndis_data_out"

2. Crruently, continoiusly work at REMOTE_NDIS_KEEPALIVE_MSG mode, but can not display ethenet at PC by "ipconfig" command. Can not ping device normally.

		case REMOTE_NDIS_QUERY_MSG:
			rndis_query(pdev);
			break;
			
		case REMOTE_NDIS_SET_MSG:
			rndis_handle_set_msg(pdev);
			break;

		case REMOTE_NDIS_RESET_MSG:
			{
				rndis_reset_cmplt_t * m;
				m = ((rndis_reset_cmplt_t *)encapsulated_buffer);
				rndis_state = rndis_uninitialized;
				m->MessageType = REMOTE_NDIS_RESET_CMPLT;
				m->MessageLength = sizeof(rndis_reset_cmplt_t);
				m->Status = RNDIS_STATUS_SUCCESS;
				m->AddressingReset = 1; /* Make it look like we did something */
			//	m->AddressingReset = 0; //Windows halts if set to 1 for some reason
				DCD_EP_Tx(pdev, RNDIS_NOTIFICATION_IN_EP, (uint8_t *)"\x01\x00\x00\x00\x00\x00\x00\x00", 8);
			}
			break;

		case REMOTE_NDIS_KEEPALIVE_MSG: 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant