Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

How to set the device protocols information #10

Open
khalid-huang opened this issue Oct 11, 2021 · 4 comments
Open

How to set the device protocols information #10

khalid-huang opened this issue Oct 11, 2021 · 4 comments

Comments

@khalid-huang
Copy link

I want to know how to set the device protocols in the device-service? For example, if I want to set the modubs-tcp or modbus-rtu prtocols in device-service link, what should I do ?

@qclc
Copy link
Member

qclc commented Oct 11, 2021

@khalid-jobs My understanding is that you want to modify deviceService and deviceProfile in the cloud and synchronize the modifications to the edge. Because modifying deviceService and deviceProfile may affect many other devices, the current version of Yurt-device-controller does not support modifying deviceService or deviceProfile.

@khalid-huang
Copy link
Author

I want to know how the device-service fetch the device file (such as "devices.toml"). And I am a little confused about the relations of addressable filed in

apiVersion: device.openyurt.io/v1alpha1
kind: DeviceService
metadata:
  name: hangzhou-device-service-test
spec:
  nodePool: hangzhou
  addressable:
    address: edgex-device-virtual-test
    method: POST
    name: device-service-test
    path: /api/v1/callback
    port: 49999
    protocol: HTTP
  adminState: UNLOCKED
  operatingState: ENABLED

and DeviceList.protocol

@khalid-huang
Copy link
Author

@qclc

@qclc
Copy link
Member

qclc commented Oct 14, 2021

It looks related to the use of device-modbus-go, maybe need @yixingjia @lwmqwer to help answer this question.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants