Skip to content

Android phone: application and forwarder

grassig edited this page Sep 27, 2015 · 1 revision
  • Application (RFDuino test app - like):

    • Scanning:
      • shows list of devices
      • For each device
        • create a BLE transport / face
      • Registers the announced name (UUID) and the face in the FIB
    • User event:
      • select the desired arduino from the list
      • click on sendInterest button:
        • create an Interest with name UUID/XX
        • Sends the Interest
  • Forwarder:

    • OnReceiving Interest from a local application:
      • standard procedure: lookup on the FIB, sends the Interest using the correct transport/face
    • On prefix registration if not already present, create a FIB entry
  • BLE Face / Transport

    • On sending Interest out:
      • if device is not connected, connect to the arduino device associated with this face
      • After the connection is completed:
      • (space optimization) remove the first component from the Interest name (UUID)
      • create packet (if bigger than 20 bytes -> fragmentation)
      • set a timeout
    • On receiving a data packet:
      • handle fragmentation
      • when the packet is complete:
        • create a compliant NDN data packet
        • Add the UUID to the name prefix (first component)
        • sends data to the forwarder
        • disconnect the device
        • remove the timeout
    • On timeout:
      • Data transfer failed : disconnect the device
      • Notify the application? (HOW?)
Clone this wiki locally