Test agl-service-unicens using afb-client-demo
Description
Environment
Attachments
- 18 Jan 2019, 08:33 AM
- 18 Jan 2019, 08:31 AM
relates to
Activity
Tobias Jahnke January 18, 2019 at 9:46 AM
This means that it can find the configuration file, but the initialization expects the respective MLD driver is loaded, and the respective character devices are available.
The AGL images are pre-configured to work out of the box, but you need to plug a certain INICnet hardware via USB.
Do you have any Microchip hardware for your tests?
Ashvini Deshmukh January 18, 2019 at 8:34 AM
Hello Tobias,
I have attached a file for journalctl command .
When I bind unicens service on port 8000 and token '1', I get following result:
HOOK: [xreq-000002:unicens/initialise] BEGIN
HOOK: [xreq-000002:unicens/initialise] get(filename) -> { name: filename, value: /var/config_multichannel_audio_kit.xml, }
NOTICE: [API UNICENS] Parsing result: 8 Nodes, 9 Scripts, Ethernet Bandwith 20 bytes = 7.68 MBit/s
HOOK: [api-UNICENS] vverbose(5:notice, /usr/src/debug/agl-service-unicens/0.1+gitAUTOINC+7f22650353-r0/git/ucs2-afb/ucs_bs
ERROR: [API UNICENS] Fail to initialise device [rx=/dev/inic-usb-crx tx=/dev/inic-usb-ctx] /usr/src/debug/agl-service-un
HOOK: [api-UNICENS] vverbose(3:error, /usr/src/debug/agl-service-unicens/0.1+gitAUTOINC+7f22650353-r0/git/ucs2-afb/ucs_bi]
HOOK: [xreq-000002:unicens/initialise] reply[load-failed](null, Cannot parse file and start UNICENS)
HOOK: [xreq-000002:unicens/initialise] END
Regards,
Ashvini Deshmukh
Tobias Jahnke January 18, 2019 at 7:20 AM
Hello Ashvini,
the html page is using Ucs2Binding.js (functions init() and querySelectList()) to find available configuration files.
I would recommend to pass a fully qualified path (no relative path), otherwise it is possible that the binding does not find the xml file.
However, there might be another issue.
Can you post an output of:
$ journalctl -b | grep unicens
Best regards
Tobias Jahnke
Ashvini Deshmukh January 18, 2019 at 6:12 AM(edited)
Hello Tobias,
Thank you for the information.
We are using Renesas R-Car M3 board.
I have seen UNICENS.html file, which is really helpful.
In that file, it is mentioned that for initialise verb we need to have filename as ucs_config file. If I use /var/config_multichannel_audio_kit.xml for configuration as follows
unicens initialise {"filename":"/var/config_multichannel_audio_kit.xml"}
This gives an error as ''Cannot parse file and start UNICENS".
*Could you please tell me about the *ucs_config file *or let me know which configuration file is used * to initialise unicens.
Regards,
Ashvini Deshmukh
Tobias Jahnke January 17, 2019 at 3:10 PM
Hi Ashvini,
agl-service-unicens is automatically loading a default configuration (data/config_multichannel_audio_kit.xml), starting up the network and establishing audio routing as configured.
Additional API can be used to register to events, send I2C commands or control messages to any network node.
You can find an example in UNICENS.html which is calling the API via JavaScript. An API description will follow soon.
Does this help? Which hardware are you using?
Regards,
Tobias Jahnke
Hello All,
I need to test agl-service-unicens on Renesas board. It is found that unicens service is running on the board.
How to test this service using afb-client-demo executable.
Regards,
Ashvini Deshmukh