We help IT Professionals succeed at work.
Get Started

How to fetch data from a digi cell modem device via Java

304 Views
Last Modified: 2012-05-12
I am new and want to lear how real time communication takes place and how can I implement it. Let me explain the objective.  

I want to write a program in JAVA that will connect to a remote assets let's say TRUCKS. (The big trucks that carry cargo) Trucks have a digi device (cell modem)  installed which is connected to the onboard computer (via a serial port, each truck has a computer).
All the event logs, status messages etc. are on the computer. I will need to connect to the Digi (cell modem) device by sending the IP address and the port. For example, I will need to send a command "connect me to  this IP at this port.
The commands/messages that I send to the Digi device (cell modem) will be relayed to the computer and responses from the computer will be sent by the  Digi (cell modem) to my Java program which will put them in a queue.

I need to talk to the Digi device. Let's say there are 1,000 truck. I will perhaps need to store 1,000 IP and port #s in the database. My java program will pull the IP and port info from the database and send 1,000 command to 1,000 unique trucks.

Let's say, we need to downlaod event logs/status messages from 1,000 truck every 15 minutes. So I will need to send a command to the Digi device (cell modem) everything 15 minutes for all 1,000 trucks.

How can I write such program to fetch data from a digi cell mode, device?
I can use one of the following protocols:

XMPP (Jabber)
HTTPS
SSL
Secure FTP
Secure MQ

I would like to know which one should I choose and why? (I am looking for recommendations).
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE