Registering Device Instance on Google Assistant SDK - Error 400 - python-3.x

I've been trying to register a device instance on Google Assistant SDK on my Raspberry Pi 3.
Here is my input code
googlesamples-assistant-devicetool --project-id RASPI-ED53D register --model RASPI-ED53D-LIGHT-7NBZNA --type OUTLET --manufacturer SUPERCONN --product-name LIGHT --device 0001 --client-type LIBRARY
Output/Error
Creating new device model
Error: Failed to register model: 400
Could not create the device model. Check that the request contains the required field project_id with a valid format in the request payload. See https://developers.google.com/assistant/sdk/reference/device-registration/model-and-instance-schemas for more information.
The syntax is correct according to the google resources.
Any ideas?

The schema lists action.devices.types.OUTLET, not OUTLET.
When I list my devices, they have similar types specified, e.g.:
Device Type: action.devices.types.SPEAKER

Related

onvif to retrieve log files from ip-camera

As I am trying to get log files out of the camera in python console, would you guys say were the log files of camera gonna be and by following the onvif documentation, I tried using this code:
log=cam.devicemgmt.GetSystemLog({'Logtype': 'System'})
print(log)
errors:
The SystemLogType type doesn't accept collections as value
GetSystemLog() got an unexpected keyword argument 'LogIype'.
I connected camera using onvif in python console, now I need to retrieve log files from the camera using onvif

Not an authentic device on iOS app using Google Cast 3.5

I'm starting to migrate my GoogleCast integration from v2 to v3.5 on iOS when I run your code lab sample I always receive the current errors:
CastVideos-ios[436:35929] -[GCKDeviceAuthChannel didReceiveBinaryMessage:] Device is revoked by CRL.
CastVideos-ios[436:35929] -[GCKCastDeviceConnector deviceAuthChannel:didFailToAuthenticateWithError:] Not an authentic device, disconnecting.
Obviously the videos are not casting to my Chromecast 2.
I'm using the kGCKMediaDefaultReceiverApplicationID to initialize the GCKCastContext
We recommend that you take a look at the sample app on how to correctly integrate the Cast SDK with your app: https://github.com/googlecast/CastVideos-ios
It is very important that you support the Cast lifecycle correctly.

Unity bluetooth communication - implementation

So I have read and tried about everything in order to start a simple bluetooth listener in Unity but with no luck. And couldn't find anyone who managed this.
The main issue is this socket exception:
"SocketException: An address incompatible with the requested protocol was used."
Has anyone successfully implemented bluetooth communication in Unity?
P.S.
I also tried the 32feet library but it gives the same exception when trying to create a new bluetooth listener :
Guid mUUID = new Guid("00001101-0000-1000-8000-00805F9B34FB");
BluetoothListener blueListener = new BluetoothListener(mUUID);

Component uses a device - failed to allocateCapacity

I am using Redhawk 1.9. I have create a dummy device that is used by a dummy component. I have a dummy node containing the dummy device. A dummy waveform which has the dummy component. I am having two problems:
In the Device Manager Console (launch in IDE from TARGET SDR) I get the warning message that indicates the Device is unable to connect to IDM channel. I checked to make sure the Naming and Event service was still up. I am uncertain to track down this problem. I launch the Device Manager with a logging at trace level, but I didn't see anything to help me.
INFO:DeviceManager - Starting Device Manager with /nodes/DummyNode/DeviceManager.dcd.xml
INFO:DeviceManager_impl - Connecting to Domain Manager REDHAWK_DEV/REDHAWK_DEV
INFO:DeviceManager - Starting ORB!
WARN:Device_impl - Unable to connect to IDM channel
INFO:DeviceManager_impl - Registering device DummyDevice_1 on Device Manager DummyNode
INFO:DeviceManager_impl - Initializing device DummyDevice_1 on Device Manager DummyNode
INFO:DeviceManager_impl - Registering device DummyDevice_1 on Domain Manager
When I launch the Dummy Waveform from the IDE, I get an invalidCapacity error message. The dummy component uses the dummy device. It looks for the property device_kind = dummy_device_kind. I overrode the allocateCapacity method in the DummyDevice to return true. I check out the dummyDevice in the python command line and the allocateCapacity return true.
Error Message:
NFO:DomainManager_impl - Installing application /waveforms/DummyWaveform/DummyWaveform.sad.xml
DEBUG:ComponentInfo - Loading component properties from /components/DummyComponent/DummyComponent.prf.xml
DEBUG:ComponentInfo - Parsing component properties
DEBUG:ApplicationFactory_impl - UsesDevice Impl Vec of length 1
DEBUG:ComponentImplementationInfo - Attempting to match allocation properties
DEBUG:ComponentImplementationInfo - Trying to match for property id DCE:cdc5ee18-7ceb-4ae6-bf4c-31f983179b4d
DEBUG:ComponentImplementationInfo - It's a matching prop
DEBUG:ApplicationFactory_impl - Trying to find the device
DEBUG:ApplicationFactory_impl - Device Allocation Failed.. need to clean up
DEBUG:ApplicationFactory_impl - --FAILED-- Allocation of component's implementation cpp of DummyComponent_1. Undoing allocate devices
ERROR:ApplicationFactory_impl - The following CORBA exception occurred: InvalidCapacity while creating the application
INFO:DomainManager_impl - Uninstalling application DCE:8d0a6e63-24f6-4766-9a3f-7db7fd516078
As far as your event channel problem, double-check your domain manager's startup messages. For example, when I start the domain manager without omniEvents running, I see:
$ nodeBooter -D
INFO:DomainManager - Starting Domain Manager
WARN:EventChannelSupport - Event channel REDHAWK_DEV.ODM_Channel not created
WARN:EventChannelSupport - Event channel REDHAWK_DEV.IDM_Channel not created
INFO:DomainManager - Starting ORB!
If omniEvents appears started, but the domain still seems to have problems creating the event channels, you might try resetting omniEvents. See Appendix H, Section 6 of the documentation.
If you don't see warning messages from your domain manager, then I would use nameclt to verify that the event channels are showing up in your domain, for example:
$ nameclt list REDHAWK_DEV
ODM_Channel
IDM_Channel
REDHAWK_DEV
You can also use eventviewer to help debug/view events. Depending on whether the event channel is registered or not, you'd see either:
$ eventviewer REDHAWK_DEV IDM_Channel
Receiving events. Press 'enter' key to exit
if things are working, or if not:
$ eventviewer REDHAWK_DEV IDM_Channel
No such channel exists

Generate DeviceId and DevicePassword for crmsvctutil

I am trying to generate code using crmsvcutil. I have CRM Online. I have used DeviceRegistration project present in SDK for device id and device password generation. But the generated device id is of length 26, while using this device id in crmsvcutil, it throws error that the device id length should be between 12 and 22 characters.

Resources