Device service throws "failed to find device <deviceName> in cache" ERROR #19
sounak-1989
started this conversation in
General
Replies: 1 comment 12 replies
-
Check Core Metadata logs for error calling device service callback to Add Device. This will occur if you are running in hybrid mode (device service from command line and the other EdgeX service in Docker) since your device service config has the Service Host set to |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
I am using Device Service SDK to create a new service for my SPI based devices (basically Input and output devices in SPI daisy chain). I am using the "Auto Discover" feature of the SDK.
After successful discovery my autoDiscover() returns the deviceModel structure which is then passed to the deviceCh channel which is of type []sdkModels.DiscoveredDevice.
I am following the Device LLRP as a reference for this design. But Whenever I run my service it shows that the devices are successfully added to metadata and I can query metadata to see the devices. But on the console logs it throws an error "failed to find device in cache". The source of this error is the manageddevice.go file.
Also when I am trying to send a command to my device I get the JSON response "device not found" although it shows the device when I query metadata. Not sure how this is happening. Since most of the stuff is happening inside the SDK I am not able to put breakpoints from within my device service project.
Any help is much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions