User avatar
Gabor
GpsGate
Posts: 86
Joined: Thu May 16, 2013 3:43 pm

GUIDE: Camera event rules for TZone, ATrack

Tue Jul 30, 2013 1:11 pm

GUIDE: Creating Camera event rules for TZone and ATrack devices

Note: for this and newer articles, we recommend you to check our knowledge base here

Make sure you have Camera plugin installed.
Make sure you have updated the corresponding device plugin you use (TZone, ATrack).


Creating an event rule which triggers picture taking:
1) In your application, select Admin menu -> Event Rules -> Add new Event Rule
2) Fill the form of event rule wizard. (For example you can create a rule which takes a picture if the vehicle leaves a geofence)
3) In the notification step of event rule wizard, add a command notifier as shown below:
camera_notification_atrack.png
camera_notification_atrack.png (6.28 KiB) Viewed 5516 times
4) Save the event rule.



Regards,
Gabor
GpsGate Support

limyo
Posts: 375
Joined: Sat Jun 19, 2010 4:18 pm
Location: Cambodia

RE: GUIDE: Camera event rules for TZone, ATrack

Sat Mar 21, 2015 11:05 am

Hello Gabor,

I want to test camera with ATrack AT5v.
I have few question:
1- I edit device mapper but don't see Camera or Photo in device mapper. So which serial port I must connect camera to?
2- Can the plugin support 2 camera?

Thanks
Best regards

Yo Lim

User avatar
Gabor
GpsGate
Posts: 86
Joined: Thu May 16, 2013 3:43 pm

RE: GUIDE: Camera event rules for TZone, ATrack

Mon Mar 23, 2015 11:03 am

Hello Yo,

1) There is no camera related signal in ATrack device mapper. You can find more information about how to use the camera plugin: Camera plugin
2) The ATrack devices only support 1 camera.



Regards,
Gabor
GpsGate Support

limyo
Posts: 375
Joined: Sat Jun 19, 2010 4:18 pm
Location: Cambodia

RE: GUIDE: Camera event rules for TZone, ATrack

Mon Mar 23, 2015 12:59 pm

Hello Gabor,

Thanks for your support.
I will try.

Best regards

Yo Lim

grigor
Posts: 90
Joined: Mon May 14, 2012 6:41 pm
Location: Albania
Contact: Facebook Twitter Skype

RE: GUIDE: Camera event rules for TZone, ATrack

Sun Jun 14, 2015 7:28 pm

Hello dears,

i see this errors for camera Atrack:

2015-06-14 00:04:05.4350 | Error | 17 | TcpConnection.m_ToProtocol | itdcam@TcpConnection, 79.171.53.109:12667 | Error updating database table camera_picture (Franson.DAO.UpdateDBException)
at Franson.DAO.DAOBase.Update()
at Franson.DAO.DAOItem.Update()
at Franson.DAO.BOItem.Update()
at GpsGate.Camera.SavePicture.NewPicture(String strPictureName, Int32 iDeviceID, DateTime dt, Nullable`1 lTrackDataID, Int32 iTotalPieces, Int32 iCameraID, String strLabel)
at GpsGate.ATrack.Camera.ATrackPictureProcessor.Process(ATrackBinaryPictureData picturePackage, NmeaConnection conn)
at GpsGate.ATrack.ATrackProtocol.TranslateFromDevice(Byte[] arrData, Int32 iStart, Int32 iLength)
at GpsGate.Online.Net.NmeaConnection.DeviceToProtocol(Byte[] arrData)
at GpsGate.Online.Net.Tcp.TcpConnection.m_ToProtocol(IAsyncResult asyncResult, Byte[] arrPooledData)
ERROR [HY000] [MySQL][ODBC 5.3(w) Driver][mysqld-5.7.7-rc]Cannot add or update a child row: a foreign key constraint fails (`gpsgateserver`.`camera_picture`, CONSTRAINT `FK_picture_track_data_id` FOREIGN KEY (`track_data_id`) REFERENCES `track_data` (`track_data_id`) ON DELETE CASCADE ON UPDATE CASCADE) (System.Data.Odbc.OdbcException)
at Franson.DAO.DAOConnector.RetryConnect(Exception ex, Boolean bThrow)
at Franson.DAO.DAOBase.Update()

Thanks and regards,
Grigor

User avatar
Gabor
GpsGate
Posts: 86
Joined: Thu May 16, 2013 3:43 pm

RE: GUIDE: Camera event rules for TZone, ATrack

Mon Jun 22, 2015 10:55 am

Hi Grigor,

Please try to update the Camera plugin (SiteAdmin -> Plugins)


Regards,
Gabor
GpsGate Support

piter197
Posts: 830
Joined: Sun Jan 09, 2011 3:32 am

RE: GUIDE: Camera event rules for TZone, ATrack

Sun Sep 06, 2015 7:27 pm

Hi Support,

I'm using ATrack with device password.

When right-clik and execute Take Picture menu, nothing happen. I check in Terminal I got error message like this:

[06/09/2015 22:17:50] (114.124.33.166:5850/ATrack/tcp) Client: $ERROR=104[0x0D][0x0A]
[06/09/2015 22:17:46] (114.124.33.166:5850/ATrack/tcp) Server: AT$GCAM=3
[06/09/2015 22:17:46] (114.124.33.166:5850/ATrack/tcp) Server: AT$GCAM=3[0x0D][0x0A]

I think because by default Take Picture do not accommodate device password (if any). My device password is 123456 so the take picture command should be AT$GCAM=123456,3

Please fix this. Thank you.



Best Regards,
piter197

User avatar
johan
GpsGate
Posts: 14981
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: GUIDE: Camera event rules for TZone, ATrack

Mon Sep 07, 2015 1:34 pm

ATrack Plugin v4.0.0.3195 Released: 2015-09-07
* Work around for ATrack protocol error.
* _TakePicture now adds device password if present.

Regards,
Johan

GpsGate Support

piter197
Posts: 830
Joined: Sun Jan 09, 2011 3:32 am

RE: GUIDE: Camera event rules for TZone, ATrack

Fri Sep 11, 2015 8:18 am

Hi Johan,

Thank you. It works now.

Best Regards,
piter197

Return to “GpsGate Server - How to setup and use”