Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RX65N Greengrass dicovery demo app cannot connect with GG core #5

Open
wolverie opened this issue Feb 25, 2019 · 8 comments
Open

RX65N Greengrass dicovery demo app cannot connect with GG core #5

wolverie opened this issue Feb 25, 2019 · 8 comments
Assignees

Comments

@wolverie
Copy link

Describe the bug
I can run Windows Device Simulator demo app for Greengrass Discovery successfully,
but cannot run demo app for RX65N-RSK

To Reproduce
Steps to reproduce the behavior:

  1. Create GG group, core
  2. Create a IoT thing and add to GG group
  3. Use certificate and private key of IoT thing to configure for Windows Device Simulator demo app
  4. Create a subscription from IoT thing to IoT cloud
  5. Run the GG core SW on Pi Raspberry
  6. Deploy GG Group
  7. Choose "Test" in IoT console, subscribe to topic "freertos/demos/ggd"
  8. Run the Windows Device Simulator demo app and see the subscription message in IoT console
  9. (To try with RX65N) Use above certificate and private key of IoT thing in step use zero copy feature for FreeRTOS+TCP porting #3 to configure the GG discovery demo app of Renesas RX65N-2MB
  10. Run GG Discovery demo app (of RX65N)

Expected behavior
The debug console shows:
"GGD - Can't connect to greengrass Core"

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10
  • IDE: e2 studio v7.0.0
  • Compiler: CCRX v3.0

Additional context
I used the RX65N-RSK board from Renesas (R5F565NEDxFC)

@HirokiIshiguro
Copy link
Member

Thank you very much, I will confirm this issue at this weekend. Please wait.

@HirokiIshiguro
Copy link
Member

Hi, I have setup Greengrass environment. And it seems to get good behavior for discovery phase.
It seems to fail MQTT behavior. I will try again in next weekend. I need more time to experiment.

I tried using following info.

Greengrass IoT Core side:
https://docs.aws.amazon.com/greengrass/latest/developerguide/gg-gs.html

Greengrass IoT Device side:
https://docs.aws.amazon.com/freertos/latest/userguide/gg-demo.html

Could you try using certified version of Amazon FreeRTOS?
There is certified version of Amazon FreeRTOS in Amazon Web Services site.
Sign in -> AWS management console -> IoT -> Amazon FreeRTOS -> Renesas Starter Kit+ for RX65N-2MB

-- my log
10 12000 [Tmr Svc] data flash(main) hash check...
11 12008 [Tmr Svc] OK
12 12008 [Tmr Svc] data flash(mirror) hash check...
13 12017 [Tmr Svc] OK
14 12023 [Tmr Svc] Write certificate...
15 12023 [Tmr Svc] data flash(main) hash check...
16 12032 [Tmr Svc] OK
17 12032 [Tmr Svc] data flash(mirror) hash check...
18 12041 [Tmr Svc] OK
19 12049 [Tmr Svc] erase dataflash(main)...
20 12050 [Tmr Svc] OK
21 12050 [Tmr Svc] write dataflash(main)...
22 12051 [Tmr Svc] OK
23 12051 [Tmr Svc] erase dataflash(mirror)...
24 12052 [Tmr Svc] OK
42 12352 [IoT_GGD] Attempting automated selection of Greengrass device
43 12392 [IoT_GGD] data flash(main) hash check...
44 12410 [IoT_GGD] OK
45 12410 [IoT_GGD] data flash(mirror) hash check...
46 12427 [IoT_GGD] OK
47 29478 [IoT_GGD] About to close socket.
48 29488 [IoT_GGD] Socket closed.
49 29493 [IoT_GGD] Stack high watermark for discovery helper task: 7364.
50 29999 [IoT_GGD] data flash(main) hash check...
51 30008 [IoT_GGD] OK
52 30008 [IoT_GGD] data flash(mirror) hash check...
53 30019 [IoT_GGD] OK
54 41055 [IoT_GGD] About to close socket.
55 41057 [IoT_GGD] Socket closed.
56 41062 [IoT_GGD] Stack high watermark for discovery helper task: 6729.
57 41063 [IoT_GGD] Greengrass device discovered.
58 41063 [IoT_GGD] Establishing MQTT communication to Greengrass...
59 41066 [MQTT] data flash(main) hash check...
60 41075 [MQTT] OK
61 41075 [MQTT] data flash(mirror) hash check...
62 41084 [MQTT] OK
63 56636 [IoT_GGD] Disconnecting from broker.
64 56647 [IoT_GGD] Disconnected from the broker.
65 56647 [IoT_GGD] Deleted Client.
66 56654 [IoT_GGD] Heap low watermark: 10688. Stack high watermark: 6729.
67 56654 [IoT_GGD] ----Demo finished----

@wolverie
Copy link
Author

wolverie commented Mar 4, 2019

Hi SheltyDog,

I've tried both Github and certified version. The behaviour is the same.
Which reference platform did you use for confirmation? I used RX65N-RSK-2MB.

@HirokiIshiguro
Copy link
Member

OK, I will confirm Greengrass behavior and inform my setup procedure in more details.

@wolverie
Copy link
Author

Hi,

Any progress so far?

@HirokiIshiguro
Copy link
Member

Sorry, I have not completed this work yet.
Now this work is in progress as best effort. But now I have some official work.
I cannot allocate time for this. If I would progress, I will inform the situation to this thread.

Which reference platform did you use for confirmation? I used RX65N-RSK-2MB.
I use RX65N RSK 2MB too.

@wolverie
Copy link
Author

Any progress? I tried version 0.9.1 of this branch by using import function from e2s directly. However, GG demo still does not work.

@HirokiIshiguro
Copy link
Member

Hi, wolverie.
Sorry for keeping you waiting.
Now I assigned this work to @18dragonfly in my team.
If we would get progression, we will inform to this issue ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants