Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 12 of 12

Thread: Help with a Java Web aplication

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Help with a Java Web aplication

    Hi all. I want to know if maybe anyone cant help me. Im so bad in Java, just I programm in C or Phyton, but I need make a web aplication for can send commands to a GPS (Skypatrol TT8750), just need 3 datas: IP, Port, and a box for write the command, these command have to be convert to hexadecimal, and have add 00010400 at the start for exaple: the messege is hi, in hexa is:6869 then I have to send 000104006869 in the messege, I want to have the option for write the IP and Port.

    I dont know if these is a hard work, but I really need help in that. I hope anyone can help me with these java code.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Help with a Java Web aplication

    a web aplication for can send commands to a GPS
    How does the user send his commands to the GPS device?
    Where is the user?
    Where is the GPS?
    How are they connected?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Sep 2013
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Help with a Java Web aplication

    The GPS use GPRS, then Is possible send data by internet using UDP protocol.
    The Gps is installed in a car, and sending hex data by UDP is not important where the user is connected, can be in a diferent country.
    I forget write this, when i send a commmand, the GPS reponse too, with an OK, or with the petticion that I ask to him, for example a location, these messege is as TEXT, then i need read UDP incomming too, if I say I want to send by port 1722, the GPS send messege to by these port and at the same IP that is sendding the commands, and is importand to know these messege, then I need it too.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Help with a Java Web aplication

    I don't know anything about GPRS. How does it work? Does it use radios to send and receive data?
    Are there computers connected to the radios? Is there software that executes on the computers that take data and transmits/receives it through the radios?

    Where is the internet connection? The question's title has the word: "Web" which I assume means the internet.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Sep 2013
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Help with a Java Web aplication

    These work like a normal connection, like a phone. The GPS have a public IP, and i decide the port that is going to have when i programm the GPS before being installed in a car.

    Just need send hex data by UDP, and read the incomming frames by the same port i decided to send the data.

    Its same as Hercules work. In this link you can download hercules for see how work, Releases for Hercules | Drupal. I need same thing but in a java web aplication. and Just as UDP.

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Help with a Java Web aplication

    Does the GPS device act like a server? You send it a request via an IP address/port and it returns a response?
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Junior Member
    Join Date
    Sep 2013
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Help with a Java Web aplication

    Thats ok

  8. #8
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Help with a Java Web aplication

    If post#6 is correct, what code do you need to write to communicate with the GPS/Server? Will the code you write be executed on a PC that is connected to the internet?
    If you don't understand my answer, don't ignore it, ask a question.

  9. #9
    Junior Member
    Join Date
    Sep 2013
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Help with a Java Web aplication

    exactly

  10. #10
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Help with a Java Web aplication

    What problems are you having with the code?
    If you don't understand my answer, don't ignore it, ask a question.

  11. #11
    Junior Member
    Join Date
    Sep 2013
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Help with a Java Web aplication

    Thats the problem, i dont know anything about Java. I dont have done anything.

  12. #12
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Help with a Java Web aplication

    i dont know anything about Java
    That will make it hard to write a java program. If you are not going to learn java programming, Perhaps you should hire a java programmer to write the program for you.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 0
    Last Post: July 24th, 2013, 07:17 AM
  2. Java Web application Standards for web 2.0
    By srautpyaa in forum Java Theory & Questions
    Replies: 0
    Last Post: May 27th, 2013, 07:46 AM
  3. Calculator Aplication
    By hellhunt in forum Android Development
    Replies: 4
    Last Post: April 2nd, 2013, 10:07 AM
  4. Jain SIP for Voip aplication !
    By khalilghenimi in forum Java Networking
    Replies: 5
    Last Post: May 10th, 2011, 05:45 PM
  5. Java web client - > .NET web service
    By codeJ in forum Web Frameworks
    Replies: 0
    Last Post: July 8th, 2010, 04:34 AM