You are on page 1of 2

La formattazione dellUDH nei messaggi concatenati

Segue un esempio di formato UDH da utilizzare per i messaggi di testo concatenati, con valori di esempio: 05 00 03 01 03 01 UDHL: the next 5 octets are UDH (header) concatenated message using 8-bit numbering information element length (3 octets follow) concatenated message number 1 (reference_number) there are 3 parts to this message this is part 1

Si pu notare che il campo reference_number (quello in grassetto) ha valore 1. Se tutto l'UDH di esempio viene preso e utilizzato pari pari per ogni SMS, il campo reference_number ha sempre valore 1 ed sbagliato. Infatti per funzionare correttamente, necessario utilizzare un valore distinto (00 .. FF) per ogni messaggio concatenato che viene inviato, dove per messaggio concatenato non si intende OGNI SMS inviato ma l'insieme di SMS che concorre a fare un SMS concatenato. Esempio: se devo inviare 2 SMS concatenati formati da 3 SMS ciascuno, dovr inviare un totale di 6 SMS. Il primo SMS concatenato avr come reference_number il valore 01 (quindi i 3 SMS che concorrono a formare questo SMS concatenato avranno ciascuno, nell'UDH, in corrispondenza del campo reference_number il valore 01): 05 00 03 01 03 01 05 00 03 01 03 02 05 00 03 01 03 03 UDHL: the next 5 octets are UDH (header) concatenated message using 8-bit numbering information element length (3 octets follow) concatenated message number 1 (reference_number) there are 3 parts to this message this is part 1 UDHL: the next 5 octets are UDH (header) concatenated message using 8-bit numbering information element length (3 octets follow) concatenated message number 1 (reference_number) there are 3 parts to this message this is part 2 UDHL: the next 5 octets are UDH (header) concatenated message using 8-bit numbering information element length (3 octets follow) concatenated message number 1 (reference_number) there are 3 parts to this message this is part 3

Il secondo SMS concatenato avr come reference_number il valore 02 (quindi i 3 SMS che concorrono a formare questo SMS concatenato avranno ciascuno, nell'UDH, in corrispondenza del campo reference_number il valore 02): 05 00 03 02 03 01 UDHL: the next 5 octets are UDH (header) concatenated message using 8-bit numbering information element length (3 octets follow) concatenated message number 2 (reference_number) there are 3 parts to this message this is part 1

05 00 03 02 03 02 05 00 03 02 03 03

UDHL: the next 5 octets are UDH (header) concatenated message using 8-bit numbering information element length (3 octets follow) concatenated message number 2 (reference_number) there are 3 parts to this message this is part 2 UDHL: the next 5 octets are UDH (header) concatenated message using 8-bit numbering information element length (3 octets follow) concatenated message number 2 (reference_number) there are 3 parts to this message this is part 3

E cos via, fino a FF (256) per poi ricominciare da 00.

You might also like