Re: Kannel OMA-OTA

Paul P Komkoff Jr <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Department of Fish & Wildlife
Message-ID <[email protected]>
Replying to Edward C.A. Tromp:
> Hi Paul,

I'm Paul too, so I'll respond

> I tried it with Motorola ones without luck
> the messages arrived and the phone but when i try to enter the pin it give
> incorrect pin number but i enter the right one.

I do not use kannel or mbuni for OTA configuration tasks. I have my
own ota-configurator, written in python. I've spent many hours
debugging it (actually fighting with braindamaged phone models), but
at the end code to deal with OMA phones in general and motorola phones
specifically is very easy:

  def sendOMA(self, sender, dst, fn = "motorola-gsm.bin", **kw):
    data = file(self.trn(dst, fn), "rb").read()
    wsp = MakeOMAWsp('1234', data)
    pload = wsp + data
    sendWithUDH(sender, self.src, dst, pload, SPort = 9200, DPort = 2948)

def MakeOMAWsp(key, data):
  mac = hmac.new(key, data, sha)
  d = '\x01\x06\x2f\x1f\x2d\xb6\x91\x81\x92' + mac.hexdigest().upper() + '\x00'
  return d


that's all


-- 
Paul P 'Stingray' Komkoff Jr // http://stingr.net/key <- my pgp key
 This message represents the official view of the voices in my head
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.