cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

hello - i'm setting up a scenario as below.

1. sensor sends data to iot services on HCP

2. configured service to forward sensor data to smart data streaming on cal.sap.com

3. Registered service from cal.sap.com to HCP - as mentioned in http://help-legacy.sap.com/saphelp_hana_options_sds_adapt/helpdata/en/68/df4e6a1cbd43f1890ce58e012f4...

4. Created project/workspace/etc and they are working fine

Issue - the sensor data doesn't seem flow to smart data streaming service.. not much useful info in the log file. Any suggestions.

Secondly - where do i see the data forwarded from iot service in cal (i configured HANA studio, but there is no data. i'm using SYSYEM schema) - any suggestion on which table holds the data.

thanks for your help

pandari

0 Likes
View Entire Topic
Former Member
0 Likes

Hello Pandari,

it seems that your SDS is not configured properly. To ensure that, could you please send a POST request with an HTTP client (e.g. POSTMAN) to your SDS authorization service as described here in the SDS guide: https://apps.support.sap.com/sap/support/knowledge/preview/en/2344255

Method: POST

URL:

https://<system>sws<account>.<landscape-suffix>:443/1/authorization

Header:

- Content-Type: application/json

- Authorization: BASIC (with your username and password to access Smart Data Streaming)

Body:

[ { "privilege":"write", "resourceType":"stream", "resource":"<your workspace>/<your project>/<your stream>" } ]

as far as I can see this from your configuration picture, the resource string should be "default/zstreamproj/ziotstream"

If the response code is ...

- 200 with the response [{"sws-token":"<token>"}], your SDS service seems to be configured correctly and we should investigate the interaction between IoT Service MMS and SDS in detail

- 401, your credentials are not valid

- 405, your SDS is not configured correctly. Maybe you have not enable the Streaming Webservice (SWS) or Web Services Provider (WSP) functionality - Than please follow the configuration instructions in the link provided above.

Kind regards,

Ralf

Former Member
0 Likes

hello ralf - i'm using SAP cloud appliance (cal.sap.com) + azure, and i have the ip address of SDS instance. so i constructed my url as https://<ip-address>:443//1/authorization, content json, basic authentication - user id/pass, and raw payload - [ { "privilege":"write", "resourceType":"stream", "resource":"default/zstreamproj/ziotstream" } ]

I got - "The requested url can't be reached". I'm able to access this url from eclipse and using browser.

i changed the port from 443 to 30026, i got "install self signed certificate" error..

any thoughts on how the url should look like.

thx

pandari

RobertWaywell
Product and Topic Expert
Product and Topic Expert
0 Likes

If you are trying to publish to a CAL instance, then the host name and port will be different than if you are working in HCP. For example, HCP handles the routing from a generic port 443 to the actual SWS port. The default port for websocket connections on the SWS itself is 9093. When trying to connect to the SWS on an Azure VM the address for the uri should be "https://<external or public ip address of the Azure host>:9093/..."

Former Member
0 Likes

Pandari, were you able to get the authorization token from the SDS in your CAL instance with the link Robert provided?
You can also check the version with "https://<external or public ip address of the Azure host>:9093/1/version". Do you get a response there?

Former Member
0 Likes

i tried https://40.68.97.67:9093/1/authorization , https://40.68.97.67:9093/1/version. tried with http just in case - got error "This page can't be displayed". I know this ip address is valid, as i can access http://40.68.97.67:8000/sap/devs/edition/index.html.

Any thoughts?

Thx

Pandari