Register  |  Login   Search
ThinkGeo - GPS Tracking and Mapping Solutions  |  Find us on: Twitter Facebook Google+ LinkedIn

Support Forums

The online community for users of Cygnus Track

Gateway SDK for .NET and Sample Listeners Now Available
Last Post 07-25-2012 04:12 PM by Frank. 21 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Page 1 of 212 > >>
Author Messages
ThinkGeo
ThinkGeo Support
MVP
MVP
Posts:18
Avatar

--
03-31-2011 12:46 PM  

Greetings all,

For those of you who are interested in integrating support for your own custom tracking devices into Cygnus Track, we've just posted some resources in our Developer Center that will help you.

The Cygnus Track Device Gateway SDK is an API wrapper for .NET. It automates much of the communication between your custom listener and the Device Gateway so that you only have to take care of the details. The download comes packaged with a CHM help file of reference documentation. We'll be working on making the documentation available to read online as well.

We've also posted a handful of sample listeners that you can use as a base to start developing your own. These listeners were developed in Microsoft Visual Studio 2008 against the Gateway SDK for .NET. There are a variety of listener types available for you to review and leverage, including:

  • Simple Sample Listener
  • TCP Sample Listener
  • UDP Sample Listener
  • Web Sample Listener
  • NMEA Web Sample Listener
  • Two-Way Communication Sample Listener

We hope you find these downloads useful! If you have any questions or need assistance, feel free to post here in the forums.

Thanks for using Cygnus Track!



Tags: news
Dwi
Poster
Poster
Posts:5
Avatar

--
02-17-2012 11:09 PM  
Hi,
I am trying the NMEA listener web sample.
Keep getting problems.
I use vs 2010, with web applications.
Here is the error message :

A first chance exception of type 'System.NullReferenceException' occurred in ThinkGeo.CygnusTrack.GatewaySdk.DLL
System.NullReferenceException: Object reference not set to an instance of an object.
at ThinkGeo.CygnusTrack.GatewaySdk.GatewayManager.LogDeviceError(String deviceId, String errorSource, String errorMessage)

What could be wrong ? I already typed the correct API key.


Frank
MVP
MVP
Posts:36
Avatar

--
02-20-2012 12:31 PM  
Dwi,
Thanks for your question. Could you try to access the gateway directly by https://gateway.cygnustrack.com/. See whether the gateway is accessible from your location.
If this could work. Could you zip your vs project to here? We could look into more detail.


Thanks

ThinkGeo Support


Dwi
Poster
Poster
Posts:5
Avatar

--
02-20-2012 11:08 PM  

 Here is my project file.

 


NMEA_Web_Listener.zip

Frank
MVP
MVP
Posts:36
Avatar

--
02-21-2012 10:58 AM  

Dwi,
    I noticed you modified some code. In the file default.aspx.cs line 34 you need change the code back.
Wrong one:
mGatewayManager = new GatewayManager();

Correct one:
mGatewayManager = new GatewayManager(new Uri(GatewayWebServiceUri), ApiKey);

We have fixed it. Attachment is the files we corrected.

Could you please try with the new files? And please let us know if you have any question.


Thanks

ThinkGeo Support
 


001_NMEA_Web_Listener.zip

Dwi
Poster
Poster
Posts:5
Avatar

--
02-22-2012 08:05 PM  
Hi, Frank. I tried the new files. It compiled fine.
When I started to debug, I got error : system.web.httpexception : file does not exist.

What could be the problem ? I think I installed VS 2010 correctly.


Frank
MVP
MVP
Posts:36
Avatar

--
02-23-2012 12:40 PM  

Dwi,
    Thanks for your question.
First you need set the default.aspx page as the Start  page. see attachment 1.png.

Then press “F5” button to start debug. An new IE form will popup. And you could type or paste the request to IE address bar. See attachment 2.png.

 


Thanks

ThinkGeo Support


1.png
2.png

Dwi
Poster
Poster
Posts:5
Avatar

--
02-23-2012 11:18 PM  
Thank you so much for your help. It's working now !


Frank
MVP
MVP
Posts:36
Avatar

--
02-24-2012 10:04 AM  

You are welcome. Please let us know if you have any question.

 

Thanks

 

Frank



raaiz
Poster
Poster
Posts:9
Avatar

--
07-24-2012 12:23 PM  
Hi Frank,

I want to use my device with cygnustrack - have downloaded the listener files and tried updating API Key / IMEI on sample listener - but since my knowledge of VS (using 2008 version) is limited, I perhaps am not updating the API in the correct field, which keeps saying incorrect API. Pls help.

Thanks - Raaiz


Frank
MVP
MVP
Posts:36
Avatar

--
07-24-2012 01:03 PM  

Raaiz,

     Thanks for your question. Could you attach your VS 2008 project file to here. I can look into more detail.

 

Thanks

 

Frank 



raaiz
Poster
Poster
Posts:9
Avatar

--
07-24-2012 01:27 PM  
Frank, managed to succesfully post. However my next problem is i need to send host ip and port to device for communication with server.

Can you pls help

Thanks - Raaiz





raaiz
Poster
Poster
Posts:9
Avatar

--
07-24-2012 01:27 PM  
Frank, managed to succesfully post. However my next problem is i need to send host ip and port to device for communication with server.

Can you pls help

Thanks - Raaiz





Frank
MVP
MVP
Posts:36
Avatar

--
07-24-2012 02:03 PM  

Raaiz,


I think you need check your device documentation to find out how to configure your device to report location to some IP(Server) and port.
Different device could have different way to configure the IP and port.

Please let me know if you have any question.

Thanks

Frank
 



raaiz
Poster
Poster
Posts:9
Avatar

--
07-24-2012 02:06 PM  

Hi again Frank,

I have got the instructions on how to configure the device. However, I need the host IP address and Port, to which the device should send the data via gprs? hope this makes sense.

Regards
Raaiz

 

 

Further to my message above, just to give you an example, i've had to send below command by sms to the device, when i had to set up to use with a software called coretelematics. (note - the device provider is atrack) 

at$gprs=1,"WAP","","","atrack.coretelematics.com",12072,0,3,30,1,1 

here - "atrack.coretelematics.com" is the host ip (can also send actual ip instead of host name) 
port - 12072 

Raaiz



You are not authorized to post a reply.
Page 1 of 212 > >>


Active Forums 4.2
NOT LICENSED FOR PRODUCTION USE
www.activemodules.com