Skip to content
This repository has been archived by the owner. It is now read-only.

Blockly not working #342

Closed
jwillmer opened this issue Sep 30, 2016 · 27 comments
Closed

Blockly not working #342

jwillmer opened this issue Sep 30, 2016 · 27 comments
Assignees

Comments

@jwillmer
Copy link

@jwillmer jwillmer commented Sep 30, 2016

Setup

  • I have a Raspberry 3 with sense hat
  • I deployed the latest Windows IOT on it.
  • I used the IOT Dashboard to deploy blocky.

Problems

  • With the stable Windows IOT image I can't reach the web interface of blockly - config interface is available
  • With the preview image I can reach the web interface of blockly but the run command does not produce any change on the sense hat.
@jwillmer jwillmer changed the title Blocky not working Blockly not working Sep 30, 2016
@jwillmer
Copy link
Author

@jwillmer jwillmer commented Sep 30, 2016

After a restart the heartbeat example is working on Windows IOT Preview but updating the heartbeat does not work.

I get this exception on the command line of Chrome:

192.168.1.130/:1 Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause().
@gourabSh07
Copy link

@gourabSh07 gourabSh07 commented Sep 30, 2016

I also have almost same problem Windows IOT image I can't reach the web interface of blockly
I am using windows build 14393

@jwillmer
Copy link
Author

@jwillmer jwillmer commented Sep 30, 2016

I was now able to reach the web interface on the stable build after redeploying the build and the app.

I also managed to get the heartbeat to run after pressing countless times on run but the method is not relayent.

@IoTGirl
Copy link
Contributor

@IoTGirl IoTGirl commented Oct 3, 2016

Can you please provide a link to the Microsoft Sample you are referring to that is failing?

@jwillmer
Copy link
Author

@jwillmer jwillmer commented Oct 3, 2016

IOT Blockly

FYI the blockly example is one of 4 examples that you can automatically download and install to your Raspberry PI via the IOT Dashboard. I think it is pretty bad that a promoted example does not work.

@IoTGirl
Copy link
Contributor

@IoTGirl IoTGirl commented Oct 3, 2016

Excellent! Thank you for the link. Assigned @rachitb777 to take a look.

@rachitb777
Copy link
Contributor

@rachitb777 rachitb777 commented Oct 3, 2016

@jwillmer Do you see IoTBlocklyBackgroundApp [Startup] listed in the apps page in Windows Device Portal?

@jwillmer
Copy link
Author

@jwillmer jwillmer commented Oct 3, 2016

Of course, how else would I be able to browse to the website?

@alecont
Copy link
Contributor

@alecont alecont commented Oct 7, 2016

thanks for the feedback! We'll look into this in the next couple of days. We made a couple of changes to the source code here on github which are not reflected yet on the appx deployed by IoT Dashboard.

@OwenBrotherwood
Copy link

@OwenBrotherwood OwenBrotherwood commented Oct 9, 2016

@jwillmer
How about testing with and without Windows IoT Remote Server enabled.
Both the example and the remote server seem to be using the same port, 8000.
That is, do not start the remote server and deploy the sample.

Edit
Hw: 10.0.14393.0 Pi3
Commit: 44daa31

@jwillmer
Copy link
Author

@jwillmer jwillmer commented Oct 9, 2016

@OwenBrotherwood I can try it but the Windows IoT Remote Server is not using port 8000 it uses 8080 as default. Anyhow I think the example should work without any hack.

@OwenBrotherwood
Copy link

@OwenBrotherwood OwenBrotherwood commented Oct 10, 2016

@jwillmer :
Windows IoT Remote Server is NOT started by default: it is up to the administror to start it: a choice that can be affected by the other software chosen to be run on the unit ie NOT a hack
The Web Interface uses 8080 (where one enables Remote Server)

@alecont The example will work, however the port used should be changed from 8000 to some other port plus a clear indication where in the source code the chosen default can be changed or made as a configurable option.
I have not found out yet where the port 8000 is set: given some information, I can create a pull request.

@jwillmer
Copy link
Author

@jwillmer jwillmer commented Oct 10, 2016

@OwenBrotherwood I mixed up the Device Portal with the Windows IoT Remote Server. The Windows IoT Remote Server was not active. I deployed a clean install of Windows IoT and used the IoT Dashboard to deploy blockly

@OwenBrotherwood
Copy link

