Wiki source code of get_rs232ext.asp

Last modified by YellowFox_RD on 2024/12/19 10:11

Hide last authors
YellowFox_RD 1.1 1 (% class="box" %)
Dominic Lippmann 2.1 2 (((Table of Contents)))
YellowFox_RD 1.1 3 {{toc/}}
4
5 (% class="red mark" %)DEPRECATED(%%)
Dominic Lippmann 2.1 6 Returns RS-232 Data with activated RS-232 Extension
7 = Description =
YellowFox_RD 1.1 8 **get_rs232ext.asp****?company**=//COMPANY_RTIKEY//**&vehicle**=//VEHICLE_RTIKEY//**&begin**=//YYYYMMDDHHMM//**&end**=//YYYYMMDDHHMM//**&mode**//=CSV//**&charset**//=ISO-8859-1//
9 = Parameter =
10 |=Parameter|=Beschreibung|=Typ|=Hinweis|=Pflicht
Dominic Lippmann 2.1 11 |company|RTI company key|string||ja
12 |vehicle|RTI vehicle key|string||ja
13 |begin|start of requested time range|datestring|Format: YYYYMMDDHHMMSS
14 Between begin and end maximum 7 days difference allowed|ja
15 |end|ned of requested time range|datestring|Format: YYYYMMDDHHMMSS
16 Between begin and end maximum 7 days difference allowed|ja
17 |mode|return format|string|CSV (Standard) or CSV_B64|nein
18 |charset|return charset|string|Default: ISO-8859-1 (alltough a free defined charset code)|nein
YellowFox_RD 1.1 19
Dominic Lippmann 2.1 20 = Return =
21 Return a **string**. In case of error "(% class="error" %)**ERROR:Description**(%%)" will be returned.
YellowFox_RD 1.1 22 == CSV Format ==
23 === Metainformationen ===
Dominic Lippmann 2.1 24 |=Delimiter|Comma ( , )
25 |=Text Delimiter|double quote ( " )
26 |=Line End|0x0D 0x0A (CarriageReturn LineFeed)
27 |=Header|Line 1
YellowFox_RD 1.1 28
Dominic Lippmann 2.1 29 === Columns ===
30 |=Column|=Description|=
31 |DATE|GPS date when measurement was created|YYYY-MM-DD HH:MM:SS
32 |CAR|Vehicle Licence|String
33 |SERIALOUTPUT|RS-232 Data|String
YellowFox_RD 1.1 34
Dominic Lippmann 2.1 35 === Example ===
YellowFox_RD 1.1 36
37 {{code language="java"}}"DATE","CAR","SERIALOUTPUT"
38 "2014-03-20 11:43:01","DD-ABC 123","ÿÿÿÿÿÿÿÿ!"
39 "2014-03-20 11:43:01","DD-ABC 123","Programvara no. PS312-002rev08"
40 "2014-03-20 11:43:01","DD-ABC 123","Kalibreringsmod Inst.t 32 Times"{{/code}}
41
42 == CSV Base 64 Format ==
43 === Metainformationen ===
Dominic Lippmann 2.1 44 |=Delimiter|Comma ( , )
45 |=Text Delimiter|double quote ( " )
46 |=Line End|0x0D 0x0A (CarriageReturn LineFeed)
47 |=Header|Line 1
YellowFox_RD 1.1 48
Dominic Lippmann 2.1 49 === Columns ===
50 |=Column|=Description|=
51 |DATE|GPS date when measurement was created|YYYY-MM-DD HH:MM:SS
52 |CAR|Vehicle Licence|String
53 |SERIALOUTPUT|RS-232 Data|String
YellowFox_RD 1.1 54
Dominic Lippmann 2.1 55 === Example ===
YellowFox_RD 1.1 56
57 {{code language="java"}}"DATE","CAR","SERIALOUTPUT"
58 "2014-03-20 11:43:01","DD-ABC 123","//////////8bIQ=="
59 "2014-03-20 11:43:01","DD-ABC 123","UHJvZ3JhbXZhcmEgbm8uIFBTMzEyLTAwMnJldjA4"
60 "2014-03-20 11:43:01","DD-ABC 123","S2FsaWJyZXJpbmdzbW9kIEluc3QudCAzMiBUaW1lcw=="{{/code}}
61
Dominic Lippmann 2.1 62 = Example Calls =
63 **Request with default CSVformat and UTF-8 charset**
YellowFox_RD 1.1 64 {{code language="java"}}https://map.yellowfox.de/rti/get_rs232ext.asp?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&begin=20140320000000&end=20140321000000&charset=UTF-8{{/code}}
65
Dominic Lippmann 2.1 66 **Request with format CSV Base 64**
YellowFox_RD 1.1 67 {{code language="java"}}https://map.yellowfox.de/rti/get_rs232ext.asp?company=COMPANY_RTIKEY&vehicle=VEHICLE_RTIKEY&begin=20140320000000&end=20140321000000&mode=CSV_B64{{/code}}
68