Changes between Version 8 and Version 9 of Software/GatewayDBus


Ignore:
Timestamp:
07/20/10 14:50:44 (14 years ago)
Author:
art
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Software/GatewayDBus

    v8 v9  
    3939== D-Bus connection == 
    4040 
     41Per default the daemon creates a connection "'''openbm.ibus.BMW'''" on the D-Bus. In the current version there is only support for simple raw message passing with slightly format change. So on every received message over the IBus the daemon send a signal message to the D-Bus: 
     42{{{ 
     43signal sender=xxx -> dest=(null destination) serial=xxx path=/openbm/ibus/BMW; interface=openbm.ibus; member=RawMessage 
     44   byte 192 
     45   byte 104 
     46   uint32 2 
     47   array [ 
     48      byte 50 
     49      byte 16 
     50   ] 
     51}}} 
     52Here the first byte of the signal indicates the '''source''' node of the IBus, here 192=0xC0, and the second byte indicates the '''destination''' node, here 104=0x68. The third component of the message is always an unsigned integer indicating the amount of '''data''' passed with the message, in this example 2 bytes. And lastly an array containing the data bytes is submitted, in this case {50=0x32, 16=0x10}.  
     53 
     54Signals in this form received over the D-Bus are accepted by OpenBM-Gateway and translated into IBus message frames and sent over the wire. 
     55 
    4156---- 
    4257{{{