Hello,
I have your TicketValidator T20 and I have SDK,
If I call methods about RS485Reader for all I get result -1.
Here is my code:
RS485Reader mRS485Reader = new RS485Reader(this);
Log.d(TAG,"Starting RS485 reader.");
int result = mRS485Reader.rsOpen(CommonConstants.RS485Type.RS485_1,9600);
Log.d(TAG,"Result of starting RS485 reader: "+result);
Log.d(TAG,"Setting mode RS485 reader.");
result = mRS485Reader.setMode(CommonConstants.RSMode.RECV_MODE);
Log.d(TAG,"Result of setting mode RS485 reader: "+result);
In both operations rsOpen and setMode I get result -1 and i LogCat I found error after calling the methods:
android.content.pm.PackageManager$NameNotFoundException: Application package com.common.service not found
Do I need to have any other package or SDK for these methods to work? Or what is the problem?
Thanks