Page 31 of 58 |
Appendix A.8.1. Extending the List of Show Attributes
Youcanextendthelistofattributesandattribute statesthatthedriverrecognizesby modifyingtheconfigurationCSVfile.
Thefollowingexampleaddsthreeattributesand4a ttributestates.Ifadevicereportsan attributeof‘LIGHTSTATE’as‘BRIGHT’thenthedri verwillloadarrayelement32with thevalue41.
|
|
|
|
|
| Useadigit. |
|
|
Keyword | AttributeDefinitions. | Whenallocating | Thethree |
|
| |||
startsanew | Thenamewillbe | methodsare |
|
| ||||
sectionofthe | strippedofall | offsets,bemindful | described | Protocolmust | ||||
CSVfile. | spacesbetweenthe | oftheoffsets | above. | bedefinedon | ||||
| lastcharacterand | alreadyused. |
| everyline. | ||||
| thecomma. |
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
Driver_Table |
|
|
|
|
|
|
|
|
sim4100_Attr_Name, | sim4100_Attr_Offset, | sim4100_Attr_Method, | protocol |
| ||||
BROKEN, |
| 30, |
|
| 1, |
| sim4100 |
|
FIXED, |
| 31, |
|
| 1, |
| sim4100 |
|
LIGHTSTATE, |
| 32, |
|
| 1, |
| sim4100 |
|
|
|
|
|
|
|
|
|
|
Driver_Table |
|
|
|
|
|
|
|
|
sim4100_Attr_State_Name, | sim4100_Attr_State_value, | protocol |
|
| ||||
DIM, |
| 40, |
|
| sim4100 |
|
| |
BRIGHT, |
| 41, |
|
| sim4100 |
|
| |
|
|
|
| Usevaluesthatarenotallocatedtothe |
|
| ||
AttributeStates. | pre definedlistofstates. |
|
|
|
Appendix A.9. Synchronizing the FieldServer with the Panel
WhenusingtheXpointfunctiontostorepointstate | s,eachtimethepaneldoesawarmstart | |
itsetsallpointstatestonormalandthenstarts | evaluatingeverysingleone.Thus,aftera | |
warmstart,theFieldServerwillreceiveXpointmes | sagesfromthepanelforeverypointnot | |
inanormalstate.Thisprovidesonesynchronizatio | nmethod.Thelimitationofthismethodis | |
thattheSimplexpanelsdonotreportwhenapoint’ | sstatechangesbacktonormal.Thusto | |
maintainthesynchronizationtheupstreamdevicemu | stclearthepointtozeroonceithas | |
readitsabnormalstate,i.e.Theupstreamdevice | shouldconsiderthedatareportedbythe | |
Xpointfunctionaslatcheddata. |
|
|
A second method is to connect/reset the FieldServer | when there are no points in an | |
abnormalstate. |
|
|
AthirdmethodispollpointstatesusingtheClist | functionasdescribedinAppendixA.20. | |
ThiswaytheFieldServerstateswillalwaysbeupda | ted.Pollingisslowandinasystemwith | |
manypointsitispossiblethatitmaytakeseveral | minutestoupdatestatusinformationforall | |
points. Thuscombiningthismethodwiththeuseof |
| XpointMapDescriptorsgivesthebest |
ofbothworlds. Whenapointchangesto‘not’norm |
| al,thentheFieldServergetsthestate |
change from the Xpoint function immediately and at | the same time synchronization is | |
assuredbythecontinuouspolling. |
|
|
FieldServer Technologies1991TarobCourtMilpitas,California95035USA | Web:www.fieldserver.com | |||
Tel:(408)2622299 | Fax:(408)2622296 | Toll_Free:8885091970 | email:support@fieldserver.com |