@OwenBrotherwood OwenBrotherwood commented Oct 10, 2016

@jwillmer
Is your status, No Windows IoT Remote Server aktive and Blockly works?

@jwillmer
Copy link
Author

@jwillmer jwillmer commented Oct 10, 2016

Yes, I see the Blockly web page but I am unable to start any template.

@OwenBrotherwood
Copy link

@OwenBrotherwood OwenBrotherwood commented Oct 10, 2016

@jwillmer OK I do not have a sense hat: I want to use the example as a start to integration to https://www.microbit.co.uk/ which has strong links to microsoft
-- and create a pull request for the result if I ever get that far.
Edit:

return -1003; // same as micro:bit (see https://m.pxt.io/reference/input/compass-heading)

Edit Edit: https://github.com/ms-iot/virtual-shields-universal Arduino but make it micro:bit

"start any template" : do you mean get the template (program) to run and show a result on the sense hat?

@jwillmer
Copy link
Author

@jwillmer jwillmer commented Oct 10, 2016

@OwenBrotherwood Yes, there is for instance a heartbeat demo that I tryed to run

@OwenBrotherwood
Copy link

@OwenBrotherwood OwenBrotherwood commented Oct 10, 2016

@jwillmer /cc @IoTGirl @alecont @rachitb777
The line of code that dictates port 8000 (grep -r 8000 *)
I have to double check the port used by Remote server and try and make a pull request with the port as a configurable option with a default that does not conflict with the standard ports used with the startable services, such as Remote Server

I also took the time to do:

root@home:/mnt/c/Users/owen/Documents/GitHub/samples# grep -r 'server\.Listen(8000)' *
IoTBlockly/IoTBlocklyBackgroundApp/StartupTask.cs:            server.Listen(8000);
root@home:/mnt/c/Users/owen/Documents/GitHub/samples#

(from Microsoft's Windows 10 Canonical/Ubuntu Bash prompt)

@jwillmer
I will receive a sense in a few days, then I will try to use the sample as intended

@OwenBrotherwood
Copy link

@OwenBrotherwood OwenBrotherwood commented Oct 15, 2016

quick update and I may forget to update when finished
A change of port to 8001 did not help.
I have not as yet scanned if the port is already used
I disabled the remote server again as I want to see the Astro work.
I have a blicking red heart

"And it is goodnight from me at the Windows 10 IoT workshop"

Edit:
Coding Pirates Silkeborg Lyd og Lys

@jwillmer
Copy link
Author

@jwillmer jwillmer commented Oct 16, 2016

@OwenBrotherwood so now you can reproduce the problem?

@OwenBrotherwood
Copy link

@OwenBrotherwood OwenBrotherwood commented Oct 16, 2016

@jwillmer The example works if remote server is disabled.

The device was used for 8 hours at this Maker Faire in Århus, Denmark with the Blocky example

The last minute of the video shows the stand I was playing at (with 7 inch red screens)

https://www.facebook.com/karinhoegh/posts/10154792942724610

@rachitb777 rachitb777 assigned alecont and unassigned rachitb777 Oct 19, 2016
@gourabSh07
Copy link

@gourabSh07 gourabSh07 commented Oct 19, 2016

After disabling Remote Server i was able to get web interface of iot blockly but heart example is not working for me do i have to do something else to run it ??

@OwenBrotherwood
Copy link

@OwenBrotherwood OwenBrotherwood commented Oct 20, 2016

The heart example works for me

@jwillmer
Copy link
Author

@jwillmer jwillmer commented Dec 1, 2016

Works now (for me) with the latest IOT Preview build: 10.0.14931.1000

Steps to reproduce:

  • Start Win10 IOT Core Dashboard
  • Insert empty SD card
  • Deploy latest IOT Preview build
  • Setup WIFI
  • Use Win10 IOT Core Dashboard to install blockly
  • Browse to x.x.x.x:8000
@jwillmer jwillmer closed this Dec 1, 2016
@dnkmk
Copy link

@dnkmk dnkmk commented Dec 1, 2016

@jwillmer
Copy link
Author

@jwillmer jwillmer commented Dec 1, 2016

I installed the latest preview build version the Win10 IOT Dashboard found. For me it was 14931 but I see right now that there is a update scheduled.

@dnkmk
Copy link

@dnkmk dnkmk commented Dec 1, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants
You can’t perform that action at this time.