function [err] = BK_EnableRemote(sp,on)

PACKET_LENGTH = 26;
LoadCmdPacket = zeros(1,PACKET_LENGTH);
LoadCmdPacket(1:3)  = [ hex2dec('aa') 00 hex2dec('20')];

if(on == 1)
  LoadCmdPacket(4) = 1;
else
  LoadCmdPacket(4) = 0;
end
  
LoadCmdPacket(end) = rem(sum(LoadCmdPacket(1:end-1)),256);  %Compute checksum

fwrite(sp,LoadCmdPacket);
 [A, count] = fread(sp,PACKET_LENGTH);

 if(count == 0)
     err = 1;
 else
   if(A(4) == hex2dec('80'))
     err = 0;
   else
     err = 1;
   end
 end
end

