cancel
Showing results for 
Search instead for 
Did you mean: 

MI client connectiong to Different Servers

Former Member
0 Kudos

HI folks,

I am trying to connect my MI client to different server than the previous.But after synchronisation,it says 'device unknown in system of server'.

I had faced the same problem previously.But at that time i had uninstalled MI client and installed again and changed the settings.

But thats not the actual solution for the problem.What should i do if i want that my client should connect to many servers?

I tried changing the device Id from config file.Device id is changed but that device is not recognised in the new server.

how should i proceed?

-Rucha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Rucha,

Device Ids are generated by a MI server during the first sync of the client with that server. This is maintained in the server and used later during communication for identifying the target client device for sending data.

You are getting the error becoz the device id assign to the client device is from the first server. When the client syncs with second server, the server tries to locate the device id sent by the client in its set of registered device ids. Since it has not generated, it fails to locate it and eventually ends up giving the error.

In conclusion, a client at a time can only be assigned to one server.

Regards,

Rahul

Former Member
0 Kudos

hi Rucha,

The cardinality between MI Client & Server is 1:1 and the cardinality between Server & Backend is m:n.

So, any MI Client can connect to MULTIPLE BACKENDS thro ONE MI SERVER.

as in your case, it will throw an error. but if you want to re-initialize the MI CLIENT, please refer to the blogs by Jo Gel Santiago in the Mobile BLOG area.

this will reset the client (remove the device id) and make it look like a fresh client.

Regards

Ak.

Answers (1)

Answers (1)

Former Member
0 Kudos

hello rucha,

this sounds interesting.

without having multiple MI installations, you can create

a sort of switcher that will let you sync with different

MI servers. you have to use some of the tricks with i

already had described in some of my blogs.

let's say that you have your current MI client assigned

with deviceID XXXXXX on server XXX. now you want it to

sync as well on server YYY wherein it will be assigned

with a new deviceID let's say YYY.

what you have to do is to move all the persistent files.

1) move all these files to temp location

files like data folder, config files, mi registry etc.

2) reinit mi

3) assign new setting values and sync to new mw

now, you need to create a util program (like batch file)

in moving your persistent files from the former one or

to other image. e.g. from your YYY image back to XXX img

and vice-versa

let me know if you need some more details...

regards

jo