cancel
Showing results for 
Search instead for 
Did you mean: 

Data is not getting from sensor to Dashboard

Former Member
0 Kudos

Hello Experts,

I am following

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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:



Former Member
0 Kudos

Hi,

Right now i don't have iPad. I will cross check with iPad and let you know.

Regards,

Pavan 

Former Member
0 Kudos

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

fred_verheul
Active Contributor
0 Kudos

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

RonaldKonijnenb
Contributor
0 Kudos

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....

ukottig
Explorer
0 Kudos

Sorry, but Question seem not be be answered.

As I have imported and deployed like a above.

Java App is running fine

but UI5 App says "Connection Dropped" and I do not find a solution here.

Where do I find a step-by-step fix?

regards

Ulf

Former Member
0 Kudos

Hello Ulf,

Will you please provide some more information at which point you are stuck,so i can help you as per my best.

Try this one as suggested by Fred,

Let me know if you facing any other issue after trying above mentioned solution.

Regards,

Pavan 

ukottig
Explorer
0 Kudos

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

ukottig
Explorer
0 Kudos

Hi Fred,

could you help/advice (See below)

fred_verheul
Active Contributor
0 Kudos

Here is the line after I changed it in wsManager.js:


host = host.replace(oldhost,"simplesensortag").replace("l.dispatcher","");

Hope this helps, don't recall the details anymore (and don't have time to dive back in).

ukottig
Explorer
0 Kudos

worked, thanks!

Answers (0)