Ejemplo n.º 1
0
def connectReq(physAddr):
    prolog = [0xBC, 0xAF, 0xFE]
    epilog = [0x60, 0x80]
    request = prolog + helper.wordToBytes(physAddr) + epilog
    fcs = helper.checksum(request)
    request.append(fcs)
    return request
Ejemplo n.º 2
0
def connectReq(physAddr):
    prolog = [0xBC, 0xAF, 0xFE]
    epilog = [0x60, 0x80]
    request = prolog + helper.wordToBytes(physAddr) + epilog
    fcs = helper.checksum(request)
    request.append(fcs)
    return request
Ejemplo n.º 3
0
 def requestTransmission(self, frame):
     frame.append(helper.checksum(frame))
     self.expect(0x00, 0x00, len(frame))
     return self.command(frame, AWAITING_RESPONSE_TRANSMISSION, TransmissionCommand, makeLDataRequest)
Ejemplo n.º 4
0
 def requestTransmission(self, frame):
     frame.append(helper.checksum(frame))
     self.expect(0x00, 0x00, len(frame))
     return self.command(frame, AWAITING_RESPONSE_TRANSMISSION,
                         TransmissionCommand, makeLDataRequest)