Scratchx and firmata

sirma siang
Mon Feb 13, 2017 4:45 pm
Hello STM32 community,
I am trying to use scratchx with a NUCLEO-L476RG borad.
I have followed all instruction I can find, and the borad is recognized by the Arduino IDE.
Then I choose L476 StandardFirmata, and dowload is ok.
If I reset the nucleo here, I can see the string StandardFirmata.in in my tera term.
After deconect tera term, I open the following page
http://scratchx.org/?url=http://khannin … tension.js

Here the fun is starting……
By opening the javascript console, I can see that there is a scan of the com ports.
COM1… COM4….COM9 – here is mine.
Then it is detected as folowing appears on the console:
Querying COM9 capabilities
Querying COM9 analog mapping
But then the port scan is continuing, for some reason, in an infinite loop.
Then I load Blink-Nucleo-l476.sbx project.
Here I get the following error in arduino_extension.js file:
in line 521 : device.set_receive_handler(null);
Unable to get property ‘set_receive_handler’ of undefined or null reference

I am using Win7 machine, with IE11.

Is anyone has already encounterred such behave ?
I will appreciate any suggestion :-)

Sirma


RogerClark
Mon Feb 13, 2017 9:10 pm
Which core are you using? I presume the one from github.com/stm32duino ? which is written by STM.

danieleff
Tue Feb 14, 2017 5:45 am
Can you check if you can connect to the board with the firmata test program?
http://firmata.org/wiki/Main_Page#Firmata_Test_Program

sirma siang
Tue Feb 14, 2017 9:14 am
Hello :-)

I am loading the Firmata from Arduino IDE, the one belong to Examples -> Firmata (Examples for nucleo L476RG section) -> StandardFirmata.
Do I have to do something else ?

I am checking with the Girmata_Test_Program.

Sirma


sirma siang
Tue Feb 14, 2017 10:50 am
Hello,
By running Firmata_Test_PRogram, I am able to light on/off the nucleo green LED.
So I guess it works well, and uart link is ‘stable’.
Could it be possible that the javascript behave differently than the test program ?

Sirma


sirma siang
Tue Feb 14, 2017 10:57 am
More info….
Under the javascript console, i can catch following message, when error occurs:
SCRIPT5007: Unable to get property ‘set_receive_handler’ of undefined or null reference
File: arduino_extension.js, Line: 521, Column: 7

