کلینیک فوق تخصصی اکسس ( کاربرد vba در اکسس )

کلینیک فوق تخصصی اکسس ( کاربرد vba در اکسس )

به اشتراک گذاری اطلاعات کسب شده در اکسس از سایت آفیس و سایت های تخصصی خارجی
کلینیک فوق تخصصی اکسس ( کاربرد vba در اکسس )

کلینیک فوق تخصصی اکسس ( کاربرد vba در اکسس )

به اشتراک گذاری اطلاعات کسب شده در اکسس از سایت آفیس و سایت های تخصصی خارجی

Concatenates message



If you send a long text message containing only characters that are part of the GSM 03.38 character set, then each SMS segment can contain up to 153 characters. (140 bytes - 6 bytes for the concatenation header leaves 134 available bytes, or 7 * 134 = 1072 bits. The most 7-bit characters that can be packed into 1072 bits is 153.)

If you send a long text message that includes any characters that require Unicode encoding, then each SMS segment can contain up to 67 characters. (67 * 16 = 1072 bits)


140×8=1120   1byte=8bits 

160×7=1120    1byte=7bits

1120-6×8(see below)=1072

1072/7=153 in 7bit 

1072/8=134 in 8 bit 


05 00 03 CC 02 01=6Byts=6×8bits=48bits


in 12bits ( Unicode )  like persian

(1072-48)/16=67 Characters can be sent in  each part



UDHI 


05 00 03 44 03 01


05 : Length including 5 byte
00 : indicate multipart
03 : Subpart length
44 : Refrences from 00 to FF
03 : Total number to be send
01 : Sequence number



در ارسال بصورت پَک شده ۷ بیتی برای ارسال پیامک
چند پارتی 153 کاراکتر قابل ارسال است و در ۸ بیتی
134 کاراکتر ... در یونیکد یا 16 بیتی تنها 67 کاراکتر
را می توان در هر پارت ارسال کرد تا در مبدا بصورت
پیوسته در قالب یک پیام مشاهده شوند.

در ارسال بصورت پک شده ۷ بیتی می بایست در ابتدا
hex اسکی کد کاراکتر را برعکس نموده و تبدیل به
باینری کرد ، سپس محاسبه کرد که چند صفر قبل از
اولین کد باینری قرار گیرد تا تعداد جمع مجموعه بر ۸
تقسیم پذیر باشد.۷ رقم ۷ رقم جداسازی کرده و به هگز
تبدیل می نمائیم ، هگزهای بدست آمده را از آخر به اول
مرتب کرده و آنرا به کاراکتر تبدیل می کنیم.
در ارسال بصورت ۸ بیتی همان تبدیل به هگز کافیست
در ارسال بصورت ۱۶ بیت هم همان کد یونیکد کاراکتر
قرار می گیرد.


مثال در ارسال بصورت پَک ۷ بیتی :
فقط کدهای اسکی در ۷ بیتی مجاز هستند
ارسال کلمه Hi ... به طول ۲ بایت
Hex(H)=48
Hex(i)=69
هگزها را از آخر به اول مرتب می کنیم
69 48
هگزها را به باینری تبدیل می کنیم البته ۷ بیتی
یعنی جدا کردن ۷ رقم از سمت راست بایتری ۸
بیتی
69 : 01101001
48 : 01001000
حال باید از سمت راست ۷ رقم جدا کرد
1101001 1001000
در اینجا چند صفر می بایست قبل از باینری اول
قرار داد؟ تا جائیکه تعداد کل بر ۸ بخشپذیر باشد
2×7=14
16 بر ۸ بخشپذیر است لذا اگر 14 را از 16 کم
کنیم عدد باقیمانده 2 است پس 2 تا صفر اضافه
می کنیم
00 1101001 1001000
شروع به جداسازی ۷ رقم ۷ رقم می کنیم
00110100 11001000
باینری را به هگز بر می گردانیم
34 C8
هگزها را از آخر به اول مرتب می کنیم 
C834

0011000A9189010035850000AA02C834

PDU Type : 11
MR : 00
DA : 0A918901003585
PID : 00
DCS : 00 7bit ( Alphabet )
VPF : AA ( 4 days validity period )
UDL : 02 Length of char in hex
UD : C834 ( Hi )


129÷16=8 , Reminder=1
145÷16=9 , Reminder=1
129- if the value of address does not start with
a "+" character. For example, "85291234567".
145- if the value of address starts with a "+"
character. For example, "+85291234567"

Address 

octetMeaning
0address length in nibbles (semi-octets)
1EXT, TON, NPI
2-11address digits

EXT : 1

TON : Bit 6 5 4  Type Of Number 

Bit
6 5 4
Meaning
0 0 0Unknown
0 0 1International number
0 1 0National number

NPI : Bit 3 2 1 0 : Numbering plan
0 0 0 1ISDN/telephonenumbering
plan (E.164/E.163)

10010001=91 (+)
10100001=A1
10000001=81

0011000A9A89010035850000AB02C8348
00110008A1010035850000AB02C8348
hex(9A)=9×16+10=154(decimal)
hex(A1)=10×16+1=161(decimal)







پس از کشته شدن مرحوم کیان پیرفلک
به دست تروریست‌ها مادر وی سبک 
جدیدی از بلاگری به نام بلاگری خون 
را آغاز کرد. این کار اکنون باعث
 شهادت یک افسر پلیس در ایذه و 
یتیم شدن پنج فرزند او شده است.
 حالا خواهر قاتل افسر پلیس هم به 
بلاگری خون روی آورده است.

















SMS-SUBMIT in 8bit





It is possible to use a 16 bit CSMS reference number in order to reduce the probability that two different concatenated messages are sent with identical reference numbers to a receiver. In this case, the User Data Header shall be:

  • Field 1 (1 octet): Length of User Data Header (UDL), in this case 06.
  • Field 2 (1 octet): Information Element Identifier (IEI), equal to 08 (Concatenated short messages, 16-bit reference number)
  • Field 3 (1 octet): Length of the Information Element (IEL), excluding the IEI and the IEL; equal to 04
  • Field 4 (2 octets): 0000-FFFF, CSMS reference number, must be same for all the SMS parts forming the concatenated message
  • Field 5 (1 octet): 00-FF, total number of parts. The value shall remain constant for every short message which makes up the concatenated short message. If the value is zero then the receiving entity shall ignore the whole information element
  • Field 6 (1 octet): 00-FF, this part's number in the sequence. The value shall start at 1 and increment for every short message which makes up the concatenated short message. If the value is zero or greater than the value in Field 5 then the receiving entity shall ignore the whole information element.




0051000C912943524295050004AA0F060804112F01014869206475646521


-SCA : 00

-PDU Type : 51 (01010001)

from right 

bit0,1: 01:SMS-SUBMIT

bit3,4 : 10 : VPF present

bit6 : UDHI present

-MR : 00

-DA : 0C91294352429505

lengrh : 0C : 12

number : +923425245950

-PID : 00

-DCS : 04 ( 8 bit ) binary

-VPF : AA

-UDL : 0F : 15

-UDHI : 060804112F0101

-UD : 4869206475646521

Hex to string : put above UD 

https://codebeautify.org/hex-string-converter