Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-966

Can write fail with low-can-service

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • Eel
    • None
    • None
    • SW:Dab4.0.0
      HW:Renesas m3ulcb
      CanDev:slcan0

      I try to write can data with dashboard through low-can-service. but it makes dashboard's websocket close.
      I do the job as follow.
      1)I add the following information to dashboard's config.xml, let dashboard use low-can-service and can set permission to write.
      <feature name="urn:AGL:widget:required-api">
      <param name="#target" value="main"/>
      <param name="low-can" value="ws"/>
      </feature>
      <feature name="urn:AGL:widget:required-permission">
      <param name="#target" value="main"/>
      <param name="urn:AGL:permission:low-can:platform:write" value="required"/>
      </feature>

      2)when dashboard starts, it will open the websocket to connect to the low-can-service, then send "low-can/auth" and "low-can/write" command and parameter below,
      but websocket is closed when the command finished.
      [ 2 ,"99999","low-can/auth"]
      [ 2 ,"99999","low-can/write",

      {"signal_name":"S_AUT.rear.left", "signal_value":1}

      ]

      3)I send the following command and parameter using afb-client-demo and low-can-service application, and can data can be written successfully.
      low-can auth
      low-can write

      {"signal_name":"S_AUT.rear.left", "signal_value":1}

      Is there any problem with upper?
      Could you tell me the right way to wirte can data in QT application?

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            claneys Romain Forlot
            wangzhiqiang zhiqiang wang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: