Hi All

 

I have built a GPS Tracking Server using CF and it has a Java Listener
written to listen for incoming packets being sent to the server. The packets
are received and stored into a specific sql table and then I have a cold
fusion page that runs after each packet it received to further process the
data received and all that works perfectly

 

I also have  socket script that sends tcp packets to an external server ever
60 seconds where the server then sends a response back to the packet
received in order to acknowledge that the packet has been successfully
received by the external server, that too works like a charm

 

Here is my challenge

 

My gprs devices can send heartbeat tcp packets to the server at set
intervals eg every 5 minutes, The heartbeat packet sends a unique identifier
to the server that identifies the specific device the packet has been sent
from

 

I need to be able to keep the socket connection open for that 5 minutes and
store the socket id along with the unique identifier (IMEI number)in a
database table. Each time a new heartbeat is received from a specific device
the table is updated with the latest socket id associated with that imei
number. 

 

Example being

 

Device sends the heartbeat packet periodically, the user of the device wants
to send an update command to the device via GPRS therefore they log onto the
portal and send the command via the portal interface. The portal then knows
the imei number of users device, looks up the table to fund the imei and its
corresponding (current open socketid and then sends the packet data to the
device using said socket id 

 

Can anyone shed some light on how to achieve the above and or know of any
sample code that may already perform the above function of being able to
read the socketid used to received an incoming packet and then be able to
reuse that same open socket to send other data back to the device

 

I welcome your assistance re the above

 

 

 

 

Kind Regards

 

Claude Raiola

Director

 

logo_new

 

TrackingCentral Pty Ltd (A.C.N. 150 409 180)

Web: www.TrackingCentral.com.au <http://www.trackingcentral.com.au/> 

Email: [email protected]

Call 1300 255 990

 

-- 
You received this message because you are subscribed to the Google Groups
"cfaussie" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/groups/opt_out.

<<image001.gif>>

Reply via email to