TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC...

31
TCS-CAM II User guide

Transcript of TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC...

Page 1: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAM II

User guide

Page 2: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 2 of 31© 2005 DPS-Promatic

SPECIFICATIONS

HARDWARE:

Components:GSM Module: GR47 Sony EricssonCAMERA Module: OV JPEG VGA CAMERAMemory: 1 Mbytes flash memory

32 Kbytes Static RAM1 Kbytes E2PROM

Digital Input 0-3.6 VoltAnalogue Input 4-20mA 8 bitOutput: Open collector (100 mA MAX)

SOFTWARE

Functions:

Alert functions (via SMS):• Enables or disables the generation of an alert• Digital input alert & grab image function• Analogue input alert & grab image function• Send messages up to 8 GSM numbers

Services message functions ( via SMS):• SMS Forwarding• Custom Messages• URL of grabbed image sent to UDP server (GPRS only)

Grabbing functions• Programmable to take images automatically at a designated time interval• Captures and sends images when triggered by digital input• Captures and sends images when triggered by analogue alert• Captures and sends images when triggered by SMS command• Download saved images via remote connection.

“direct AT command” function• With this function you can read/write GSM module parameters like signal

strength, setting SMS centre address and much more….

Supported TCS commands

• see appendix B

Page 3: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 3 of 31© 2005 DPS-Promatic

Checking the functions of the SIM cards

Remove the PIN code from yourSIM (use a telephone to do itand check it does not ask for thePIN when you switch thetelephone ON). With the unitswitched OFF, insert the SIMinto the SIM holder and insert itback into its place until it locks.

Note: If the PIN code request isactive, you can only configurethe camera settings with PCTCS-Commander, not with SMScommands.

Page 4: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 4 of 31© 2005 DPS-Promatic

Light indicators

The TCS-CAMII has three light indicators (LEDs),which indicate, for example, the network status. SeeFigure.

TCS-CAMII status leds:

RED ON : TCS-CAMII starting upRED blink: TCS-CAMII readyYELLOW ON: CAMERA ONYELLOW blink: CAMERA WORKINGGREEN ON: GSM NETWORK OKGREEN blink: Incoming DATA CALL

DIAGOK?

RED led still onStart diagnostic(20 seconds)

Power ONAll leds ON for 1

sec

FAIL!All 3 ledsflashing

simultaneous

NO

YES

RED led startsflashing

GSM networksearching…..

Networkfound?

YES

NO

GREEN LEDFLASH

Every 30 secschecks for network

MAIN LOOP

START-UPDIAGRAM

Registered?

NO

YES

GREEN LED ON

Page 5: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 5 of 31© 2005 DPS-Promatic

PC TCS-Commander or SMS commands?You can configure the settings of the camera either with a compatible computerusing the PC Suite software found on the CDROM, or with a mobile phone usingSMS commands.

You have 3 methods to configure the settings:• Direct access via serial cable• Remote access via GSM modem• SMS access•

Further information at:http://www.dpspro.com/tcs_support.htmlhttp://www.dpspro.com/tcs_commander.html

DIRECT ACCESS VIA SERIAL CABLE:

Note: You need an optional cable :TCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable)

With the PC TCS-Commander for TCS products you can configure all the necessary settingsfor your camera.

Note: You can use the classic Hyperterminal ™ also, for both software thecommunication parameters are: 4800,n,8,1 no local eco.

To configure settings you must be in “Command mode”. To do that, connect theserial cable, turn on the TCS-CAMII and wait for the GREEN light (LED) still ON.Now press “space bar” until you are prompted with “Hello”, digit menu”, theninsert password.

Note: The default password is 123456.

Page 6: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 6 of 31© 2005 DPS-Promatic

REMOTE ACCESS VIA GSM MODEM:

Note: A modem (GSM is better) is required.It happens often that ground modems to GSM modems doesn’t work !Note: You must know the AT Hayes modems command to perform a remoteaccess to TCS-CAM II.

The figure below shows a screenshot of a remote access with a GSM modem.

Page 7: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 7 of 31© 2005 DPS-Promatic

SMS ACCESS:

To configure the TCS-CAMII via SMS you need a normal GSm telephone.

