Switch to receive mode:
PosUtil.setRs485Status(0);
Call Posutil static method Setrs485status (), set the parameter value to 0, if the return value is 0, successfully switch to receive mode, if not 0 the switch fails.
Switch to send mode:
PosUtil.setRs485Status(1);
Call Posutil static method Setrs485status (), set the parameter value to 1, if the return value is 0 successfully switch to send mode, if not 0 the switch fails.
If you want to send or receive data,please use android common Serial port API.