Re: semi-octet kavramı
yalcinaygul yazmış
arkadaşlar sizlere bir sorum olacak,semi -octet cevrim durumu ile ilk defa karşılaşıyorum,fakat durumu çözemedim
a-) To obtain data from a string that is written as a semi-octet, you have to swap the semi-octet string. If the length of a semi-octet string is odd, you have to add an extra "F" to make it even, so that you get a proper octet string.
Example:
"13 46 61 00 89 F6" becomes "31 64 16 00 98 6F"
b-) Time stamp is represented in semi-octets (See note a). So "20 80 62 91 73 14 08" becomes "02 08 26 02 29 17 31 80". The first 6 characters represent the date, the next 6 characters represent the time, the last 2 characters represent the time-zone related to the GMT.
yukarda anladığım kadarıyla eğer dizi uzunluğu tek ise F ekle diyor fakat f yi ekliyorum ama 02 08 26 02 29 17 31 80 hexe sayısını elde edemiyorum...acaba bana yardımcı olurmusunuz
Sanırım şöyle diyor:
Semi-octet şeklinde yazılmış stringden veri elde etmek için octet stringi swap(takas etmek/yer değiştirmek) yapmak zorundasınız.Semi-octet string uzunluğu tek ise çift yapmak için F eklemek zorundasınız. Sonuç olarak tam doğru bir octet string elde edersiniz. ....
Yukarıda F eklerse yine F li bişey elde ediyor. Ama sen F eklediğinde neden F siz bi sayı bekliyorsun? Çift uzunluklu bir string ile çalışıyorsan datasheetin tamamına bakmamız daha uygun olacak sanırım.
Terim olarak da semi-octet nibble(4 bit) manasına geliyormuş google'un yalancısıyım
http://encyclopedia2.thefreedictionary.com/Semioctet Başa dön