0

What is the maximum length of a USSD response (not the length of a request) from a modem ? so I can define my response variable to that length.

#define Max_Response_Length ???
BYTE response[Max_Response_Length];

Thank you for your understanding.

EDIT: What are you people! do you think I am that lazy or even retarded to not even do a google or wikipedia search, before I come here! I spent hours trying to search for answers to my question, of the USSD RESPONSE (NOT, NOT and NOT REQUEST) LENGTH and wikipedia does not specify if (182 characters) does include the response or not.

  • @4386427, that was really offensive. I know but I asked for the response length not the request length, and wikipedia does not specify. –  May 11 '17 at 15:57
  • Maybe not offensive, but rude for sure. I already flagged the comment earlier. – Federico klez Culloca May 11 '17 at 15:58
  • Requests and responses both are USSD messages. Since USSD messages are restricted to 160 bytes, that means both requests and responses are restricted to that. Makes sense: since they're all carried by the GSM signalling channels, like SMS. – MSalters May 11 '17 at 22:44

1 Answers1

-1

USSD messages are up to 182 alphanumeric characters long.

Source: https://en.wikipedia.org/wiki/Unstructured_Supplementary_Service_Data

Thomas Padron-McCarthy
  • 27,232
  • 8
  • 51
  • 75
  • 1
    I edited this answer so it's not just a link, but from the linked duplicate I understand that the number of raw bytes is 160, and then those can be interpreted as 182 7-bit characters. – Thomas Padron-McCarthy May 11 '17 at 15:44