Any command sent by SMS must be preceded by # and MUST be in CAPITALletters.First command must be PWD that means Password.There is an Administrator Password and a USER Password, with different level ofcontrol and access. Both passwords are set at 123456 by default. They can bechanged as you like.

TCS-CAMII ships already initialized, but in case you want to be sure just send thefollowing SMS to initialize it : #PWD123456#INI#SCTnote: issuing a #INI command will initialize all parameters so don't do it if youhave already programmed them. The command #SCT sets the internal clock tothe same time of your GSM operator. After a few seconds you should receive amessage that confirms every part of your command and signals any error. If youdo not want to receive these messages you should always add #NOA (NoAcknowledge) at the end of the command string. Once the system has been setup properly, all functions can be performed via SMS. Please see the completecommand list in Appendix 1.NOTE: When you send a command , you will receive the answer even if your GSMnumber is not in the internal GSM list. This happens because the TCS-CAMIIrecognizes the caller ID and answers to it.NOTE: in some countries, unfortunately, operators do not allow cross operatorSMS. Be sure that if this happens in your country you have SIM cards from thesame operator in your phone and in the TCS-CAMII.

Page 8: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 8 of 31© 2005 DPS-Promatic

GPRS QUICK START

The camera will grab an image and send it in GPRS to a server by means of UDPpackets. To do so you need to set the APN and the destination address.Only for a few trials you can use our UDP receiver, that we keep especiallyfor this purpose, even if it is not certain that it will be there and working.Don't send obscene images and remember that images are erased on daily basis.The images will be visible on http://tcscam.maxpor.net/public/Once you know what is the APN needed to access the internet you can programthe camera by entering these commands:

#ATCAT+CGDCONT=1,"IP","apn" (replace apn with your operator's one)#PIP=tcscam.maxpor.net,998 (this is the public address of our UDP receiver, for test only)#LGI=10,00,24#REG02=03#AMS26=Image uploaded ! Please download at:#AMS27=http://tcscam.maxpor.net/public/#MTX29=10000000#TEL01=3481234567 <- put YOUR GSM number !

with these settings your TCS-CAMII will send an image to our UDP serverand send you a sms with URL of image uploaded.

Page 9: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 9 of 31© 2005 DPS-Promatic

MAIN LOOP DIAGRAM

main

menu?

YES Process commands

NO

IN1Alert ?

NO

YES Process IN1 alert

Powerdown?

NO

YES Process powerdown

Incom.SMS ?

NO

YES Process SMS

Incom.call ?

NO

YES Process data or voice call

Gsmmodule OK

?

NO

YES

Restart GSM module

4-20maOK ?

NO

YES Process 4-20 mA alrtet

LGI ?

NO

YES Grab an image andstore in flash memory

SENDimage via

GPRS?

NO

YES Restart GSM module

MAIN LOOPDIAGRAM

Page 10: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 10 of 31© 2005 DPS-Promatic

ALERT FUNCTIONS (VIA SMS):

Enables or disables the generation of an alert

#ALR

Command: :#ALRDescription :Enables (ON) or Disables (OFF) the generation of analert.Syntax: :#ALR? :#ALR< status > - <status> =: ON or OFF

Default value after #INI: ONDefault value after reset: unchangedCommand availability Command line and SMSADMIN Password privileges: Read and writeUSER Password privileges: Read

DIGITAL INPUTS ALERT

Digital input (please see APPENDIX A for hardware spec.) can be programmed tosend a SMS when goes LOW or HIGH for some seconds.According to #REG02 it is possible to grab an image and send it via UDP server

See also :#IDT01, #IPM01, #MTX21 , #ALR, #REG02

#IPM01

Command: :#IPM01Description :Sets the input mode for the individual inputs as follows: 0 = Active Low 1 = Active HighSyntax :#IPM01? Returns current value: #IPM01=0 #IPM01 [=]<ipm>

Default value after #INI: 0Default value after reset: unchangedCommand availability Command line and SMSADMIN Password privileges: Read & WriteUSER Password privileges: Read

Page 11: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 11 of 31© 2005 DPS-Promatic

Input Delay Time: indicates how long a input has to be active before generatingan alarm

#IDT01

