Portál AbcLinuxu, 14. května 2025 01:12
jde nastavit i neco jineho, nez 0 a 1 :)
zkuste to zadat v hexa (viz manual), treba
class 0x830108;
zatim pouzivam sitovani prez pand a seriaky prez rfcomm, ale rad bych casem rozchodil HID server (aby jedno PC umelo posilat klavesnici+mys do jineho)
Major service class byte allocation (from LSB to MSB): Bit 1: Positioning (Location identification) Bit 2: Networking (LAN, Ad hoc, ...) Bit 3: Rendering (Printing, Speaker, ...) Bit 4: Capturing (Scanner, Microphone, ...) Bit 5: Object Transfer (v-Inbox, v-Folder, ...) Bit 6: Audio (Speaker, Microphone, Headset service, ...) Bit 7: Telephony (Cordless telephony, Modem, Headset service, ...) Bit 8: Information (WEB-server, WAP-server, ...) Example: class 0x02hhhh : the device offers networking serviceTohle se týká čistě toho, co je na znaku n 0x0n0100, když místo něj bude například 6ka, bude povolena služba audio, chápu to tak správně? A co kombinace více služeb?
class 0xSSDDdd (three bytes)
SS: Service Class
DD: Major device class allocation
dd: Minor device class allocation
hodnoty jednotivych bitu v bytu se scitaji (a ja myslel, ze tohle se bezne uci ve skole)
6tka = 4+2 (=0*2^3 + 1*2^2 + 1*2^1 + 0*2^0)-> Networking + Rendering
na prevod jsem posilal tu wikipedii
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.