1. overview
	rdp_transfer works as agent to receive ramdump message from pxa1826 device and
	forward the message to PC tftp server through LAN interface

2. how to configure rdp_transfer

	a. LAN interface name,
		#define ETH_NAME "eth0"

	  by default the LAN interface name is defined as eth0, we should change
	  it to match the lan interface name on the HOST AP

	b. define RAMDUMP_EXEC_ONLY_ONCE
	  if this macro is defined, rdp_transfer only dump once and then exit.
	  rdp_transfer can be started at boot up stage and checks if the rdp usb
          device is online or offline, when the usb ramdump goes online and ramdump
          transfer begins. 
	
	  if this macro is not defined, rdp_transfer polls the usb ramdump device
 	  every one second until usb ramdump device get online. rdp_transfer continues
	  polling next event when one ramdump finishes

	c. when to start rdp_transfer
		1). start it in boot script
		2). start it when usb ramdump device goes online, this needs the help of udev like hotplug program

3. how to compile the code
	Makefile is provided in the source directory, what need to be done is to
	modify the tool change defined in the Makefile

	CC = gcc // change it to cross tool change on your platform
	LD = ld // change it to cross tool change on your platform
	AR = ar // change it to cross tool change on your platform
	
	for android host, the example command is listed as below,
	. build/envsetup.sh
	lunch dove_phone-userdebug							//dove_phone-userdebug is project name
	mmm -j12 vendor/asr/telephony/diag/rdp_transfer		//suppose the rdp_code is put at vendor/asr/telephony/diag/rdp_transfer
	
4. before run rdp_transfer, we should start tftp server on PC and connect one LAN cable from PC to HOST AP LAN interface

5. How to enable ramdump on ASR1826
	The ramdump function is disabled by default on ASR platfrom, we need to type
	at command to start the server

	in the uart console to start serial_client
	in the serial_client console send below at cmd to start ramdump and then CTRL+C to exit
	at+aconfig="RDUP=1"

	While we need send below at cmd to disble ramdump function
	at+aconfig="RDUP=0"
	
	
