Line 9: |
Line 9: |
| | | |
| [[File:Iridium Edge pinout.png|left]] | | [[File:Iridium Edge pinout.png|left]] |
− | [[File:FM64-RS232.png|right]] | + | [[File:FMX640 and RS232 illustration v1.2.png|right|906x401px]] |
| + | |
| | | |
| {| class="nd-othertables_2" style="width:100%;" | | {| class="nd-othertables_2" style="width:100%;" |
Line 108: |
Line 109: |
| | 0 | | | 0 |
| | 1440 | | | 1440 |
− | | 1440 | + | | 0 |
| | This parameter lets to configure Iridium Edge sending period | | | This parameter lets to configure Iridium Edge sending period |
| |- | | |- |
Line 129: |
Line 130: |
| | 1 | | | 1 |
| | 5 | | | 5 |
− | | 0 | + | | 1 |
| | Device DOUT which can control ON/OFF pin of the Iridium Edge | | | Device DOUT which can control ON/OFF pin of the Iridium Edge |
| |- | | |- |
Line 141: |
Line 142: |
| | | |
| <br></br> | | <br></br> |
− | '''*''' SBD IO source parameter is configured with bitmasks: | + | '''*''' SBD IO source parameter is configured with bitmasks (used for configuring I/O source elements via SMS/GPRS command) : |
− | *eSBD_IO_Bit_Disabled = 0x00, | + | *Disabled = 0x00, |
− | *eSBD_IO_Bit_Din1 = 0x01, | + | *Din1 = 0x01, |
− | *eSBD_IO_Bit_Din2 = 0x02, | + | *Din2 = 0x02, |
− | *eSBD_IO_Bit_Din3 = 0x04, | + | *Din3 = 0x04, |
− | *eSBD_IO_Bit_Din4 = 0x08, | + | *Din4 = 0x08, |
− | *eSBD_IO_Bit_Do1 = 0x10, | + | *Dout1 = 0x10, |
− | *eSBD_IO_Bit_Do2 = 0x20, | + | *Dout2 = 0x20, |
− | *eSBD_IO_Bit_Do3 = 0x40, | + | *Dout3 = 0x40, |
− | *eSBD_IO_Bit_Do4 = 0x80, | + | *Dout4 = 0x80, |
− | *eSBD_IO_Bit_Speed = 0x100 | + | *Speed = 0x100 |
| <br></br> | | <br></br> |
− | For example: to enable Din1, Din3 and Do4: 0x01 + 0x04 + 0x80 = 0x85 convert to decimal --> 133. | + | For example: to enable Din1, Din3 and Dout4: 0x01 + 0x04 + 0x80 = 0x85 convert to decimal --> 133. |
| | | |
| ===Setting up Alarm priority records=== | | ===Setting up Alarm priority records=== |
Line 190: |
Line 191: |
| <br></br> | | <br></br> |
| '''''SBD AVL ID and flags''''' – Custom ID that will indicate what caused the record to be generated (final ID will (as only periodic records are generated, ID is not used)). | | '''''SBD AVL ID and flags''''' – Custom ID that will indicate what caused the record to be generated (final ID will (as only periodic records are generated, ID is not used)). |
| + | This byte is divided in two parts of four bits, as shown in table below: |
| + | |
| + | {| class="nd-othertables_2" style="width:100%;" |
| + | |- |
| + | ! colspan="4" style="font-weight:bold;" | <br />Flags (not used yet) |
| + | ! colspan="4" style="font-weight:bold;" | <br />SBD AVL ID |
| + | |- style="color:#fe0000;" |
| + | | <br />Bit 7 |
| + | | <br />Bit 6 |
| + | | <br />Bit 5 |
| + | | <br />Bit 4 |
| + | | style="color:#3531ff;" | <br />Bit 3 |
| + | | style="color:#3531ff;" | <br />Bit 2 |
| + | | style="color:#3531ff;" | <br />Bit 1 |
| + | | style="color:#3531ff;" | <br />Bit 0 |
| + | |} |
| + | <br></br> |
| + | SBD AVL ID is used to show which IO element generated the Panic element. The list of currently implemented possible values is described below: |
| + | <br></br> |
| + | {| class="nd-othertables_2" style="width:100%;"font-weight:bold; vertical-align:middle;" |
| + | ! style="font-weight:bold;" | <br />ID |
| + | ! <br />0 |
| + | ! <br />1 |
| + | ! <br />2 |
| + | ! <br />3 |
| + | ! <br />4 |
| + | ! <br />5 |
| + | ! <br />6 |
| + | ! <br />7 |
| + | ! <br />8 |
| + | ! <br />9 |
| + | |- |
| + | | style="font-weight:bold;" | <br />IO element |
| + | | <br />Periodic rec. |
| + | | <br />Digital Input 1 |
| + | | <br />Digital input 2 |
| + | | <br />Digital input 3 |
| + | | <br />Digital input 4 |
| + | | <br />Digital output 1 |
| + | | <br />Digital output 2 |
| + | | <br />Digital output 3 |
| + | | <br />Digital output 4 |
| + | | <br />Speed |
| + | |} |
| + | <br></br> |
| + | Data from Bit 7 to Bit 4 are not used at the moment. The server should ignore this data part. |
| <br></br> | | <br></br> |
− | '''''DIN/DOUT info''''' - Displays configured IO elements in SBD IO source - parodyt pavyzdį (parameter ID 99422). | + | '''''DIN/DOUT info''''' - Displays configured IO elements values of enabled IO elements in SBD IO source settings - (parameter ID 99422). Since digital inputs can contain only logic 1 or 0 they are bit masked in one byte. |
| + | {| class="nd-othertables_2" style="width:100%;"font-weight:bold; vertical-align:middle;" |
| + | |- |
| + | ! <br />DIN1 |
| + | ! <br />DIN2 |
| + | ! <br />DIN3 |
| + | ! <br />DIN4 |
| + | ! <br />DOUT1 |
| + | ! <br />DOUT2 |
| + | ! <br />DOUT3 |
| + | ! <br />DOUT4 |
| + | |- style="font-weight:normal;" |
| + | | <br />Bit 7 |
| + | | <br />Bit 6 |
| + | | <br />Bit 5 |
| + | | <br />Bit 4 |
| + | | <br />Bit 3 |
| + | | <br />Bit 2 |
| + | | <br />Bit 1 |
| + | | <br />Bit 0 |
| + | |} |
| <br></br> | | <br></br> |
| '''''Reserved''''' - Not used. | | '''''Reserved''''' - Not used. |
| <br></br> | | <br></br> |
| '''''Speed''''' – Indicates the speed of the vehicle if configured. If not (or in case of no GPS) – it will display 255. | | '''''Speed''''' – Indicates the speed of the vehicle if configured. If not (or in case of no GPS) – it will display 255. |
| + | <br> </br> |
| + | |
| + | ==SBD packet example== |
| + | '''Unparsed data:''' |
| + | |
| + | <span style="color:#0000ff">''01004C01001CF99DD263333030323334303634303730383330000018000059282DBC03000B0036A2B8193D120000000302001C'' |
| + | <span style="color:#008000"> ''59282BA391F5ABCDBFDD0180000059282BA891F5ABCDBFDD0180000059282BA391F5AB'' </span> |
| + | <br></br> |
| + | <span style="color:#0000ff">{01} – Protocol revision number</span><br></br> |
| + | <span style="color:#0000ff">{00}{4C} – overall message length</span><br></br> |
| + | <span style="color:#0000ff">{01} – MO header IEI</span><br></br> |
| + | <span style="color:#0000ff">{00}{1C} – MO header length</span><br></br> |
| + | <span style="color:#0000ff">{F9}{9D}{D2}{63} – CDR Reference</span><br></br> |
| + | <span style="color:#0000ff">{33}{30}{30}{32}{33}{34}{30}{36}{34}{30}{37}{30}{38}{33}{30} – IMEI of the device</span><br></br> |
| + | <span style="color:#0000ff">{00} – Session status (Transfer OK in this case)</span><br></br> |
| + | <span style="color:#0000ff">{00}{18} – MOMSN</span><br></br> |
| + | <span style="color:#0000ff">{00}{00} – MTMSN</span><br></br> |
| + | <span style="color:#0000ff">{59}{28}{2D}{BC} – Time of session</span><br></br> |
| + | <span style="color:#0000ff">{03} – MO Location information IEI</span><br></br> |
| + | <span style="color:#0000ff">{00}{0B} – MO Location information length</span><br></br> |
| + | <span style="color:#0000ff">{00}{36}{A2}{B8}{19}{3D}{12} – MO latitude and longitude as described in Iridium documentation. </span><br></br> |
| + | <span style="color:#0000ff">{00}{00}{00}{03} – CEP radius</span><br></br> |
| + | <span style="color:#0000ff">{02} – Payload IEI </span><br></br> |
| + | <span style="color:#0000ff">{00}{1C} – Payload length </span><br></br> |
| + | <span style="color:#008000">{59}{28}{2B}{A3}{91}{F5}{AB}{CD}{BF}{DD}{01}{80}{00}{00} – Record 1</span> <br></br> |
| + | <span style="color:#008000">{59}{28}{2B}{A8}{91}{F5}{AB}{CD}{BF}{DD}{01}{80}{00}{00} – Record 2 </span><br></br> |
| + | |
| + | There blue part of record is satellite device generated data and green is actual record payload which was sent to server from {{{device|}}}. Information of the first record should be parsed like this: |
| + | <br></br> |
| + | <span style="color:#008000">{59}{28}{2B}{A3} – Timestamp of record generation in GMT0;</span> <br></br> |
| + | <span style="color:#008000">{91}{F5}{AB} – Longitude (recalculated value is 25,255756) </span><br></br> |
| + | <span style="color:#008000">{CD}{BF}{DD} – Latitude (recalculated value is 54,832396) </span><br></br> |
| + | <span style="color:#008000">{01} – DIN1 generated event </span><br></br> |
| + | <span style="color:#008000">{80} – DIN1 on, while DIN2, DIN3, DIN4, DOUT1, DOUT2, DOUT3, DOUT4 – off </span><br></br> |
| + | <span style="color:#008000">{00} – Reserved byte</span> <br></br> |
| + | <span style="color:#008000">{00} – Vehicle was stopped when the record was generated</span> <br></br> |