#uLisp Interpreter on #RISCV #BL602 brings back memories 🥲 ... Let's do uLisp Blinky next!
https://github.com/lupyuen/bl_iot_sdk/tree/ulisp/customer_app/sdk_app_ulisp
Why are they called CAR and CDR in #Lisp? Here's why
#Lisp is Not Dead Yet! We still see bits of Lisp today in #WebAssembly ... Like the Stack Machine and S-Expressions
https://developer.mozilla.org/en-US/docs/WebAssembly/Understanding_the_text_format
#uLisp on #PineCone #BL602 @PINE64 ... Now blinks the LED yay! 🎉
https://github.com/lupyuen/bl_iot_sdk/tree/ulisp/customer_app/sdk_app_ulisp
How we modded #uLisp to call #BL602 GPIO Hardware Abstraction Layer
https://github.com/lupyuen/ulisp-bl602/blob/master/src/ulisp.c#L3536-L3554
Let's run this #uLisp Blinky Function on #BL602
https://github.com/lupyuen/bl_iot_sdk/tree/ulisp/customer_app/sdk_app_ulisp
#Blockly (Scratch) needs a Code Generator for each language ... So we copy the Dart generator, paste it as Lisp ... And tweak the Lisp generator for #BL602 🛠️
https://github.com/AppKaki/blockly-ulisp/blob/master/generators/lisp/loops.js#L48-L60
Previously we've done a #Blockly Code Generator for Embedded #RustLang ... But it got complicated because of Type Inference ... Lisp should be simpler, I think 🤔
https://lupyuen.github.io/articles/advanced-topics-for-visual-embedded-rust-programming
Let's use this #Blockly Demo ... And add a "Lisp" tab to show our Generated #BL602 #uLisp Code
https://github.com/AppKaki/blockly-ulisp/blob/master/demos/code/index.html#L26-L41
Drag-n-drop #BL602 #uLisp Blinky with these blocks ... Code Generator coming soon ... Try it for yourself here: https://appkaki.github.io/blockly-ulisp/demos/code/
Can we transfer the generated #uLisp Script to #BL602 over Web Serial API? 🤔
https://dev.to/unjavascripter/the-amazing-powers-of-the-web-web-serial-api-3ilc
Yep Web Serial API works with #BL602 at 2 Mbps ... Soon we shall transfer some uLisp Scripts ... From Blocky (Scratch) to BL602!
Cool new way to run #BL602 firmware without putty and CoolTerm ... Just use Web Serial Terminal!
https://lupyuen.github.io/articles/flash#watch-the-firmware-run
Sending the "reboot" command to #BL602 from a Web Browser ... Via Web Serial API
https://github.com/AppKaki/blockly-ulisp/blob/master/demos/code/code.js#L604-L653
@lupyuen I might have some insight into the SX1276? issue. It just occurred to me what to do.
Try using sudo and lsusb -v to measure the power being allocated to the BL602 board. I had readings of 98mA. An ammeter would work too. I don't think it's getting the power to emit more radiation.
@AmpBenzScientist Interesting... so we think BL602 might not have sufficient power for the LoRa Module?
Here's what I observed...
(1) BL602 + SX1276 seems to be emitting the right power (see the red chirp)...
https://lupyuen.github.io/articles/lora#visualise-lora-with-software-defined-radio
(2) But BL602 + SX1262 seems to be emitting much less power (the faint chirp)...
https://lupyuen.github.io/articles/lorawan#troubleshoot-lorawan
If it's a power problem, why is SX1262 affected but not SX1276 🤔
@lupyuen SX1276 is the one I can't use but it's close to 1GHZ. The other uses a frequency about half of that.
@lupyuen As an American I will have scary people hunt me down and put me in the back of a van if I don't abide by FCC regulations. The SX1278 is the only one I can use. If I'm not mistaken it's 915mhz. I also live within rough sensor range of one of the largest Air Force Bases on the East Coast in the US.
@AmpBenzScientist haha it's the same in Singapore. We don't even allow Satellite Dishes 😉
@lupyuen No satellite dishes? They could mandate a mesh size for the parabolic reflector that would mitigate any potential problems for improper use.
@AmpBenzScientist Erm because "censorship" 😉
@lupyuen Your country is against Chinese influence or for it? My country is both.
@AmpBenzScientist My country is too small ... We won't dare to offend any other country sigh
@lupyuen I don't like minesweeper irl. What are your thoughts on the SX chip problem?
@AmpBenzScientist Hmmm I'm a bit too distracted right now ... Gotta write up about Lisp on BL602 ... Then test the Pine64 LoRa Gateway.
I guess SX1262 works for now, even though it seems suboptimal
@lupyuen I think that's per transmission and it seems that the SX1262 does this more often. 32.768kbps vs 62.5kbps in Lora mode. These transponders are quite different from each other. I would not recommend using the BL602 as anything other than a controller for this. The transmission power would be better supplied from a battery source.
They have the same frequency deviation but the increased transmission might make it less detectable to most SDRs. The deviation is programmable and 200khz.