Vinz1911

Eurobricks Vassals
  • Content Count

    16
  • Joined

  • Last visited

About Vinz1911

Spam Prevention

  • What is favorite LEGO theme? (we need this info to prevent spam)
    Mindstorms
  • Which LEGO set did you recently purchase or build?
    Spike Prime

Profile Information

  • Gender
    Male

Extra

  • Country
    Germany

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I discovered something really strange. I wrote a lib to connect to the powered up remote. I have two programs on the hub, one is for connecting and dealing with my remote and the other program was just a test with the hub2hub feature from lego. If I run first the program which connects to my remote, then disconnecting and stopping the program and after that running the other program with the "when hub receives signal" block. the hub is reconnecting to my handset. This is so weird I tried other programs without the "when hub receives signal" block and then it's NOT reconnecting (which I expect). I'm not sure what happens here, it seems that my class for connecting to my remote is still in memory and the lego block seems to trigger the connection process again, very strange. Seems that this is written with the ubluetooth library or something gets strange with the Nimble stack. :D
  2. I tried and there is a hard cut. I received 23 Bytes of content and the rest was lost.
  3. The only thing I really don't like on Spike Prime HUB is not the less powerful processor or something else BUT, it's the small amount of Memory :( If I create a bit more bigger python program, I ran really fast out of memory and then I need to restart the hub. This is the most annoying thing for me. 1Mb instead of 320Kb would have been much more convenient for me
  4. In Germany I saw several Shops has listed the set. I saw two release dates, one said the 01.10.2020 and one other said the 15.10.2020. I think it won't be long now, then we will se the set in the lego store for pre ordering :)
  5. With the 1.1.4 version of the App, it was possible to downgrade my Spike Prime from 1.12 to 1.10 Firmware. I need someone who can provide me an earlier version of the Spike Prime Software for Mac/Windows. I cannot download a earlier version as 1.1.4 from the Lego Page. It would be nice if someone can provide me a 1.0.0 or 1.1.0/1.1.1 Version of the Spike Prime Software for Mac/Windows
  6. Hi Guys, I have a question, I want to downgrade my Spike Prime to version 1.9.3 to test out some things with the old BLE class which does not work in higher Versions. Is it possible to downgrade to that firmware ? I tried to modify the download link from lego to get a earlier version of the Prime App. But the Latest Version I could get was the 1.1.4 Version and the Firmware which is delivered with that App Version ist 1.10 for the Prime. Does anyone have the 1.1.0 or 1.1.1 App Version of the Spike Prime App for Mac or Windows for me ? So that I could downgrade the Firmware of my Spike to 1.9.3 ? Thanks and best Regards Vinz
  7. For Everyone who is interested in Lego Spike Prime + PowerUP Remote, I created an example here: Spike Prime + Power UP Remote - The Remote is automatically detected and connected (just copy this to your spike prime, run it and start at the same moment the advertising on the remote) - After a successfully created connection, the remote‘s LED is changed to GREEN - Every button let's light up a different dot on the Spike Prime, releasing it turn it off
  8. @GianCann With your Help I could finished my little Class today, which automatically detects der PowerUP Remote, connects to it and the spike got notified about the pressed buttons. I also could understand with the help of the LWP 3.0 Documentation what the bytes enable in the Remote. But I have one last Question, that's a thing I could not find in the Docu. It's about the last byte packet you send bt.gattc_write(conn_handle,0x0C,struct.pack('<BB',0x01,0x00),1) What is enabled here ? The 0x0C is the "Value Handle" byte but I can't find any reference about it. Can you explain me what is triggered here in the remote ? It seems that this is a very necessary part because if I don't send this packet, my program will not start receiving updates from the remote. Greetings Vinz
  9. Ah alright thank you :) Is there any tutorial how to read out console output with uPyCraft or is this Possible if I put the Spike in REPL mode via console ?
  10. I figured out the problem. It's related to the bus where the lego app reads out the console output. I wrote a litte code which should enable a light matrix dot if I press a button on the remote. After uploading it to the spike and disconnecting it from my pc and directly execute it on the prime. It work as intended. This makes debugging a bit more complicated, but now it works *_* Just one Question, can explain me this block here, the packets you send after the connection ? Or have you any reference to the LWP 3.0 Documentation what is done here ? ar=struct.pack('<BBBBBBBBBB', 0x0A,0x0,0x41,0x00,0x00,0x01,0x00,0x00,0x00,0x01) bt.gattc_write(conn_handle,0x0B,ar,1) utime.sleep(2) print('aaaaaa complete..0x0B write 0x0A,0x0,0x41,0x00,0x00,0x01,0x00,0x00,0x00,0x01') al=struct.pack('<BBBBBBBBBB', 0x0A,0x0,0x41,0x01,0x00,0x01,0x00,0x00,0x00,0x01) bt.gattc_write(conn_handle,0x0B,al,1) utime.sleep(2) print('aaaaaa complete..0x0Bwrite 0x0A,0x0,0x41,0x01,0x00,0x01,0x00,0x00,0x00,0x01') bt.gattc_write(conn_handle,0x0C,struct.pack('<BB',0x01,0x00),1) print('connect complete.activate notifications.write Handel 0x0c data0100... starting write')
  11. @GianCann Yes I directly connected it to my PC with the USB Cable, I also tried it out with my Mac and the latest Spike Prime App and also with my Windows 10 PC, also with the latest Spike Prime App
  12. Hi @GianCann I tried out your example and I got some problems. I Uploaded it with the Spike Prime App and got connected successfully to my remote. But the first Problem I had is, that I'm receiving notifications very slowly and my second problem is, after I press a button I got the bytes in format you presented but then it stoped working :( I don't receive anything else then. Here my Logs, maybe you can help me again ? Thanks [13:57:43.801] > event == _IRQ_PERIPHERAL_CONNECT [13:57:44.804] > 1025 0 b'\x00\x81\xf9\xea\xc1\x9f' [13:57:47.805] > aaaaaa complete..0x0B write 0x0A,0x0,0x41,0x00,0x00,0x01,0x00,0x00,0x00,0x01 [13:57:50.809] > aaaaaa complete..0x0Bwrite 0x0A,0x0,0x41,0x01,0x00,0x01,0x00,0x00,0x00,0x01 [13:57:51.812] > connect complete.activate notifications.write Handel 0x0c data0100... starting write [13:57:54.815] > event == _IRQ_GATTC_WRITE_STATUS [13:57:55.818] > 0 [13:57:56.819] > event == _IRQ_GATTC_WRITE_STATUS [13:57:57.820] > 0 [13:57:58.821] > event == _IRQ_GATTC_WRITE_STATUS [13:57:59.824] > 0 [13:58:00.825] > event == _IRQ_GATTC_NOTIFY [13:58:01.827] > b'\n\x00G\x00\x00\x01\x00\x00\x00\x01' [13:58:02.828] > event == _IRQ_GATTC_NOTIFY [13:58:03.831] > b'\x0f\x00\x04\x00\x017\x00\x00\x00\x00\x10\x00\x00\x00\x10' [13:58:04.833] > event == _IRQ_GATTC_NOTIFY [13:58:05.837] > b'\x0f\x00\x04\x01\x017\x00\x00\x00\x00\x10\x00\x00\x00\x10' [13:58:06.839] > event == _IRQ_GATTC_NOTIFY [13:58:07.842] > b'\x0f\x00\x044\x01\x17\x00\x00\x00\x00\x10\x00\x00\x00\x10' [13:58:08.843] > event == _IRQ_GATTC_NOTIFY [13:58:09.846] > b'\n\x00G\x01\x00\x01\x00\x00\x00\x01' [13:58:10.847] > event == _IRQ_GATTC_NOTIFY [13:58:11.849] > b'\x05\x00E\x00\xff'
  13. Hi @GianCann Awesome, Thank you for the Code and the Explanation. i will try it out later and give you feedback:) Thank you so much
  14. Hey @GianCann No Problem :) Im looking forward for tomorrow. Thank you and best regards Vinz
  15. Hi @GianCann WoW this is insane !!!! Thank You :)