Command: :#IDT01Description :Input Delay TimeSyntax :#IDT01? Returns delay value #IDT01 [=]<value> Sets delay for input 01 to value <value>

Default value after #INI: 0Default value after reset: unchangedCommand availability Command line and SMSADMIN Password privileges: Read & WriteUSER Password privileges: Read

ANALOGUE INPUT ALERT

Analogue input (please see APPENDIX A for hardware spec.) can be programmedto send SMS when values are out of range. According to #REG02 it is possible tograb an image and send it via UDP server

See also :#MTX24,#ALR, #REG02

#SNSCommand: :#SNSDescription :Command Reads Analogue Input value and sets Alarm thresholds.Syntax :#SNS? Returns Analogue input value in percentage and other values: Example:

SNS= 65% actual value %THR=10,25,75,90 4 Alarm thresholdALR=ON Analog Input alarm ON/OFF

#SNS<status>[,lowerT][,lowT][,hightT][,higherT] <status> = Status can be either ON or OFF [lowerT] = Lower Threshold [lowerT] = Low Threshold [hightT] = High Threshold [higherT] = Higher Threshold

Default value after #INI: OFF,0,0,100,100Default value after reset: unchangedCommand availability Command line and SMSADMIN Password privileges: Read & WriteUSER Password privileges: Read

Page 12: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 12 of 31© 2005 DPS-Promatic

MATRIX

Associates an event (alarm) to a set of telephone numbers (from 1 to 8 or 0 fornone) to which it will send an alarm SMS.

See also :#TEL,#ALR,#AMS

#MTXCommand: :#MTXDescription :Matrix 21..31.Syntax :#MTX? Returns all matrix values.

#MTX<xx>? Returns specific matrix row

#MTX<xx>[=]<matrix_row> Where xx is the row to program and tttttttt are any of the 8 TELephones in TEL list.

I.E. MTX21=12000000 means that alarms for event 21 will be sent toGSM programmed in position 01 and 02 with the #TEL command.

MTX21 DEVICE IN01 alert ! MTX22 DEVICE startup! MTX23 DEVICE main power alert ! MTX24 DEVICE 4-20mA alert ! MTX25 MTX26 MTX27 MTX28 MTX29 LGI LOG -> URL of images sent via GPRS MTX30 MTX31 SERVICE MESSAGE

Default value after #INI: 00000000Default value after reset: unchangedCommand availability Command line and SMSADMIN Password privileges: Read and writeUSER Password privileges: Read

Page 13: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 13 of 31© 2005 DPS-Promatic

CUSTOM MESSAGES

Alert and notify messages are programmable. You can modify the defaultmessages with #AMS command

#AMS21: sent on digital input alert#AMS23: sent on main power failure#AMS24: sent on analogue alert#AMS26: sent on “image uploaded to UDP server”#AMS27: sent together #AMS26, indicates the URL of uploaded image

#AMSCommand: :#AMSDescription :Messages text form 21 to 28. Stores and reads the text for alarm specific SMSmessagesSyntax :#AMS? (the query option works only via serial port, not via SMS) Returns list of all Alarm messages #AMS<xx>? Shows Alarm message xx

#AMS<xx>[=]<message> Writes message associated to alarm xx (maximum length 40 characters)

Default value after #INI: #AMS21 = DEVICE Input 1 Message #AMS22 = #AMS23 = MAIN POWER Alert! #AMS24 = DEVICE Warning! 4-20mA #AMS25 = #AMS26 = Image uploaded ! Please download at: #AMS27 = http://www. #AMS28 =

Default value after reset: unchangedCommand availability Command line and SMSADMIN Password privileges: Read & WriteUSER Password privileges: Read

Page 14: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 14 of 31© 2005 DPS-Promatic

NOTIFY UPLOADED IMAGE’S URL

This function can send a SMS, to all GSM numbers stored in #MTX29 matrix, withURL address of uploaded images via GPRS. This SMS is composed with #AMS26 &#AMS27 messages followed by images’name.

Example:

Image uploaded ! Please download at:http://www.dpspro/cam/TCSCAMII050521183035.jpg

Where:

#AMS26=Image uploaded ! Please download at:#AMS27=http://www.dpspro/cam/#MHD= TCSCAMII

