Serial Comm on MC92

I have a MC92N0 that originally came with Windows Mobile 6.5.3 and custom piece of equipment that connects to the RS232.  Everything worked well on WM but there was a desire to change the OS to Android.  After some discussion with a Zebra representative it was concluded that I should be able to change the OS to Android KitKat without too much headache.  Most of the EMDK seems to work fairly well but any attempt to use the SerialComm API causes it to crash.  I've traced through the program line by line and it successfully opens the EMDK but crashes on the following line.

 

serialComm = (SerialComm) this.emdkManager.getInstance(FEATURE_TYPE.SERIALCOMM);

 

Any thoughts and ideas on how to resolve this would be greatly appreciated!

Pietro Francesc...
Hi Jessie,have you updated

Hi Jessie,

have you updated the EMDK runtime on the MC92 KK?

The Serial Comm API has been introduced in one of the latest releases and you may need to install a newer runtime on the device as explained in the docs:

Configuring A Device - Zebra Technologies Techdocs

~Pietro

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Jessie Streater
Hi Pietro,Thank you for your

Hi Pietro,

Thank you for your quick response!

I ran the "Device Runtime Deployment" and it installed the EMDK 6.3.23 UpdateApp but the app fails.  While connecting to the update installer service it gives the following error...

"Not allowed to bind to service Intent {act=com.motorolasolutions.emdk.proxyframework,iPrivilagedCommandRunner}"

Thoughts?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Jessie Streater
I pulled the MLogs during the

I pulled the MLogs during the time of the crash.  I was hoping this would help in determining the root cause of the EMDK Update Service Crashing. 

04-25 07:51:09.804   480   699 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.symbol.emdkosupdater/.MainActivity} from pid 823

04-25 07:51:09.968  1894  1894 D android.widget.GridLayout: vertical constraints: y1-y0>=644, y2-y1>=0, y2-y0<=428 are inconsistent; permanently removing: y2-y0<=428.

04-25 07:51:10.070  1894  2431 D dalvikvm: GC_FOR_ALLOC freed 387K, 14% free 3266K/3768K, paused 23ms, total 23ms

04-25 07:51:10.125  1894  2431 D Praveen : versionValue 4.4.4 nodeorg.apache.harmony.xml.dom.ElementImpl@419e2a68OS4.4.4

04-25 07:51:10.125  1894  2431 D UpdateConfig: /enterprise/usr/emdkosupdateconfig.xml does not exists. Default config will be used.

04-25 07:51:10.125  1894  2431 D Praveen : SDK_Version=19 false

04-25 07:51:10.132  1894  2431 W ContextImpl: Implicit intents with startService are not safe: Intent { act=com.motorolasolutions.emdk.proxyframework.IPrivilegedCommandRunner } android.content.ContextWrapper.bindService:517 com.symbol.emdkosupdatelib.UpdateManager.bindToPrivilegedCmdRunner:235 com.symbol.emdkosupdatelib.UpdateManager.startDeviceUpdate:154

04-25 07:51:10.132   480   770 W ActivityManager: Permission Denial: Accessing service ComponentInfo{com.motorolasolutions.emdk.proxyframework/com.motorolasolutions.emdk.proxyframework.PrivilegedCommandRunnerService} from pid=1894, uid=10105 requires com.motorolasolutions.emdk.proxyframework.permission.BIND_PRIVILEGED_COMMAND_RUNNER

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
Are you running the latest

Are you running the latest KitKat OS?  Serial port support on this device is new in BSP 02.14.1108

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Jessie Streater
I just had the OS changed

I just had the OS changed over to Android so I assume that the service rep used the latest and greatest but it guess its possible that he didn't.

On the About Screen it has the following...

EA Version

2.47

SSPAM

4.8

IST Version

1.13

Android version

4.4.4

Kernal version

3.4.48-dirty

tw023827@MandN09 #2

Tue Mar 3 10:51:29 CST 2015

Build number

99-4AJ22-K-0007-0003-00-M1-031115

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Jessie Streater
When I dig into the

When I dig into the application package information it shows that the EMDK Service is Version 3.1.10

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Jessie Streater
My development machine is

My development machine is using Android EMDK 6.3.  Not wanting to risk messing up its configuration I moved over to my Mac.  I download all of the EMDK versions and attempted to upgrade the device's EMDK versions in order.  It allowed me to update to EMDK 4.2 but not go any further.  Attempts to upgrade to 5, 6, or 6.3 fails with the following error.

"Not allowed to bind to service Intent {act=com.motorolasolutions.emdk.proxyframework,iPrivilagedCommandRunner}"

The package information for the EMDK Service now says it is on Version 4.0.4.0.  I assume that the root cause of my original problem is the version of the EMDK running on the device.  How do I resolve this Service Intent error so that I can install the latest EMDK?  Thoughts?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
That does not appear to be

That does not appear to be the latest.  According to the release notes the build number would be.02-13-08-4AJ22-K-00-M1-110816

MC9200 Operating System BSP 02.14.1108 - Recovery Update Package Release Notes

Downloads are here:

MC9200 Operating System for Premium SKUs Support & Downloads | Zebra

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Jessie Streater
Thank you for the links!  I

Thank you for the links!  I registered with the site and received a confirmation to access the software downloads portal.  It asked me for the serial numbers and refused download due to not being entitled.  My MC92N0s are used for development purposes in new product development.  How do I download the update or become "entitled" to download the update?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Anonymous (not verified)
Your device would typically

Your device would typically have to be under a support contract or still under warranty to be entitled.  You might want to call support and see if someone can help you.

Contact Tech Support

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments