AnsweredAssumed Answered

2. I'm trying to send signals DSR and DCD through the structure and command endpoint, see example USBD_StatusTypeDef USBD_LL_SOF(USBD_HandleTypeDef  *pdev) {   static uint8_t Buf[0xA];      Buf[0] = 0xA1;   Buf[1] = 0x20;   Buf[2] = 0;   Buf[3] = 0;   Buf

Question asked by Alex.Alexey on Feb 14, 2017
2. I'm trying to send signals DSR and DCD through the structure and command endpoint, see example
USBD_StatusTypeDef USBD_LL_SOF(USBD_HandleTypeDef  *pdev)
{
  static uint8_t Buf[0xA];
  
  Buf[0] = 0xA1;
  Buf[1] = 0x20;
  Buf[2] = 0;
  Buf[3] = 0;
  Buf[4] = 0;
  Buf[5] = 0;
  Buf[6] = 2;
  Buf[7] = 0;
  Buf[8] = 0x2; //0x3; ///Var_O->Gsm_Modem_Line_Signal; //   //0x2;
  Buf[9] = 0x0;
 
 
  if(pdev->dev_state == USBD_STATE_CONFIGURED)
  {
    USBD_LL_Transmit(pdev, CDC_CMD_EP, Buf, 10);  // Send DSR and(or) DCD
    
    if(pdev->pClass->SOF != NULL)
    {
      pdev->pClass->SOF(pdev);
    }
  
  }
  return USBD_OK;
}
but the signals are not visible in the terminal, although the SPL works.....
What I'm doing wrong?

Outcomes