on 06-14-2016 2:35 PM
Hello Experts,
I have following devices TI CC2650, iPad .Installed SensorTag & Evothings on iPad. Data captured from sensor is successfully displaying on browser as
below. As per above blog i downloaded simpleUI5dashboard & imported in SAP WebIDE .
Dashboard screen is attached below. Connection Dropped is showing at bottom of IoT Dashboard. Is anything i have missed ?
Regards ,
Pavan
Hello All,
After searching in simpleUI5dashboard project in SAP IDE. Got following solution.
1.Deploy simpleSensortag.war in Java Application of HANA cockpit.Please keep the application name same as it is i.e.simpleSensortag.
(Error occurred due to name change of application during deployment of war file. So wsManager.js giving "websocket exception error during websocket handshake unexpected response" checked in page inspect feature)
2.Import simpleUI5dashboard in SAP WebIDE & Deploy on HCP.
Sensor data will come on Dashboard directly.So problem resolved.
Regards,
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not able to run the UI5 dashboard. Still getting the error "connection dropped".
I did not rename the java application during .war file upload.
By the way the application can not be named like "simpleSensortag" (as propsed by you) since capital letters are not allowed. So I named it "simplesensortag" as propsed from the .war file. Furthermore I changed the application name in wsManager.js file like this:
NEW:
var wsUriWS = "wss://" + host + "/simplesensortag/ws";
OLD:
var wsUriWS = "wss://" + host + "/simpleSensortag/ws";
Anyhow I doesn't worked out.
Could you please give some advices how to fix it.
Thank you.
Hello @Pavan Hampi,
I've tried your solution, but still face some problems:
1.Deploy simpleSensortag.war in Java Application of HANA cockpit.Please keep the application name same as it is i.e.simpleSensortag.
I agree with @Cornelius Jaeckel, That seems not possible, only lower case is supported:
So I changed it to: simplesensortag
Now the situation is that the simpleSensortag page works:
But the dashboard page still Error:
Hello ,
1.Have you deployed Dashboard application on HCP ?.
I tried on my android device.it fetches as per sensor provides data.
2.Have you installed Evothings client on your device?This client will work as bridge between TI sensor and HCP. Please try this. As per your 1st screenshot you getting data in gauge.Scan the QR code,it will generate like "evothings://simplesensortag--------.us1.hana.ondemand.com/simpleSensortag/bridge-st/index.html"(this is my auto generated URL). Open this link.You will get following
Regards,
Pavan
Hi,
I got it working by (in wsManager.js) eliminating not only ".dispatcher" from the host variable, but "l.dispatcher".
The thing is: the Java application is deployed at simplesensortagp<insert 10-digit p-number>tria.hanatrial etc. So "trial", right after your p-number was truncated because apparently it can't be longer than 30 characters.
Hope this helps...
BR, Fred
Fred is right. The application URL for simplesensortag is incorrect (in the war file)
https://simplesensortags000xxxxxtria.hanatrial.ondemand.com/simpleSensortag
I'ts missing an L for triaL....
Hi Pavan,
I deployed simplesSensortag.war and kept the same Name. (w/o an capital S, as discussed above)
The application workd fine.
Then I imported simpleUI5dashboard in the WebIDE and deployed it to HANA and I geht the message "Connection dropped"
Now I am looking into wsManager.js as suggested by Fred. There I find one line with
host = host.replace(oldhost, "simplesensortag").replace(".disptacher","");
Do I just remove ".disptatcher" to
host = host.replace(oldhost,"simplesensortag").replace(,""); ? or how does it should look like?
and where do I find "I.disptatcher" ? I can't find it in the source.
thanks in advance.
regards
ulf
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.