Hello,

This Autoscan code has been modified by me (Saurav Chatterjee) for use in a cse477 project.  We are making a shopping assistant for the blind.


The payload is laid out as follows (also found in AutoScanRFIDdef.h):

typedef struct Payload
{
  uint8_t num;
  uint16_t RID;
  uint16_t UPID;
  uint8_t data[MSG_PAYLOAD];
} Payload;


with the values:

enum {
  MAX_RFID_PACKET = 50,
  MAX_TID = 16,
  MSG_PAYLOAD = 24,
  READER_ID = 0	//0xffff
};

As of now in AutoScanRFIDM.nc , we set:
UPID = 0x00;
num = 255;

on every send.

However, Reader ID or "RID" is set to 0xff for cash registers and 0x01 for gloves.



./asf 4444 /dev/tts/3 57600
./sflisten localhost 4444 