Image’s name :”TCSCAMII050521183035.jpg” is composed by TCS-CAMIIidentifier (see #MHD command) + “capture date” with YYMMDDHHMMSS format.

Page 15: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 15 of 31© 2005 DPS-Promatic

AUTO CAPTURE FUNCTION

TCS-CAMII every one minute checks system clock (#RTC), if #LGI function isenabled (value > 0) an image is grabbed. The image resolution is set in #REG01.

See also :#LGI, #LLI, #XCE, #REG03, #RTC

#LGI

Command: :#LGIDescription :Sets grabbing image periods (0 = disabled, min 5, max 65000 minutes)Syntax :#LGI? - Returns current value #LGI[=]<xx>,[st],[end] - optional equal sign, to improve readabilityCommand:. - <xx> = valore in minuti del perido - [st] starting time (hour) - [end]ending time (hour)

Example: #LGI=30,08,14 Grab & save an image every 30 minutes from 8 o’clock to14 (2 PM)

Default value after #INI: 0Default value after reset: unchangedCommand availability Command line and SMSADMIN Password privileges: Read and writeUSER Password privileges: Read

#LLI

Command: :#LLIDescription :Dump a list of all image’s attributes stored in flash memorySyntax :#LLI[?]

Example:

/#LLI?[000] 05/07/01 20:28:36 03 03 2420[001] 05/07/01 20:29:03 01 03 1228[002] 05/07/02 11:01:41 03 02 3808[003] 05/07/02 11:21:55 03 02 3800[004] 05/07/02 11:42:34 03 02 3800[005] 05/07/03 11:00:16 03 02 3724[006] 05/07/03 11:21:39 03 02 3772[007] 05/07/03 11:41:53 03 02 3796[008] 05/07/04 11:00:36 03 02 3632[009] 05/07/04 11:22:01 03 02 3808[010] 05/07/04 11:42:15 03 02 3820#LLI-OK/

Page 16: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 16 of 31© 2005 DPS-Promatic

In this example we have stored 11 images (from index 000 to 010).

[007] 05/07/03 11:41:53 03 02 3796 | | | | | | | | | Image size in bytes | | | Event (vedi sotto ) | | Resolution | Date and time saved image Image index

Events:01 = Captured on digital input event02 = Captured on #LGI event (AUTO CAPTURE)03 = Captured on #JPG event (MANUAL CAPTURE)04 = Captured on analogue input event

Command availability Command lineADMIN Password privileges: ReadUSER Password privileges: Read

#XCE

Command: :#XCEDescription :flash memory formatting

Syntax: :#XCE

Command availability Command line and SMSADMIN Password privileges: UseUSER Password privileges: None

CAPTURING IMAGE ON DIGITAL OR ANALOGUE INPUTEVENTS

This function in controlled by #REG02 system register (see appendix).You can capture and send ti UDP server every time an alert is generated.

NOTE ! The image is captured after 5-15 seconds after the alert. If the TCS-CAMIIis entered in “Command mode” by a remote or direct access, the alerts and grabfunction is NOT performed.

Page 17: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 17 of 31© 2005 DPS-Promatic

MANUAL CAPTURE FUNCTION

See also: #REG02

#JPGCommand: :#JPGDescription :Grab and store an image in memorySyntax :#JPG[=][xx] - [xx] = Image resolution: 01 = 80x64 03 = 160x128 05 = 320x240 07 = 640x480Note: if [xx] is omitted the default value (#REG01) is assumed.

Return message:: #JPG=<iid>,<image_size> <iid> = Image identifier <image_size> = size of imageExample:/#JPG#JPG=2,3768-OK

Command availability Command line and SMSADMIN Password privileges: UseUSER Password privileges: None

Page 18: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 18 of 31© 2005 DPS-Promatic

DOWNLOAD IMAGES FROM TCS-CAMII

To download images stored in memory you can use our demo software (withsource code included) supplied in CD or write your application.

The download protocol is descript in APPENDIX C

#DMI

Command: :#DMIDescription :Download images ffrom memorySyntax :#DMI[=][iid] - [iid] image index (if omitted the last one is downloaded)

#DMI? Return the image index of last captured image

Command availability Command lineADMIN Password privileges: ReadUSER Password privileges: Read

“DIRECT AT COMMAND” FUNCTION

#ATCCommand: :#ATCDescription :Send an AT command to GSM modem and wait for an answer.Syntax :#ATC[=]<Command:> - <Command:> = Command: AT da inviare al modem

Default value after #INI: --Default value after reset: --Command availability Command line,SMS,data callADMIN Password privileges: WriteUSER Password privileges: None

Examples:Newtork ID/#ATCAT+COPS?#ATC+COPS: 0,0,"vodafone IT"OK-OK/GSM quality of signal:/#ATCAT+CSQ#ATC+CSQ: 20,99OK-OK/

Page 19: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 19 of 31© 2005 DPS-Promatic

SOFTWARE AND DOCS IN THE CD

In the CD included you will find some folders

and some sub-folders….

DOCS folder contains this manual in English andItalian.

TCS-CAMII folder contains an application to grab &download images via remote access. The sourcecode is included.

udpcamserver folder contains our demo softwareto running a UDP server. Source code is included.

GLOSSARY

APNAn Access Point Name (APN) is assigned to each external network interface to theGGSM. Information about which of these external networks an individualsubscriber is allowed access is contained in the HLR as an APN list in their profile.

GSMThe Global System for Mobile Communications Service, or GSM, is the mostwidely adopted, digital cellular technology in use today. GSM uses time andfrequency division techniques (TDMA and FDMA) to optimize the call carryingcapacity of a wireless network. In addition to voice services GSM also provides anumber of carefully standardized and broadly supported capabilities such as ShortMessage Service (SMS), circuit switched data (CSD) and General Packet RadioServices (GPRS).

GPRSGeneral Packet Radio Service ,or GPRS, refers to a new, packet-based wirelesscommunication service that promises data rates from 56 up to 114 Kbps andcontinuous connection to the Internet for wireless phone and mobile computerusers. The higher data rates as well as the "always connected" mode of operationwill open the door to many new, non-voice applications and services. GPRS wasdesigned as an enhancement to GSM communications, but will probably be

Page 20: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 20 of 31© 2005 DPS-Promatic

adapted and adopted by at least some network operators using technologiesother than GSM.

Dynamic IP, static IPThe unique digital identifier of a device communicating over the Internet or otherdata network using similar technology. Today's addresses consist of a 32 bitstring of 1's and 0's and are analogous to postal addresses.

A Dynamic IP address is one that is temporarily assigned to a user by theirinternet service provider every time the connect. This cuts down on the number ifIP addresses large consumer providers need because not all of their customersare using the service at any given time. It also cuts down on bandwidth usage bypreventing consumers from hosting servers. Note: Recently a number ofcompanies have started to offer services aimed at updating DNS for dynamicallyconnected clients.

A static IP Address is an IP address assigned by a service provider that neverchanges. This requires that the service provider keep at least one IP address percustomer. Because their IP address remains fixed, static IP addresses can beused for hosting name servers.

UDP SERVERIn this document a “UDP SERVER” is a computer connected to the Internet with astatic IP. In this computer is installed and running our “udpserver demo software”

SMSThe transmission of short text-messages to and from a mobile phone. Messagesmust be no longer than 160 alphanumeric characters and contain no images orgraphics. Once a message is sent, it is received by a Short Message ServiceCenter (SMSC), which must then get it to the appropriate mobile device. To dothis, the SMSC sends a SMS Request to the home location register (HLR) to findthe roaming customer. Once the HLR receives the request, it will respond to theSMSC with the subscriber's metadata: 1) inactive or active 2) where subscriber isroaming. If the response is 'inactive' then the SMSC will hold onto the messagefor a period of time. When the subscriber accesses the device the HLR sends aSMS notification to the SMSC, and the SMSC will attempt delivery. The SMSCtransfers the message in a Short Message Delivery Point-to- Point format to theserving system. The system pages the device, and if it responds, the messagegets delivered and receives verification.

UDPUDP (User Datagram Protocol) is a part of the TCP/IP suite of protocols used forcommunications on the Internet. It is similar to TCP except that it offers very littleerror-checking and does not establish a connection with a specific destination. Itis most widely used to broadcast a message over a network port to all machineslistening.

Page 21: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 21 of 31© 2005 DPS-Promatic

SYSTEM REGISTER

#REG

Command: :#REGDescription :Read/write system register.Syntax :#REG? Returns all register value (in exadecimal) #REG<xx>? Returns <xx> specifics register value #REG[=]<xx>,<value> - <xx> = address - <value> = exadecimal value

Register DescriptionREG00 SERVICE MESSAGEREG01 JPEG RESOLUTIONREG02 GRAB OPTIONSREG03 LOG REGISTER (LGI function)REG04 WAKE UP REGISTERREG05 STOP MODEREG06 AUTO OFFREG07 AUTO OFF TIMERREG08REG09REG0A GRAB OPTIONSREG0BREG0C GSM WATH DOG TIMERREG0DREG0EREG0F

Page 22: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 22 of 31© 2005 DPS-Promatic

REG00 SERVICE MESSAGEBIT 0BIT 1 Enable SVC MSG: AUTO OFF! (#MTX31)BIT 2BIT 3BIT 4 Enable SVC MSG: MAIN POWER STAT. #MTX31)BIT 5 Enable SVC MSG: GSM READY! (#MTX31)BIT 6 Enable SVC MSG: GSM WDOG ON! (#MTX31)BIT 7

DEFAULT VALUE = 0x00

REG01 JPEG RESOLUTION01 80x6403 160x12805 320x24007 640x480

DEFAULT VALUE = 0x03

REG02 GRAB OPTIONSBIT 0BIT 1 Grab image on IN01 alertBIT 2 Send image via GPRS on IN01 alertBIT 3 Grab image on 4-20mABIT 4 Send image via GPRS on 4-20mA alertBIT 5 Send image via GPRS on #JPG command (SMS)BIT 6BIT 7

DEFAULT VALUE = 0x3E

REG03 LOG REGISTER (LGI function)BIT 0 Send IMG via GPRSBIT 1 Notify via SMS image’s URLBIT 2BIT 3BIT 4BIT 5BIT 6BIT 7

DEFAULT VALUE = 0x01

Page 23: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 23 of 31© 2005 DPS-Promatic

REG04 WAKE UP REGISTERBIT 0BIT 1 Wake up on Input seriale COM3BIT 2 Wake up on POWER PRESENCEBIT 3BIT 4 Wake up on IN1BIT 5 Wake up on Gx47 RIBIT 6 Wake up on PCF8583 INTBIT 7

DEFAULT VALUE = 0x00

REG05 STOP MODEBIT 0 Modem off (on #STP )BIT 1BIT 2 CAM off (on #STP )BIT 3BIT 4 Modem off (on AUTO OFF)BIT 5BIT 6 CAM off (on AUTO OFF)BIT 7

DEFAULT VALUE = 0x00

REG06 AUTO OFF FUNCTIONBIT 0 AUTO OFF function enableBIT 1BIT 2 Reset timer on Serial Input VSERBIT 3 Reset timer on POWER PRESENCE (active low)BIT 4BIT 5 Reset timer on IN1BIT 6 Reset timer on Gx47 RingBIT 7 Reset timer on speed > 0

DEFAULT VALUE = 0x00

REG07 AUTO OFF TIMERBIT 0..7 Da 0 a 255 minuti (da 00 a FF in hex)

DEFAULT VALUE = 0x00

REG09 SNAP SHOT SKIP FRAMEBIT 0..7 Number of frame to skip before grab an image

DEFAULT VALUE = 0x00

Page 24: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 24 of 31© 2005 DPS-Promatic

REG0A SYSTEM OPTIONSBIT 0 Enable SMS forwarding to TEL01BIT 1 Enable debug message on serial port.BIT 2BIT 3BIT 4BIT 5BIT 6BIT 7

DEFAULT VALUE = 0x00

REG0C GSM WATH DOG TIMERBIT 0..7 Da 0 a 24 ore (da 00 a 18 in hex)

DEFAULT VALUE = 0x00

Page 25: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 25 of 31© 2005 DPS-Promatic

APPENDIX A

PINOUT

Pin Color Decription1 GREEN Digital input2 YELLOW Output “open collector” (100mA max)3 VIOLET I/O Common4 WHITE (-) analog input 4-20mA5 BROWN (+) analog input 4-20mA6 BLACK GND7 GRAY Backup power (from battery) 9-24VDC8 RED Main power supply 9-24VDC

Page 26: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 26 of 31© 2005 DPS-Promatic

APPENDIX B

TCS-CAMII supported commands:(see also http://www.dpspro.com/tcs_commands/tcsos_list.html)

#ACM Access mode#ALR SMS alarm ON/OFF#AMS Set SMS [01..08] message#ATC Send AT commands to GSM module#CAP Change admin password#CLB Call me back#CUP Change user password#END Exits TCS-OS command mode#INI Restore to default settings#JPG Grab & save an image#LGI Save image at scheduled times#LLI List of image in flash memory#MHD Reads/Writes TCS ID and SMS serial number#MTX Alert Matrix#NOA No SMS answer#OUT Drive the output#PIN Set Sim PIN#PIP UDP remote server settings#PWD Gives password to enable any following command bySMS#REG System register#RES Software Resets the board#RTC Reads and writes the internal Real Time Clock#SDV Shut down voltage#SMC SMS Counter#SNS Reads Analogue Input value and sets Alarmthresholds.#SSM Send a sms to a given gsm number#TEL Sets the GSM Telephone numbers ( up to 8)#VCF Voice call function (not used)#VER Returns software version#WHL White list (not used)#XCE Erase flash memory#IPM01 Input mode#IDT01 Input delay time

Page 27: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 27 of 31© 2005 DPS-Promatic

APPENDIX C

IMAGES DOWNLOAD PROTOCOL (REMOTE ACCESS)

See #DMI

APP-> Remote application software to download imagesTCS-CAM-> Answer from TCS-CAMII to APP command.

APP-> #DMITCS-CAM -> ------------------------------------------------------

| mhd | YYMMDDHHmmSS | res | event |img size || 10 bytes | 6 bytes | 1 byte | 1 byte |2 bytes | ------------------------------------------------------

APP-> ACK packet: -----------------------------------------| 0xAA | 0x0E | 0x00 | 0x00 | 0x00 | 0x00 | -----------------------------------------

orNAK packet: -----------------------------------------| 0xAA | 0x0F | 0x00 | 0x00 | 0x00 | 0x00 | -----------------------------------------

A NAK packet or no answer (10 sec timeout) from APP will terminate thecommunications between TCS-CAM & APP.

where:

mhd: TCS-CAMII ID (10 alphanumeric char) .The ID is programmable using the #MHD command.If ID len is less of 10, missing char are set to 0x00

YYMMDDHHmmSS:Date & Time of captured image.All data are in hexadecimal format i.e. 24 December is 0x24,0x12

res: Image resolution:0x01 = 80x640x03 = 160x1280x05 = 320x2400x07 = 640x480

event:01 = Captured on digital input event02 = Captured on #LGI event (AUTO CAPTURE)03 = Captured on #JPG event (MANUAL CAPTURE)04 = Captured on analogue input event

img size:“real” image’s size.2 bytes in little endian format:0x324 = [0x24][0x03]

Page 28: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 28 of 31© 2005 DPS-Promatic

TCS-CAM -> --------------------------------------------------------- | ID | data size | image data | verify code | | 2 bytes | 2 bytes | data size - 6 bytes | 2 bytes | ---------------------------------------------------------

NOTE: All packages are sent without ACK from APP !

The last image Data package is:

TCS-CAM -> -----------------------------------------| 0xF0 | 0xF0 | 0x06 | 0x00 | 0xE6 | 0x00 | -----------------------------------------

APP -> ACK -----------------------------------------| 0xAA | 0x0E | 0x00 | 0x00 | 0xF0 | 0xF0 | -----------------------------------------

#DMI

HEADER

ACK

Data package

Data package

Last data package

ACK

END

APP TCS-CAMII

where:

ID: packet index ,starts from 0x0000 for any imagedata size:

packet lenimage data:

image dataverify code:

Error detection code, equals to the lower byte of sum of whole package dataexcept the verify code field. The higher byte of this code is always zero. i.e.verify code = lowbyte(sum(byte[0] to byte[N-2])

Page 29: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 29 of 31© 2005 DPS-Promatic

APPENDIX D

UPLOAD PROTOCOL ,SEND AN IMAGE TO UDP SERVER

TCS-CAM -> UDP packet from TCS-CAM to UDP SERVERUDP-SER -> UDP racket from UDP SERVER to TCS-CAM

Example:

TCS-CAM -> BEGINIMAGE,TCSCAMii050526122040.jpg,05,02,14464,39,DCUDP-SER -> OK:BEG

TCS-CAM -> 00:00FA:FFD8FFE000114A4649460001020 [...] 342B1C11552D1F02433627282:00BBUDP-SER -> OK:00

TCS-CAM -> 01:00FA:090A161718191A25262728292A3 [...] 34445464748494A5354555657:00DDUDP-SER -> OK:01

TCS-CAM -> 02:00FA:58595A636465666768696A73747 [...] 8191BB9EBD47D3AD6C5A40608:00E5UDP-SER -> OK:02

TCS-CAM -> 03:00FA:1632738E9ED5BC29DB52252B928 [...] 53088A81BD4E5C0287D456BC1:0077UDP-SER -> OK:03

TCS-CAM -> 04:00FA:1D471D8D6798DF30E5F2172173D [...] 0495CD0A72C66295A33D8F5A6:0070UDP-SER -> OK:03

[...]

TCS-CAM -> 37:00FA:5F395C28DC3D076514864AC0EE2 [...] 8F6F56FF000A518DA4BF0A106:000CUDP-SER -> OK:37

TCS-CAM -> 38:00FA:4A3CD911B9C3CCCFFF00010081F [...] B626E09323371D78CE3FA5003:004FUDP-SER -> OK:38

TCS-CAM -> 39:00D6:751B5980957D8F461481B20B28C [...] AA9EA3FCFB530C899731B6761:0095UDP-SER -> OK:39

TCS-CAM -> ENDIMAGEUDP-SER -> OK:END

Image header

BEGINIMAGE,TCSCAMii050526122040.jpg,05,02,14464,39,DC

BEGINIMAGE -> TAG imageTCSCAMii050526122040.jpg -> Image name05 -> Resolutions (ref: #REG01)02 -> Flags:

IN01 = 1,#LGI = 2,#JPG = 3,4-20mA = 4

14464 -> Image size39 -> Total packets number (HEX)DC -> reserved

Page 30: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 30 of 31© 2005 DPS-Promatic

Image footer:

Packet:

ENDIMAGE

24:00FA:B77A989E702F2B6F04CA01704F7AA720DD312BC86390054AD128C286064271D781F8D5CB28D63B97C465CEDC827B63FF00D758E89DC6EE66847F315769DD90315A6ACD0394CA1DDC329390B9F4A8E7BEDB0B448ABB9B1993BFE1FE7FAD5349728DBCE5B80293F796C08B3733ACA234540A51D8B11C9724D36DECDE69BCA03F78780BEBC66A00FB194AFDE1CD5CFB62C6B34C096B871B508FE1E064FF003A354B41D8E8F49B31068C2DD090F36599870727B8FC00FCAAC5C68A975379B231DF8C71DBFCFF004AA3A2CF712EE72B84501739EA7E9DBAFEB5B02693FC9AA8DCD15AD62BAE889BDD81E5C8273EDFFEBA7AE810158C336420DA3E952A:006A

Where:

24 - packet id00FA - packet len (250 decimal)B77A98 … 952A image data : B7,7A,98 and so on...006A image data check sum

Page 31: TCS-CAM II User guideTCS-CAM2 SERCAB (TCS-CAM-2 level shifting RS232 serial cable) With the PC TCS-Commander for TCS products you can configure all the necessary settings for your

TCS-CAMII instructions manual ver 1.0 ENG Page 31 of 31© 2005 DPS-Promatic

TCS-CAMIIUser guide V.1.0

©2005 DPS-Promatic srlLast modification : 13 July 2005

Created by :Telecom Control Systems division

DPS-Promatic srl47100 Forlì Italy

E-mail [email protected] for updates on line at http://www.dpspro.com