Search code examples
c++cgsmat-commandussd

What is the maximum length of a USSD response (not request length)?


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.


Solution

  • USSD messages are up to 182 alphanumeric characters long.

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