Menu

mologogo - not receiving data

Help
Anonymous
2009-02-09
2013-06-12
  • Anonymous

    Anonymous - 2009-02-09

    //using OpenGTS 2.0.4 on Windows XP//

    Hi,

    I have trouble getting data from my Samsung Omnia using mologogo.

    The phone is using Windows Mobile 6.1. Alturl is set to  http://XX.XXX.XXX.XXX:8000/mologogo/Data?ID=omnia&

    *8000 port is opened.
    *mologogo - my opengts account name (I stayed with the default one)
    *omnia - my device name

    Questions that come in mind:

    #Do I need to enter my login and password for the mologogo service in the configuration in the phone?
    (I tried without being logged in, and with being logged in, but nothing makes a difference)

    #I have followed the instructions provided in the .pdf file while setting up OpenGTS. I haven't touched any fancy configuration files. Everything is left with default values. Is it necessary to customize something (Either in the phone or somewhere in OpenGTS) ?

    When I open this link http://XX.XXX.XXX.XXX:8000/mologogo/Data?ID=omnia& in the web browser, reports get generated on the "track/Track" page but without any geo data.
    Does this mean that OpenGTS itself is fine but the problem lies within the phone?

    I would like to apologize if my description and questions are not too precise. I have to admit I am not a computer geek and setting everything up took me a while.

    Any help, suggestions would be highly appreciated.

    Thanks in advance!

     
    • Martin Flynn

      Martin Flynn - 2009-02-10

      Hi Michal,
      If you entered the URL "http://XX.XXX.XXX.XXX:8000/mologogo/Data?ID=omnia&" and you are seeing log activity in the Tomcat "catalina.out" file and even seeing data (without latitude/longitude) in the database, then your server is set up properly.  (You do not need to be logged-in to receive data from remote tracking devices).  It may be likely that the altURL feature may not be fully set up properly on the phone.
      Best Regards,
      - Martin

       
    • Anonymous

      Anonymous - 2009-02-10

      Hi Martin,

      I checked the  mologogo wiki pages and it seems that the altURL feature for windows mobile isn't fully implemented and doesn't work yet.

      Too bad  :(

       
    • Anonymous

      Anonymous - 2009-02-11

      Hi,

      I just got a more 'advanced' gps device.

      Unfortunately it's custom-made and I can't find much info about it's specification.

      It has plenty of settings that can be changed via SMS messages.
      Currently I got it set to transmit data to my computer's IP address through GPRS.

      The data is being received by a programme that was included with the device.
      The incomming data looks like this:

      KORJAR.PL,359587014219383,090211165237,51.895563N,018.949015E,0.00,1,F:4.32V,1 260 01 813A 3519,

      and is being saved into a text file.
      There's also a converter included that changes this into a google maps format.

      #Is this the NMEA protocol format?

      #Can the device be made compatible with OpenGTS?

      -If yes,  how much effort and what would be needed?
      My programming experience ends at "hello world".
      All I can do is follow instructions step by step, use a template and change some values manually to match my own needs.

      Thanks in advance for an answer :)
       

       
    • Martin Flynn

      Martin Flynn - 2009-02-11

      Hi Michal,
      The record format is not NMEA-0183.  WIthout the device protocol document, you could make an educated guess at some of the field. The latitude, longitude, and timestamp fields seem pretty obvious, but you would have to play around with the remaining fields to find out what is what.   The device data could be integrated with OpenGTS (using the example 'template' server), but would take some reverse-engineering work without the protocol documentation.
      Best Regards,
      - Martin

       
    • Anonymous

      Anonymous - 2009-02-11

      Hi,  I did some research and I found the documentation

      KORJAR.PL,359587014219383,090211165237,51.895563N,018.949015E,0.00,1,F:4.32V,1 260 01 813A 3519,
      ---------->
      359587014219383 - IMEI
      090211165237 - year/month/day/hour/mins/secs
      51.895563N - latitude
      018.949015E - longtitude
      0.00 - velocity
      1 - angle
      F:4.32V - battery level F - full
      1 - gps signal    0 - low
      260 - MMC code
      01 - MNC code
      813A 3519 - LAC and CID of the gsm transmitter which the device uses

      Can someone point me the way what with this knowledge can be done, and where in order to make this any useful?

      Thanks in advance!

       
    • Martin Flynn

      Martin Flynn - 2009-02-11

      Hi Michal,
      The OpenGTS_Config.pdf document (in the downloaded OpenGTS package) has some initial information regarding how to create a custom device communication server.   Since this appears to be a standard socket-based communication protocol, I would think that you would need to start with the example 'template' server at "src/org/opengts/servers/template/".
      Best Regards,
      - Martin

       
    • Anonymous

      Anonymous - 2009-02-16

      Hi,

      I have been playing around with it for a while now, but sadly without any success.

      I am not sure if I am doing it in the right order.

      I do a back-up copy of the original template folder at "src/org/opengts/servers/template/"

      Then I modify the 'Constans.java' and 'TrackClientPacketHandler.java' files at "src/org/opengts/servers/template/" to match my device.

      I cd.. to opengts and then use 'ant template' command.

      It creates a 'Template.jar' file at c:\opengts\build\lib

      And this is the point where I don't know if anything was done correctly.

      Because:

      #I don't know what to  do with the generated 'Template.jar' file. (And if this is a correct format. Should it be a .war format instead?)
      #I don't know how to test it.

      Any suggestions? Thanks in advice : )

       
    • Martin Flynn

      Martin Flynn - 2009-02-17

      Hi Michal,
      The example 'template' server build ("ant template") builds the "template.jar" file containing all the data parsing logic for the implemented device.  Assuming the jar file name remains "template.jar", the server can be started with the command "bin/runserver.pl -s template -i" for Linux, or "bin\runserver.bat -s template -i" on Windows (the '-i' option means 'interactive' where the logging output is printed to the console running the command).  This command will then cause the server to start listening for incoming connections from the server.

      The 'template.jar' server is for devices that send data using standard socket-based communications (UDP or TCP).  If your device uses an http-based protocol, then you would need to use a '.war' file server installed in Tomcat (such as the 'gprmc' server "src/org/opengts/war/gmrmc/".

      Best Regards,
      - Martin

       
    • Anonymous

      Anonymous - 2009-02-17

      Hi,

      Thanks Martin - I am one step futher now. But there's still something:

      If I have tomcat turned off it seems it works. The server starts listening and I am getting data. But when I have tomcat on I get this error:

      [ERROR|02/17 11:34:47|TrackServer._startTCP:194] Exception: ServerSocket error
      java.net.BindException: Address already in use: JVM_Bind
              at java.net.PlainSocketImpl.socketBind(Native Method)
              at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
              at java.net.ServerSocket.bind(ServerSocket.java:319)
              at java.net.ServerSocket.<init>(ServerSocket.java:185)
              at java.net.ServerSocket.<init>(ServerSocket.java:97)
              at org.opengts.util.ServerSocketThread.<init>(ServerSocketThread.java:14
      4)
              at org.opengts.servers.template.TrackServer._startTCP(TrackServer.java:1
      92)
              at org.opengts.servers.template.TrackServer.startPortListeners(TrackServ
      er.java:170)
              at org.opengts.servers.template.TrackServer.<init>(TrackServer.java:156)

              at org.opengts.servers.template.TrackServer.startTrackServer(TrackServer
      .java:60)
              at org.opengts.servers.template.Main.main(Main.java:190)
      [ERROR|02/17 11:34:47|Main.main:192] Error: java.net.BindException: Address alre
      ady in use: JVM_Bind

      I checked 'TrackServer.java' if there's anything to change but I don't see anything.

       
    • Anonymous

      Anonymous - 2009-02-17

      Uhm... It seems tomcat is running on the same port and that's why. (8000) But that's odd as I changed the port in 'constants.java' to a different one.

       
    • Anonymous

      Anonymous - 2009-02-17

      Okay. I  just changed the port in tomcat and  it's fine.  Thanks again Martin and sorry for that many posts (I wish there was an edit function  ) :)

       

Log in to post a comment.