It does not ring the bell for me :-(

Sirma


sirma siang
Tue Feb 14, 2017 11:47 am
I am not sure if this is usefull, but I catch what is happening on the com port, using Free Device Monitoring Studio.
Here is what I can catch:

000318: Read Request (UP), 2017-02-14 12:29:54,1538101 +0,0604833 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0xe2 bytes
Status: 0x00000102
90 00 00 91 00 00 92 00 00 F0 6C 7F 7F 00 01 0B ..‘..’..ðl…
01 01 01 04 0E 7F 00 01 0B 01 01 01 03 08 04 0E …..……….
7F 00 01 0B 01 01 01 04 0E 7F 00 01 0B 01 01 01 ……..……
03 08 04 0E 7F 00 01 0B 01 01 01 03 08 04 0E 7F ….……….
00 01 0B 01 01 01 04 0E 7F 00 01 0B 01 01 01 04 ……..…….
0E 7F 00 01 0B 01 01 01 03 08 04 0E 7F 00 01 0B .……….…
01 01 01 03 08 04 0E 7F 00 01 0B 01 01 01 03 08 …….……..
04 0E 7F 00 01 0B 01 01 01 04 0E 7F 00 01 0B 01 ..……..….
01 01 04 0E 7F 00 01 0B 01 01 01 04 0E 06 01 7F ….……….
00 01 0B 01 01 01 04 0E 06 01 7F 00 01 0B 01 01 ……….…..
01 02 0A 04 0E 7F 00 01 0B 01 01 01 02 0A 04 0E …..……….
7F 00 01 0B 01 01 01 02 0A 04 0E 7F 00 01 0B 01 ……….….
01 01 02 0A 04 0E 7F 00 01 0B 01 01 01 02 0A 04 ……………
0E 06 01 7F 00 01 0B 01 01 01 02 0A 04 0E 06 01 ……………
7F F7 ÷
000320: Write Request (DOWN), 2017-02-14 12:29:54,1719790 +0,0180465 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x3 bytes
F0 69 F7 ði÷

000322: Read Request (UP), 2017-02-14 12:29:54,1874882 +0,0153898 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x19 bytes
Status: 0x00000102
F0 6A 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F ðj
7F 7F 00 01 02 03 04 05 F7 ……÷

000324: Write Request (DOWN), 2017-02-14 12:29:54,1888312 +0,0011517 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0xf bytes
F0 79 F7 C0 01 C1 01 C2 01 C3 01 C4 01 C5 01 ðy÷À.Á.Â.Ã.Ä.Å.

000338: Read Request (UP), 2017-02-14 12:29:54,2804550 +0,0854550 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x85 bytes
Status: 0x00000102
F0 79 02 05 53 00 74 00 61 00 6E 00 64 00 61 00 ðy..S.t.a.n.d.a.
72 00 64 00 46 00 69 00 72 00 6D 00 61 00 74 00 r.d.F.i.r.m.a.t.
61 00 2E 00 69 00 6E 00 6F 00 F7 E0 0D 03 E1 5D a…i.n.o.÷à..á] 02 E2 6E 02 E3 40 02 E4 42 02 E5 3D 02 E0 60 02 .ân.ã@.äB.å=.à`.
E1 37 02 E2 4A 02 E3 2B 02 E4 22 01 E5 76 00 E0 á7.âJ.ã+.ä”.åv.à
2D 02 E1 14 02 E2 2B 02 E3 1E 02 E4 69 00 E5 58 -.á..â+.ã..äi.åX
00 E0 10 02 E1 04 02 E2 1E 02 E3 17 02 E4 5A 00 .à..á..â..ã..äZ.
E5 55 00 E0 7F 01 E1 7C 01 E2 18 02 E3 13 02 E4 åU.à.á|.â..ã..ä
57 00 E5 54 00 W.åT.

000340: Write Request (DOWN), 2017-02-14 12:29:54,2853941 +0,0017542 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x3 bytes
F0 79 F7 ðy÷

000342: Read Request (UP), 2017-02-14 12:29:54,2979802 +0,0116595 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x61 bytes
Status: 0x00000102
E0 73 01 E1 77 01 E2 14 02 E3 10 02 E4 59 00 E5 às.áw.â..ã..äY.å
57 00 F0 79 02 05 53 00 74 00 61 00 6E 00 64 00 W.ðy..S.t.a.n.d.
61 00 72 00 64 00 46 00 69 00 72 00 6D 00 61 00 a.r.d.F.i.r.m.a.
74 00 61 00 2E 00 69 00 6E 00 6F 00 F7 E0 6B 01 t.a…i.n.o.÷àk.
E1 72 01 E2 11 02 E3 0E 02 E4 5A 00 E5 58 00 E0 ár.â..ã..äZ.åX.à
62 01 E1 6F 01 E2 0E 02 E3 0A 02 E4 5A 00 E5 59 b.áo.â..ã..äZ.åY
00 .

000346: Write Request (DOWN), 2017-02-14 12:29:54,3938713 +0,0621100 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x3 bytes
F0 79 F7 ðy÷

000348: Read Request (UP), 2017-02-14 12:29:54,5681766 +0,1741811 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x103 bytes
Status: 0x00000102
E0 59 01 E1 69 01 E2 0A 02 E3 08 02 E4 5A 00 E5 àY.ái.â..ã..äZ.å
5B 00 E0 52 01 E1 63 01 E2 05 02 E3 04 02 E4 5B [.àR.ác.â..ã..ä[
00 E5 5F 00 E0 52 01 E1 62 01 E2 00 02 E3 00 02 .å_.àR.áb.â..ã..
E4 59 00 E5 5E 00 F0 79 02 05 53 00 74 00 61 00 äY.å^.ðy..S.t.a.
6E 00 64 00 61 00 72 00 64 00 46 00 69 00 72 00 n.d.a.r.d.F.i.r.
6D 00 61 00 74 00 61 00 2E 00 69 00 6E 00 6F 00 m.a.t.a…i.n.o.
F7 E0 71 01 E1 7D 01 E2 16 02 E3 09 02 E4 5D 00 ÷àq.á}.â..ã..ä].
E5 5B 00 E0 49 01 E1 5B 01 E2 79 01 E3 7A 01 E4 å[.àI.á[.ây.ãz.ä
50 00 E5 55 00 E0 4F 01 E1 60 01 E2 7E 01 E3 7B P.åU.àO.á`.â~.ã{
01 E4 54 00 E5 58 00 E0 53 01 E1 63 01 E2 00 02 .äT.åX.àS.ác.â..
E3 7B 01 E4 55 00 E5 58 00 E0 57 01 E1 67 01 E2 ã{.äU.åX.àW.ág.â
02 02 E3 7B 01 E4 54 00 E5 57 00 E0 5B 01 E1 6A ..ã{.äT.åW.à[.áj
01 E2 05 02 E3 7C 01 E4 53 00 E5 55 00 E0 63 01 .â..ã|.äS.åU.àc.
E1 6F 01 E2 08 02 E3 7D 01 E4 53 00 E5 54 00 E0 áo.â..ã}.äS.åT.à
6A 01 E1 75 01 E2 0D 02 E3 00 02 E4 51 00 E5 51 j.áu.â..ã..äQ.åQ
00 E0 6B 01 E1 79 01 E2 13 02 E3 03 02 E4 53 00 .àk.áy.â..ã..äS.
E5 4F 00 åO.
000350: Write Request (DOWN), 2017-02-14 12:29:54,5853173 +0,0098987 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x3 bytes
F0 79 F7 ðy÷

000352: Read Request (UP), 2017-02-14 12:29:54,6018979 +0,0164751 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x73 bytes
Status: 0x00000102
E0 69 01 E1 79 01 E2 13 02 E3 06 02 E4 56 00 E5 ài.áy.â..ã..äV.å
51 00 F0 79 02 05 53 00 74 00 61 00 6E 00 64 00 Q.ðy..S.t.a.n.d.
61 00 72 00 64 00 46 00 69 00 72 00 6D 00 61 00 a.r.d.F.i.r.m.a.
74 00 61 00 2E 00 69 00 6E 00 6F 00 F7 E0 47 01 t.a…i.n.o.÷àG.
E1 5D 01 E2 00 02 E3 7C 01 E4 54 00 E5 57 00 E0 á].â..ã|.äT.åW.à
73 01 E1 01 02 E2 19 02 E3 0A 02 E4 5D 00 E5 59 s.á..â..ã..ä].åY
00 E0 6D 01 E1 7B 01 E2 15 02 E3 09 02 E4 58 00 .àm.á{.â..ã..äX.
E5 55 00 åU.

000358: Write Request (DOWN), 2017-02-14 12:29:54,6827207 +0,0395394 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x3 bytes
F0 79 F7 ðy÷

000360: Read Request (UP), 2017-02-14 12:29:55,3850158 +0,7016676 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x0 bytes
Status: 0xc0000120

000361: Create Request (DOWN), 2017-02-14 12:40:01,3050952 +605,8958797 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Process 0x1918 (<Unable to retrieve process name>) attempted to open the device
000362: Create Request (UP), 2017-02-14 12:40:01,3050974 +0,0000022 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Process 0x1918 (<Unable to retrieve process name>) create request status: 0xc0000022

It looks good unitl the last ‘F0 79 F7’ Then something goes wrong, but I habe no idea on what could goes wrong :-(

Sirma


danieleff
Tue Feb 14, 2017 11:49 am
Can you it try in google chrome with the chrome plugin? https://scratch.mit.edu/info/ext_download/

sirma siang
Tue Feb 14, 2017 3:55 pm
Somehow, my administrator is blocking the installation of chrome plugins :-(
To do this Chrome test, I need to spend some time to pass over that restriction :-(
So for the time being, I am not able to test with Chrome.

Sirma


sirma siang
Tue Feb 14, 2017 4:51 pm
Finaly I success to install Chrome plugin.
No I am fighting to make the javascript to recognize the Nucleo board.
So far the board looks not connected (or is not recognized by the plugin).

Sirma


sirma siang
Wed Feb 15, 2017 9:40 am
Hello,
I have same behave with Chrome….
The console view give the following logs:
Attempting connection with COM1
arduino_extension.js:508Attempting connection with COM4
arduino_extension.js:508 Attempting connection with COM1
arduino_extension.js:521 Uncaught TypeError: Cannot read property ‘set_receive_handler’ of null
at arduino_extension.js:521
(anonymous) @ arduino_extension.js:521
arduino_extension.js:508 Attempting connection with COM4
arduino_extension.js:508 Attempting connection with COM9
arduino_extension.js:508 Attempting connection with COM1
arduino_extension.js:508 Attempting connection with COM4
arduino_extension.js:508 Attempting connection with COM9

I load the arduino_extension.js page, then I immediately load STM32 blink project, and I get this uncaught error.
This is followed by an infinite loop on all com ports.
I am contuing…..
If anyone has some suggestion or idea, I will appreciate it :-)

Sirma


sirma siang
Wed Feb 15, 2017 2:30 pm
If I sumarize:
Under IE, the com is detected, but straigth ‘deconnected’.
Under Chrome, I observe the same behaviour.
After IE or chrome test, the Nucleo is sending non-human datas on the uart. I can see by connecting tera term on the com port.
When I reset the Nucleo, and connect tera term, I am able to see the string StandardFirmata.ino
When I test with firmata_test.exe, I am able to switch on/off the green led

Could it be possible that I have some browser settings that prevent me to use the com port from the browser ?
I searching in that way… hope Google is my friend.
Sirma


sirma siang
Wed Feb 15, 2017 4:31 pm
I change some settings under windows device manager.
I change com port properties -> Port settings: 115200, 8, N,1

Magicaly it works with IE.
Then I try to make it happens with Chrome.
The funy things is that I can see the reset string sent to the Nucleo (F0 79 F7).
As the string in return is not read, reset string is sent several times, without succes :-(
So it looks that I have some problem with Chrome plugin… some com port read right access ?

… continuing

Sirma


sirma siang
Thu Feb 16, 2017 9:25 am
The fun is continuing…..
This morning with IE, without changing anything, it fails :-(
Here is waht I can observe on the UART:

)
IOCTL_SERIAL_SET_BAUD_RATE: Set baud rate
Baud Rate=57600
000163: I/O Request (DOWN), 2017-02-16 10:18:39,6490655 +0,0000184 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
IOCTL_SERIAL_SET_RTS: Set RTS

000165: I/O Request (DOWN), 2017-02-16 10:18:39,6490735 +0,0000069 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
IOCTL_SERIAL_SET_DTR: Set DTR

000167: I/O Request (DOWN), 2017-02-16 10:18:39,6497912 +0,0000136 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
IOCTL_SERIAL_SET_LINE_CONTROL: Set line control
WordLength=8
StopBits=1 stop bit
Parity=No parity
000169: I/O Request (DOWN), 2017-02-16 10:18:39,6518038 +0,0000091 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
IOCTL_SERIAL_SET_CHARS: Set special characters
EofChar=0x0
ErrorChar=0x0
BreakChar=0x0
EventChar=0x0
XonChar=0x0
XoffChar=0x0
000171: I/O Request (DOWN), 2017-02-16 10:18:39,6518071 +0,0000022 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
IOCTL_SERIAL_SET_HANDFLOW: Set handshake information
ControlHandShake=1
FlowReplace=2147483712
XonLimit=0
XoffLimit=0

000174: Read Request (UP), 2017-02-16 10:18:39,6735936 +0,0210215 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x1b2 bytes
Status: 0x00000102
00 E5 50 00 E0 6B 01 E1 7A 01 E2 13 02 E3 04 02 .åP.àk.áz.â..ã..
E4 54 00 E5 4E 00 E0 6A 01 E1 78 01 E2 13 02 E3 äT.åN.àj.áx.â..ã
06 02 E4 57 00 E5 50 00 E0 69 01 E1 78 01 E2 12 ..äW.åP.ài.áx.â.
02 E3 07 02 E4 58 00 E5 53 00 E0 68 01 E1 76 01 .ã..äX.åS.àh.áv.
E2 12 02 E3 07 02 E4 58 00 E5 53 00 E0 66 01 E1 â..ã..äX.åS.àf.á
75 01 E2 11 02 E3 07 02 E4 59 00 E5 54 00 E0 63 u.â..ã..äY.åT.àc
01 E1 73 01 E2 10 02 E3 07 02 E4 59 00 E5 55 00 .ás.â..ã..äY.åU.
E0 60 01 E1 71 01 E2 0E 02 E3 06 02 E4 5A 00 E5 à`.áq.â..ã..äZ.å
57 00 E0 59 01 E1 6D 01 E2 0C 02 E3 05 02 E4 5B W.àY.ám.â..ã..ä[
00 E5 59 00 E0 52 01 E1 67 01 E2 07 02 E3 03 02 .åY.àR.ág.â..ã..
E4 5D 00 E5 5B 00 E0 4F 01 E1 62 01 E2 02 02 E3 ä].å[.àO.áb.â..ã
00 02 E4 5C 00 E5 5F 00 E0 51 01 E1 63 01 E2 00 ..ä\.å_.àQ.ác.â.
02 E3 7C 01 E4 59 00 E5 5E 00 E0 52 01 E1 64 01 .ã|.äY.å^.àR.ád.
E2 00 02 E3 7B 01 E4 56 00 E5 59 00 E0 53 01 E1 â..ã{.äV.åY.àS.á
65 01 E2 01 02 E3 7B 01 E4 57 00 E5 58 00 E0 54 e.â..ã{.äW.åX.àT
01 E1 66 01 E2 02 02 E3 7B 01 E4 57 00 E5 58 00 .áf.â..ã{.äW.åX.
E0 57 01 E1 68 01 E2 02 02 E3 7B 01 E4 56 00 E5 àW.áh.â..ã{.äV.å
57 00 E0 5A 01 E1 6A 01 E2 04 02 E3 7B 01 E4 55 W.àZ.áj.â..ã{.äU
00 E5 55 00 E0 5F 01 E1 6D 01 E2 07 02 E3 7D 01 .åU.à_.ám.â..ã}.
E4 55 00 E5 53 00 E0 66 01 E1 73 01 E2 0A 02 E3 äU.åS.àf.ás.â..ã
7E 01 E4 54 00 E5 52 00 E0 6C 01 E1 78 01 E2 0F ~.äT.åR.àl.áx.â.
02 E3 01 02 E4 53 00 E5 4E 00 E0 6B 01 E1 79 01 .ã..äS.åN.àk.áy.
E2 14 02 E3 05 02 E4 55 00 E5 4E 00 E0 69 01 E1 â..ã..äU.åN.ài.á
78 01 E2 13 02 E3 07 02 E4 59 00 E5 51 00 E0 68 x.â..ã..äY.åQ.àh
01 E1 77 01 E2 12 02 E3 07 02 E4 58 00 E5 53 00 .áw.â..ã..äX.åS.
E0 68 01 E1 76 01 E2 12 02 E3 07 02 E4 59 00 E5 àh.áv.â..ã..äY.å
53 00 E0 65 01 E1 75 01 E2 11 02 E3 07 02 E4 59 S.àe.áu.â..ã..äY
00 E5 .å
000176: Write Request (DOWN), 2017-02-16 10:18:40,6719138 +0,9979232 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x3 bytes
F0 79 F7 ðy÷

000178: Read Request (UP), 2017-02-16 10:18:40,7025594 +0,0304689 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x2b bytes
Status: 0x00000102
F0 79 02 05 53 00 74 00 61 00 6E 00 64 00 61 00 ðy..S.t.a.n.d.a.
72 00 64 00 46 00 69 00 72 00 6D 00 61 00 74 00 r.d.F.i.r.m.a.t.
61 00 2E 00 69 00 6E 00 6F 00 F7 a…i.n.o.÷

000180: Write Request (DOWN), 2017-02-16 10:18:40,9246387 +0,2219671 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x23 bytes
D0 01 D1 01 D2 01 D3 01 D4 01 D5 01 D6 01 D7 01 Ð.Ñ.Ò.Ó.Ô.Õ.Ö.×.
D8 01 D9 01 DA 01 DB 01 DC 01 DD 01 DE 01 DF 01 Ø.Ù.Ú.Û.Ü.Ý.Þ.ß.
F0 6B F7 ðk÷

000214: Read Request (UP), 2017-02-16 10:18:41,0014517 +0,0606272 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0xe2 bytes
Status: 0x00000102
90 00 00 91 00 00 92 00 00 F0 6C 7F 7F 00 01 0B ..‘..’..ðl…
01 01 01 04 0E 7F 00 01 0B 01 01 01 03 08 04 0E …..……….
7F 00 01 0B 01 01 01 04 0E 7F 00 01 0B 01 01 01 ……..……
03 08 04 0E 7F 00 01 0B 01 01 01 03 08 04 0E 7F ….……….
00 01 0B 01 01 01 04 0E 7F 00 01 0B 01 01 01 04 ……..…….
0E 7F 00 01 0B 01 01 01 03 08 04 0E 7F 00 01 0B .……….…
01 01 01 03 08 04 0E 7F 00 01 0B 01 01 01 03 08 …….……..
04 0E 7F 00 01 0B 01 01 01 04 0E 7F 00 01 0B 01 ..……..….
01 01 04 0E 7F 00 01 0B 01 01 01 04 0E 06 01 7F ….……….
00 01 0B 01 01 01 04 0E 06 01 7F 00 01 0B 01 01 ……….…..
01 02 0A 04 0E 7F 00 01 0B 01 01 01 02 0A 04 0E …..……….
7F 00 01 0B 01 01 01 02 0A 04 0E 7F 00 01 0B 01 ……….….
01 01 02 0A 04 0E 7F 00 01 0B 01 01 01 02 0A 04 ……………
0E 06 01 7F 00 01 0B 01 01 01 02 0A 04 0E 06 01 ……………
7F F7 ÷

000216: Write Request (DOWN), 2017-02-16 10:18:41,0384079 +0,0367594 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x6 bytes
F0 69 F7 F0 79 F7 ði÷ðy÷

000220: Read Request (UP), 2017-02-16 10:18:41,0551139 +0,0155602 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x44 bytes
Status: 0x00000102
F0 6A 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F 7F ðj
7F 7F 00 01 02 03 04 05 F7 F0 79 02 05 53 00 74 ……÷ðy..S.t
00 61 00 6E 00 64 00 61 00 72 00 64 00 46 00 69 .a.n.d.a.r.d.F.i
00 72 00 6D 00 61 00 74 00 61 00 2E 00 69 00 6E .r.m.a.t.a…i.n
00 6F 00 F7 .o.÷

000222: Write Request (DOWN), 2017-02-16 10:18:41,0605503 +0,0053052 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0xf bytes
C0 01 C1 01 C2 01 C3 01 C4 01 C5 01 F0 79 F7 À.Á.Â.Ã.Ä.Å.ðy÷

000236: Read Request (UP), 2017-02-16 10:18:41,1506212 +0,0167756 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x97 bytes
Status: 0x00000102
E0 0D 03 E1 5D 02 E2 6F 02 E3 43 02 E4 48 02 E5 à..á].âo.ãC.äH.å
41 02 E0 3C 02 E1 1A 02 E2 35 02 E3 20 02 E4 12 A.à<.á..â5.ã .ä.
01 E5 74 00 E0 11 02 E1 7E 01 E2 1B 02 E3 13 02 .åt.à..á~.â..ã..
E4 62 00 E5 5C 00 E0 7C 01 E1 73 01 E2 10 02 E3 äb.å\.à|.ás.â..ã
0C 02 E4 57 00 E5 57 00 F0 79 02 05 53 00 74 00 ..äW.åW.ðy..S.t.
61 00 6E 00 64 00 61 00 72 00 64 00 46 00 69 00 a.n.d.a.r.d.F.i.
72 00 6D 00 61 00 74 00 61 00 2E 00 69 00 6E 00 r.m.a.t.a…i.n.
6F 00 F7 E0 7B 01 E1 7D 01 E2 1F 02 E3 15 02 E4 o.÷à{.á}.â..ã..ä
69 00 E5 6A 00 E0 6A 01 E1 69 01 E2 04 02 E3 03 i.åj.àj.ái.â..ã.
02 E4 4D 00 E5 50 00 .äM.åP.

000240: Write Request (DOWN), 2017-02-16 10:18:41,2336605 +0,0729533 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x3 bytes
F0 79 F7 ðy÷

000242: Read Request (UP), 2017-02-16 10:18:41,3628176 +0,1287044 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x127 bytes
Status: 0x00000102
E0 6E 01 E1 71 01 E2 0A 02 E3 04 02 E4 51 00 E5 àn.áq.â..ã..äQ.å
52 00 E0 70 01 E1 77 01 E2 10 02 E3 06 02 E4 52 R.àp.áw.â..ã..äR
00 E5 4F 00 E0 6E 01 E1 78 01 E2 14 02 E3 09 02 .åO.àn.áx.â..ã..
E4 54 00 E5 4F 00 E0 6C 01 E1 77 01 E2 13 02 E3 äT.åO.àl.áw.â..ã
0A 02 E4 58 00 E5 52 00 F0 79 02 05 53 00 74 00 ..äX.åR.ðy..S.t.
61 00 6E 00 64 00 61 00 72 00 64 00 46 00 69 00 a.n.d.a.r.d.F.i.
72 00 6D 00 61 00 74 00 61 00 2E 00 69 00 6E 00 r.m.a.t.a…i.n.
6F 00 F7 E0 6A 01 E1 77 01 E2 12 02 E3 09 02 E4 o.÷àj.áw.â..ã..ä
58 00 E5 54 00 E0 69 01 E1 76 01 E2 12 02 E3 09 X.åT.ài.áv.â..ã.
02 E4 58 00 E5 54 00 E0 66 01 E1 74 01 E2 11 02 .äX.åT.àf.át.â..
E3 09 02 E4 59 00 E5 55 00 E0 62 01 E1 71 01 E2 ã..äY.åU.àb.áq.â
0F 02 E3 08 02 E4 5A 00 E5 57 00 E0 5D 01 E1 6F ..ã..äZ.åW.à].áo
01 E2 0D 02 E3 07 02 E4 5B 00 E5 59 00 E0 55 01 .â..ã..ä[.åY.àU.
E1 69 01 E2 0A 02 E3 05 02 E4 5B 00 E5 5B 00 E0 ái.â..ã..ä[.å[.à
4F 01 E1 63 01 E2 04 02 E3 01 02 E4 5D 00 E5 5F O.ác.â..ã..ä].å_
00 E0 50 01 E1 61 01 E2 7F 01 E3 7D 01 E4 5A 00 .àP.áa.â.ã}.äZ.
E5 5F 00 E0 51 01 E1 62 01 E2 00 02 E3 7B 01 E4 å_.àQ.áb.â..ã{.ä
56 00 E5 5D 00 E0 51 01 E1 63 01 E2 00 02 E3 7B V.å].àQ.ác.â..ã{
01 E4 56 00 E5 59 00 .äV.åY.

000248: Write Request (DOWN), 2017-02-16 10:18:41,4465933 +0,0162870 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x3 bytes
F0 79 F7 ðy÷

000250: Read Request (UP), 2017-02-16 10:18:41,4639150 +0,0171832 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x85 bytes
Status: 0x00000102
E0 53 01 E1 64 01 E2 01 02 E3 7A 01 E4 56 00 E5 àS.ád.â..ãz.äV.å
59 00 F0 79 02 05 53 00 74 00 61 00 6E 00 64 00 Y.ðy..S.t.a.n.d.
61 00 72 00 64 00 46 00 69 00 72 00 6D 00 61 00 a.r.d.F.i.r.m.a.
74 00 61 00 2E 00 69 00 6E 00 6F 00 F7 E0 55 01 t.a…i.n.o.÷àU.
E1 66 01 E2 02 02 E3 7A 01 E4 56 00 E5 58 00 E0 áf.â..ãz.äV.åX.à
59 01 E1 69 01 E2 03 02 E3 7A 01 E4 54 00 E5 57 Y.ái.â..ãz.äT.åW
00 E0 5D 01 E1 6B 01 E2 06 02 E3 7B 01 E4 54 00 .à].ák.â..ã{.äT.
E5 55 00 E0 64 01 E1 70 01 E2 08 02 E3 7D 01 E4 åU.àd.áp.â..ã}.ä
53 00 E5 53 00 S.åS.

000258: Write Request (DOWN), 2017-02-16 10:18:41,5445516 +0,0187420 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x3 bytes
F0 79 F7 ðy÷

000260: Read Request (UP), 2017-02-16 10:18:42,2408530 +0,6961548 (1. Device: STMicroelectronics STLink Virtual COM Port (COM9))
Buffer size: 0x0 bytes
Status: 0xc0000120

It looks the PC host is sending several reset commands.. weird :-(
I am a bit puzzled :-(


sirma siang
Thu Feb 16, 2017 10:15 am
I am about to give up :-(

Does anyone has some thought ?
I will appreciate any guidance/suggestion :-)

Sirma


stevestrong
Thu Feb 16, 2017 12:36 pm
I was also having bad experience with serial handling over browsers (IE, FF, Chrome), so finally I moved to use Processing instead.

sirma siang
Thu Feb 16, 2017 1:57 pm
Hello StevenStrong,

This sounds great :-)
How do you move to process ?
Could you guide me how to do so ?

Thanks

Sirma


sirma siang
Thu Feb 16, 2017 2:43 pm
under MinGW for Win7 I used cscript.exe.
However it return the following error: Microsoft JScript runtime error: ‘Uint8Array’ is undefined

How did you rid out of this ?

Thanks for your help and suggestions :-)

Sirma


Leave a Reply

Your email address will not be published. Required fields are marked *