Roadmio
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    ###### tags: `modern system` # New Cloud System Specfication ## Change Log | Version No. | Date | Description | Author | | :---------: | :--: | ----------- | :----: | | 1.0.0 | 2020-01-10 | [Change of details](#1.1.0) | Greg | | 1.0.0 | N/A | The first release | Ruby | :::warning ## QA ### Tripo Ver. 1.0.0.e 10. 操作車輛啟動,parking>engineStart>duringTrip。接著檢查tripHistories,相同的imei可以檢索到兩條數據。eventType分別是duringTrip與parking {deviceId:”351918068642899"} 11. 操作車輛停駛,duringTrip>engineOff>sleepStart。接著檢查tripHistories,{tripId:"1580455952642899"}可以檢索到”17”筆數據 > L1 若速度最大值,是否判斷為無效Engine Start ### Sensol Ver. 2.0.0 issue: 941-High Tire Pressure942-Low Tire Pressure這兩個事件觸發後,檢查sensol沒有向alerto上報的log。 用來觸發胎壓過高,界限值=lowerPressure="-29",upperPressure="-10“ 用來觸發胎壓過低,界限值=lowerPressure="20",upperPressure="50“ Change Request 1.sensol給alerto的payload, 添加field:經緯度 ```jsonld { "imei": "351918068643087", "latitude": "121.3662942", "longitude": "25.0171608", "reportTime": "1567756506", "alertList": [{ "alertId": "940", "data": { "sensorId": "00791", "current": "60", "upper": "50" } }] } ``` 2.如果车辆没有绑定胎压监测器(attached.tpmsIDs为空),而Sensol接收到了胎压数据,数据都是0,超过5min后,不需要上报alerto-945事件 3. vehicle.ATTACHED -> vehicle.attached ::: ## 1.0.0 (2020-02-03) ### WatchOVO OAO?! > 處理完後透過SQS傳給Alerto ### Zono - provide formula convert UTM coordinates (x, y) to latitude, longitude ### Converto - [x] 新增zeroRPMPeriod in "fuel_stats" event from L3 report ### Tripo - [ ] 手動打點功能(介面可能透過SQS or HTTP) - 用途是為了讓Alerto新增event point - Bug - [ ] 當收到during_trip後會打包vehicle_statuses ### Vehicol - [ ] 新增字段 - [ ] zeroRpmPeriod, minSpeed至vehicle_statuses.dashboard.vehicle.journeyData - [ ] avgGpsSpeed, avgVssSpeed至 vehicle_statuses.dashboard.vehicle.obd2Reading (即時速度資訊) - [ ] 修正 - [ ] 字段名稱打錯 dashboard.vehicle.obd2Reading.anbientTemperature -> dashboard.vehicle.obd2Reading.ambientTemperature ### Drivo - [x] 更正vehicle_statuses中dashboard.driver欄位 - [x] 新增brakePeriod字段 - [x] 新增accPeriod字段 - 該字段由converto傳給Drivero的driver_pedal_pattern event獲得 ```json { "eventType": "driver_pedal_pattern", "dateTime": int, "IMEI": string, // gps info "longitude" : double, "latitude" : double, "accuracy" : number, // pedal pattern "observePeriod": int, "idlePeriod" : int, "accPeriod" : int, "brakePeriod" : int, "coastPeriod" : int; } ``` - idlePeriod, accPeriod, brakePeriod, 及coastPeriod 此四欄位合稱為pedal pattern。且pedal pattern及observePeriod之值為不斷累加直到trip結束,才需被清成初始值0。 - Ideally, idlePeriod + accPeriod + brakePeriod + coastPeriod = observationPeriod ### Devicio - [x] 更改打包机制,添加0点打包,此时除了operatingMin字段不用打包外,其他字段均进行打包,打包后更新vehicleStatus对应数据 - sleepMin:每次0点打包时,去summary里面取一次数据,若小于1天,就用这个值进行打包,若大于1天,那么值就为24小时。当tripo 发送 sleep_end事件时,会传递sleep的时间,这个时间需要再进行判断,若大于当前时间,那么此时使用当前时间进行打包,若小于当前时间,就以传递过来的时间进行打包。 ### Sensol - [x] vehicle.ATTACHED -> vehicle.attached ## 1.0.0 (2020-01-20) > 規格異動內容參考 [會議記錄](https://hackmd.io/@Ye0fx7gRQ76VNKwJJyVYdA/BJsvxqfWI) ### Zono - [ ] 新增Data至DB > 自己Parsing - [ ] OpenData在DB中格式 > 自行定義 ### Vehicol - [x] 機制更新 - [x] 取during trip值時,需由reportType,區分L1/L2 Report - [x] 收到非法字元(e.g., 0或null)則忽略不採用 (e.g., L1中avgRPM為0或null,則不更新DB中avgRPM的值) - [x] 待修正 - [x] 打包動作 - [x] 同步更新vehicle.dailyRecords, vehicle.weeklyRecords, vehicle.monthlyRecords - [x] 清空fuelStats的值 ### Tripo - [x] 效能問題 - [x] 當5至10台OBD2時,ecs container (0.25 vCPU, 0.5GB Mem) CPU loading已達97% :::info 1.0.0.E 優化aggregation操作, 已經有改善, 須在模擬觀察 ::: ### Sensol - [x] 新增sensol -> alerto queue - [x] 事件字段調整 - [x] sensol -> alerto的event中,移除tripId - [x] 移除暫存機制 - [x] 資料庫表格名稱調整 - [x] vehicle_info調整成vehicles ## 1.0.0 (2020-01-15) ### Tripo - [ ] 新增SQS轉發事件 - [ ] trip_end event to zono - [ ] trip_start event to zono ### Zono - [ ]private interest zone 指到vehicle zoneID OAO?! ![](https://i.imgur.com/Vu6MIb0.png) >> 不走到ZONO走到FRONTO吧 一個array 存放 zoneId = "zoneId[]" (應該是先做這兩個功能)先分析 哪裡是home 哪裡是office,如果是貨車可能就判斷不出來了 ## 1.0.0 (2020-01-10) > 規格異動內容參考 [會議記錄](https://hackmd.io/t9mQHqNESLq7_jdB56PtIQ) ### Converto - [x] 新增SQS轉發事件 - [x] sleep_start event - [x] 事件字段調整 - [x] during_trip新增字段`reportType` - [x] during_trip新增接收端`Drivo` ### Tripo - [x] vehicle_statuses.summary新增字段 - [x] gpsDistance - [x] gpsSpeedDistance - [x] speedDistance - [x] 刪除字段curObdTime - [x] 新增字段reportTime - [x] level1LastReportTime - [x] curObdTime (將原本的curObdTime移至此字段內) - [ ] 新增sleepMin (OBD還未實作, 可先忽略) - [x] 新增SQS轉發事件 - [x] trip_end event - [x] sleep_end event - [x] 調整tripPoint.tripInfo數據定義 (都是從起點累積至該點的狀態) - [x] trip_points 刪除字段 - [x] vehicleInfo.motionState ### Sensol - [x] 增加 tpms_data event (解析ble_data from Converto, 如有TPMS資料則產生該事件並送給Vehicol, Drivo) ### Vehicol - [x] 打包時機調整 - [x] subscribe trip_end from Tripo via SQS - [x] record拆成三個collection, daily, weekly and monthly - [x] 依序打包daily -> weekly -> monthly - [x] vehicle_statuses.dashborad.vehicle.journeyData刪除字段 - [x] duration - [x] heading - [x] gpsDistance - [x] gpsSpeedDistance - [x] speedDistance - [x] fuelRate - [x] fuelLevel - [x] fuelUsed - [x] fuelTankCapacity - [x] vehicle_statuses.dashborad.vehicle.obd2Reading刪除字段 - [x] fuelTankCapacity - [x] vehicle_statuses.dashborad.vehicle.calculated刪除字段 - [x] fuelLevel - [x] fuelTankCapacity - [x] vehicle_statuses.dashborad.vehicle新增字段 - [x] fuelStates (收到fuel_stats就直接填入此array) ### Drivo - [x] 打包時機調整 - [x] subscribe trip_end from Tripo via SQS - [x] record拆成三個collection, daily, weekly and monthly - [x] 依序打包daily -> weekly -> monthly - [x] 15分鐘平均速度計算調整 - [x] 採用即時計算而不是旅程結束後透過tripPoint計算 - [x] vehicle_statuses.dashboard.driver新增字段 - [x] fifteenMinsRecord ### Devicio - [x] 打包時機調整 - [x] subscribe trip_end from Tripo via SQS - [x] subscribe sleep_end from Tripo via SQS - [x] record拆成三個collection, daily, weekly and monthly - [x] 依序打包daily -> weekly -> monthly - [x] vehicle_statuses.dashborad.device新增字段 - [x] cellularLossMin - [x] gpsLossMin (新增在gps字段裡面)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully