hybridfree/eevblog-posts huggingface dataset:
Websockets client.readnonblocking but it is blocking ! - Page 1
Forum section: electronics / general

author: timdf911
author_rank: Contributor
timestamp: November 06, 2023, 06:53:22 pm
content: Hi,I hope this is the right part of the forum for this question.I'm running a websocket server on a Blackpill STM32F11 using Arduino code from websockets2_generic.The websocket server part works fine but it blocks any other code from running at the point commented belowThis is the code from the example. The " if (client.available())" statement results in it accepting only one message before closing the socket. Changing the `if` to `while` allows continual message traffic but still doesn't allow sensor updates due to the `while loop` additionally `client.readnonblocking` is still blocking anyway.Code:// You can do some other tasks here, such as WebServer, controlling tasks, etc.WebsocketsClient client = SocketsServer.accept();if (client.available()){WebsocketsMessage msg = client.readNonBlocking(); // the code always hangs here waiting for traffic despite claiming to be non blocking// logSerial.print("Got Message: ");Serial.println(msg.data());// return echoclient.send("Echo: " + msg.data());// close the connectionclient.close();}I've googled this to death but have yet to find a solution.I need to be able to monitor other sensors and be able to send them to the client, but so far this has not been possible due to the blocking effect of client.readnonblocking statement.Any pointer as to how I can fix this ?Regards Tim

author: magic
author_rank: Super Contributor
timestamp: November 06, 2023, 07:33:52 pm
content: Quote from: timdf911 on November 06, 2023, 07:00:11 pmProbably not TBH, and you seem to have already posted the same thread in "Programming", which is better.Note that double posting is against the rules here because it's messy when discussion is spread across multiple places.

author: AndyBeez
author_rank: Frequent Contributor
timestamp: November 06, 2023, 07:40:46 pm
content: Code:// close the connectionclient.close()Put this outside the conditional?Make the conditional a while loop?

author: abeyer
author_rank: Frequent Contributor
timestamp: November 06, 2023, 10:14:38 pm
content: Quote from: timdf911 on November 06, 2023, 06:53:22 pmYup. If you need to handle multiple streams and/or multiple messages per stream you need to multiplex them yourself, just looping will hang your other logic even if nonblocking io was workingQuote from: timdf911 on November 06, 2023, 06:53:22 pmThe repo is archived without any notes as to where it might be supported now... so presumably it'snot.
Project thread: 68xx analysis cont'd - Page 1
Forum section: electronics / general

author: metertech58761
author_rank: Frequent Contributor
timestamp: August 14, 2023, 05:52:42 am
content: Rather than continue to dribble threads on this ongoing bit of code analysis, I'll try to keep it all in one thread going forward?; Read 4044 latch (bit 0-2: pulse streams 0-2; bit 3: Ext. Input 3; bit 4-6: don't care; bit 7: Ext. Input 5)LDAA extInputTABANDB #$08 ; evaluate External Input 3 bitBNE app_997 ; Set inp3Flag if bit is 0INCB ; byte-saving equivalent of LDAB #$01STAB inp3Flagapp_997 ANDA #$07 ; now we look at KYZ0 - KYZ2 dataTABEORA NVR_03STAB NVR_03ANDA NVR_03; Initialization routine sets NVR_03 to 7; NVR_03 is just a placeholder until role is identified - then it will get a proper mnemonicANDA #$07LDAB #$03PSHXLDX #kyz0Pulseapp_9A8 BITA #$01BEQ app_9AFJSR sub_60Aapp_9AF ABX ; advance to kyz1Pulse (and kyz2Pulse if needed)ASRABNE app_9A8PULX ; restore index to $0C00; app continues; Check 24-bit value to ensure it hasn't exceeded 9,999,999 (and reset if so)sub_60A PSHAPSHBLDD $01,X ; increment value by oneADDD #$0001STD $01,XLDAA $00,X ; Was the maximum exceeded?ADCA #$00CMPA #$98BNE sub_62ACMPB #$80BNE sub_62ALDAB $01,XCMPB #$96BNE sub_62ACLRASTAA $02,X ; Zero out 24-bit valueSTAA $01,Xsub_62A STAA $00,X ; Jumping here ensures upper byte was properly incrementedPULBPULARTSHere's what I think the above code does - correct me if I'm wrong?After reading the latch at extInput, bit 3 is evaluated if 0, inp3Flag is set to 1 (it gets cleared elsewhere, and is only used once as a yes/no flag)Then the remaining 3 bits are evaluated to determine which input bits have changed state. What is the purpose of the successive operations on NVR_03?The result of the operations then carries forward in AccA, AccB is set to a fixed value of 3, and the index is set to address NVR_8C (24-bit value).Bit 1 is tested, and if found to be 0, the next step is skipped.The subroutine is called, where the current 24-bit value is advanced by 1, and reset if it exceeds 9,999,999 counts.The index is advanced by 3, pointing it to kyz1Pulse, and if needed, advanced once more, to kyz2Pulse (all 3 bytes each).AccA is shifted and the process repeated until empty and Z flag trips. In this case, as I don't care about the sign bit, should LSR be used instead of ASR?(edited to update after further understanding and adjusted code accordingly)

author: metertech58761
author_rank: Frequent Contributor
timestamp: September 05, 2023, 03:01:06 am
content: Moving along...LDAA NVR_4ESUBA NVR_4D ; only other reference in code writes value $25 to this addressSTAA NVR_4EBPL nmi_0AF ; if this branch is taken, several counters etc. are skippedADDA NVR_4C ; only other reference in code writes value $5E to this addressSTAA NVR_4EIn this code, these are the only instances where the address NVR_4E is used.NVR_4C and NVR_4D get loaded at some point with the values indicated, but not right away when the unit is initialized.Is this some kind of stand-alone counter? Or is it likely the now-missing second EPROM likely manipulates these addresses as well?
NEdit with unicode support: XNEdit - Page 1
Forum section: electronics / general

author: madires
author_rank: Super Contributor
timestamp: September 03, 2023, 05:14:27 pm
content: In case you're using NEdit there's a fork supporting unicode:https://github.com/unixwork/xneditThe encoding options are hidden in the 'Open' and 'Save As' dialogs. Another new feature is antialiased text rendering.
Abatron BDI2000: is it worth it today? (professional jtag) - Page 1
Forum section: electronics / general

author: DiTBho
author_rank: Super Contributor
timestamp: August 03, 2023, 08:19:54 pm
content: found a seller in Estonia who has some Abatron BDI2000 refurbished units with licenses for PowerPC 4xx and MIPS32r2, both for gdb.is it worth it today? compared to BusBlaster3 hacked for OpenOCD to support gdb?

author: DiTBho
author_rank: Super Contributor
timestamp: August 06, 2023, 10:31:56 am
content: anyone?if not, what do you use?

author: aandrew
author_rank: Frequent Contributor
timestamp: August 07, 2023, 10:21:20 pm
content: I have a BDI2000 with all the firmware files/licenses; it sits on the shelf because I get far more use out of a regular old J-Link. Network connectivity is nice, but nothing I can't get through a nearby PC or rpi. Even with FPGA work, using an FT2232 is plenty fast.
68xx assembly: Working out ranges from a math tree - Page 1
Forum section: electronics / general

author: metertech58761
author_rank: Frequent Contributor
timestamp: August 04, 2023, 07:56:46 pm
content: I've been slowly pecking away at some code I dumped from an EPROM, and I feel if I can work out this section, it will get me that first insight needed to start figuring out another section of code.nmi_4C1 LDAB SRM_C6BEQ nmi_50FTBALSRALSRALSRALSRABEQ nmi_516SUBA #$04BEQ nmi_51EDECABEQ nmi_54BDECABEQ nmi_4DBDECABEQ nmi_4E6JMP nms_48FSo, before I pour this shard into an assembler and single-step through it 256 times (which has not always been reliable), I thought I'd ask here.Obviously this takes the value in SRM_C6 and does some math to break out the value into one of several ranges.I do know that if SRM_C6 = 0, it branches off to nmi_50F, and if SRM_C6 is < 16, it will branch off at nmi_516Beyond that, I get a little lost trying to figure out the ranges for the next four branching pointsLastly, nms_48F is the "else" case and a path back into the main interrupt loop.

author: brucehoult
author_rank: Super Contributor
timestamp: August 04, 2023, 11:53:21 pm
content: Code:nmi_4C1LDAB SRM_C6 ; why not LDAA ??BEQ nmi_50F ; 0TBALSRALSRALSRALSRABEQ nmi_516 ; 1-15SUBA #$04BEQ nmi_51E ; 64-79DECABEQ nmi_54B ; 80-95DECABEQ nmi_4DB ; 96-111DECABEQ nmi_4E6 ; 112-127JMP nms_48F ; 128-255 or 16-63No?

author: metertech58761
author_rank: Frequent Contributor
timestamp: August 05, 2023, 12:48:58 am
content: Bruce: One thing I did before posting here was try and calculate it in Excel, and the values you suggest actually jibe with where the 0s landed in the formulae I worked out.So, I will take that as a starting point. Thank you!
Gleam programming language - Page 1
Forum section: electronics / general

author: SiliconWizard
author_rank: Super Contributor
timestamp: July 09, 2023, 09:53:14 pm
content: Almost missed this one: Gleam.https://gleam.run/Looks like yet-another-Erlang-derivative, with a bit of Rust-ish syntax, but without semicolumns.

author: abeyer
author_rank: Frequent Contributor
timestamp: July 09, 2023, 10:26:11 pm
content: hmmm... rust on BEAM could be interesting, gonna keep an eye on this one.

author: SiliconWizard
author_rank: Super Contributor
timestamp: July 09, 2023, 10:30:43 pm
content: If you want to listen to the author talking about it:
DreamBerd: You're gonna like this one! - Page 1
Forum section: electronics / general

author: SiliconWizard
author_rank: Super Contributor
timestamp: June 21, 2023, 09:58:31 pm
content: https://github.com/TodePond/DreamBerdQuoteWell, if you follow the links for the "examples", you'll find out that it's all a joke.And the reddit:https://www.reddit.com/r/ProgrammingLanguages/comments/13ztlms/dreamberd_is_a_perfect_programming_language/Can't blame the satire, as I post on a regular basis here, many new languages are actually "serious" attempts while being every bit as satirical as this.

author: xrunner
author_rank: Super Contributor
timestamp: June 21, 2023, 11:42:16 pm
content: Constant variables and variable constants ... I'm lost already.

author: SiliconWizard
author_rank: Super Contributor
timestamp: June 22, 2023, 01:40:49 am
content: The guy went a bit far in terms of parody, it's not too subtle, but I found it pretty hilarious all in all.It reminded me of this:but drawing pieces from more recent languages.

author: newbrain
author_rank: Super Contributor
timestamp: June 22, 2023, 08:53:18 am
content: Quote from: SiliconWizard on June 22, 2023, 01:40:49 amAh, I was just going to post this but as an example of bad parody.I totally hated that YT video, to me it has the same vibe of picking on intel or Windows for being champions at backward compatibility or having done things that seemed the right choice given the possibility at the time and are now a burden. Not watching it again to detail my gripes with it.DreamBerd, I found hilarious.

author: SiliconWizard
author_rank: Super Contributor
timestamp: June 22, 2023, 07:48:33 pm
content: Quote from: xrunner on June 21, 2023, 11:42:16 pmThis one was pretty fun:Quote
Java is coming back, and it's angry! - Page 1
Forum section: electronics / general

author: SiliconWizard
author_rank: Super Contributor
timestamp: June 07, 2023, 05:28:53 am
content: https://www.infoworld.com/article/3689880/jdk-21-the-new-features-in-java-21.htmlBe very afraid!

author: DiTBho
author_rank: Super Contributor
timestamp: June 07, 2023, 09:12:49 am
content: /opt/java1 is and will always be the only one(the early 2000s)but hey? scala is java++

author: Ed.Kloonk
author_rank: Super Contributor
timestamp: June 07, 2023, 09:19:00 am
content: I thought Kotlin was next in line.

author: brucehoult
author_rank: Super Contributor
timestamp: June 07, 2023, 12:00:19 pm
content: Quote from: Ed.Kloonk on June 07, 2023, 09:19:00 amJulia!But Scala is good too.
Rust Trademark Shenanigans - Page 1
Forum section: electronics / general

author: SiliconWizard
author_rank: Super Contributor
timestamp: April 13, 2023, 09:25:08 pm
content: https://devclass.com/2023/04/11/dont-call-it-rust-community-complains-about-draft-trademark-policy-restricting-use-of-word-marks/

author: DiTBho
author_rank: Super Contributor
timestamp: April 14, 2023, 06:59:33 pm
content: I still have to understand if I want to invest time with *that* language, regardless of what they want to call it(and I still can't use it on MIPS and HPPA because I can't get clang/llvm to work there)

author: SiliconWizard
author_rank: Super Contributor
timestamp: April 14, 2023, 07:24:34 pm
content: Depends on what your goal is and what you mean by "invest time".I have taken a good look at it, if just to try and be objective about it and see what it could objectively bring to my table. So in that regard I did invest some time. But have I decided to do anything major with it? Nope. So, limited investment.There's a number of reasons why I don't "buy" it, some of which I have already talked about - and this is not exactly the point of this thread anyway.But the Rust Foundation itself, its behavior and its main members - that's something that definitely doesn't look good to me.

author: DiTBho
author_rank: Super Contributor
timestamp: April 14, 2023, 08:14:45 pm
content: Quote from: SiliconWizard on April 14, 2023, 07:24:34 pmyup, precisely, that's *the* point: it doesn't smell good to me either.And we can have a taste of it from the new issue with the Rust Trademark shenanigans.

author: AndyBeez
author_rank: Frequent Contributor
timestamp: April 14, 2023, 08:52:22 pm
content: Remember how crazy things went at Twitter when Sith Lord Musk took over? It seems the same kind of crazy is consuming the beanbags at rustacean central. So as I understand their proposal reads, you can write code in open source Rust, but, you are prohibited to say it's written in ®UST, or even packaged with ©ARGO? Git on this >Quote from: DiTBho on April 14, 2023, 06:59:33 pmSame. Rust dominates in the Smart Contract and Crypto Trading space. Maybe it's the lightweight runtime that keeps developers infatuated, but is anyone really making a long term career from thisalt-dot-language?. I certainly gave it a good looking at in the pandemic, but realised it's just another Node, Lua, Python... Okay there are a few $500K golden-gate/golden-ticket positions for 'rust engineers' [not corrosion metrologists?], but soon those lucky dudes could be paying back their wages in royalties (?)
git clone vs download zip from github - Page 1
Forum section: electronics / general

author: RoGeorge
author_rank: Super Contributor
timestamp: April 03, 2023, 09:32:23 am
content: For this webpagehttps://github.com/esp8266/esp8266-wiki/wikiIf i download the zip file from Code -> Download ZIP button inhttps://github.com/esp8266/esp8266-wiki, I don't get the docs seen in the webpagehttps://github.com/esp8266/esp8266-wiki/wiki, but if I get the wiki bygit clonehttps://github.com/esp8266/esp8266-wiki.wiki.gitthen I get the docs.I was expecting for the zip download to pack the same files as agit clonewould retrieve, but in this case each method retrieves a totally different content. Both downloads are from the same github repository:https://github.com/esp8266/Why so? I thought zip download is for those who don't have git, same files in different format.

author: eutectique
author_rank: Frequent Contributor
timestamp: April 03, 2023, 09:44:44 am
content: You are retrieving different branches, perhaps?

author: gamalot
author_rank: Super Contributor
timestamp: April 03, 2023, 12:33:38 pm
content: Wiki is not part of the code, you can see it from the tabs on GitHub's repository page.

author: RoGeorge
author_rank: Super Contributor
timestamp: April 03, 2023, 12:57:55 pm
content: Doh, I was not aware about the separation, thanks!

author: alm
author_rank: Super Contributor
timestamp: April 03, 2023, 01:06:55 pm
content: There are two git repos:Under the code tab:https://github.com/esp8266/esp8266-wiki.gitUnder the wiki tab:https://github.com/esp8266/esp8266-wiki.wiki.git(note the extra .wiki)The former contains what's under the code tab, and the second what's under the wiki tab. The option to download a zip file is only available under the code tab. I figured non-developers, who can't use git, or build scripts / package managers, are more likely to download the code rather than the wiki.In this case it's confusing because both repos contain documentation, but probably in a different format or different contents.
fontconfig-2.14.2 memory leak. - Page 1
Forum section: electronics / general

author: Ed.Kloonk
author_rank: Super Contributor
timestamp: March 12, 2023, 10:00:40 am
content: Was poking around with some widgets and had a old version of fontconfig that compelled asan to spam the console.Built the latest version 2.14.2 (with configure flags as mentioned in INSTALL) but still getting mem leaks reported (I believe* in a different function). *forgot to capture the output. Cannot seem to find any free() in the code to match the reported realloc call.Hurriedly tried just shoving a free() here and there. All I did was manage to keep borking the server until I revert. Ew.Thought I'd ask on here if anyone can help me spot the obvious. Haven't ruled out my own code yet but showing no symptoms other than this.Quotefontconfig-2.14.2/src/fcpat.c ( Lines 498-552. Line 516embolded)Quote

author: Nominal Animal
author_rank: Super Contributor
timestamp: March 12, 2023, 12:56:00 pm
content: (The sources are athttps://gitlab.freedesktop.org/fontconfig/fontconfig/-/blob/2.14.2/src/fcpat.c, withsrc/fcpat.c:FcPatternObjectInsertElt()athttps://gitlab.freedesktop.org/fontconfig/fontconfig/-/blob/2.14.2/src/fcpat.c#L498.)

author: Nominal Animal
author_rank: Super Contributor
timestamp: March 12, 2023, 02:12:55 pm
content: Let's see.FcPatternis a structure with four members: integersnumandsize,elts_offsetof typeintptr_t, andrefof typeFcRefAKAint.FcPatternEltis a structure with two members:object(of typeFcObjectAKAint), and a pointervalues(to typeFcValueList) forming a linked list.FcPatternElts(p)evaluates to((FcPatternElt *)((intptr_t)p + (ptrdiff_t)(p->elts_offset))), i.e.elts = (FcPatternElt *)((char *)p + p->elts_offset).Looking at other related stuff, that points to an array of objects at byte offsetelts_offsetrelative to the original pointer, sorted in order of increasingobject(number identifier).InFcPatternObjectInsertElt(),FcPatternObjectPosition()does a binary search to find the specifiedobject. If the object is found, FcPatternObjectInsertElt() returns a pointer to it. Otherwise, we get into the if body.FcPatternObjectCount(p)returns justp->num, the number of FcPatternElt's in the array, and obviouslyp->sizeis the size of the array.Now, how is that reallocation supposed to work? Ah yes, that aforementioned FcPatternElts(), although relative to the original pointer, may actually be a completely separate pointer. The line528,p->elts_offset = FcPtrToOffset (p, e);, evaluates top->elts_offset = (intptr_t)e - (intptr_t)p;, so that FcPatternElts() will yield the possibly realloc()'d pointer.The FcPatternObjectInsertElt() is used insrc/fcpat.c:FcPatternObjectListAdd(),src/fcpat.c:FcPatternObjectAddWithBinding(), andsrc/fccfg.c:FcConfigPatternAdd().If we look through the entiresrc/fcpat.cfile, wherever->sizeis used (because that is the "allocated" size of the elts array, it is never reduced or zeroed out. In other words, fontconfig-2.14.2 is not designed to actually release the memory allocated here back to the OS at all.So, this is a bug, or rather design deficiency, in FontConfig that requires a refactoring, in my opinion.
Gmail: specific sender permanent block needed  - Page 1
Forum section: electronics / general

author: eti
author_rank: Super Contributor
timestamp: February 11, 2023, 03:30:22 am
content: Hi.I have one EXTREMELY pushy, aggressive contact - a relative - who spams me repeatedly and with unkind stuff via gmail. He’s tried it on twitter and WhatsApp too (where I can and have blocked him)Apart from a gmail filter which I’ve set up already, are there any gmail checking scripts I can run to find his crap, and immediately trash it and empty the trash? This bullshit is causing me anxiety - I stonewall ALL his comms - just don’t wanna see his name in my ANYTHING.He’s been asked to stop by family members, and clearly is unwilling to do so. He doesn’t know I’ve seen his emails as I’ve got self control and ghost him.Thanks.

author: eutectique
author_rank: Frequent Contributor
timestamp: February 12, 2023, 03:06:23 pm
content: You have already set up the gmail filter that marks his messages as read and moves them to trash, right?

author: golden_labels
author_rank: Super Contributor
timestamp: February 12, 2023, 06:49:24 pm
content: Did you consider legal actions?People tend to choose technological mechanisms, because they seem to offer one-click solution to their problems. But technology neither can nor should solve all problems.

author: eti
author_rank: Super Contributor
timestamp: February 13, 2023, 01:53:05 am
content: Quote from: eutectique on February 12, 2023, 03:06:23 pmYes indeed.

author: eti
author_rank: Super Contributor
timestamp: February 13, 2023, 01:53:45 am
content: Quote from: golden_labels on February 12, 2023, 06:49:24 pmConsidered of course, but too much drama - I prefer stealth and silence.

author: ejeffrey
author_rank: Super Contributor
timestamp: February 13, 2023, 02:49:53 am
content: Quote from: eti on February 13, 2023, 01:53:05 amSo what does that not do that you want? I.e., is the person creating new accounts? Or is the filter not catching everything for some other reason? You want to go back and find all old messages and delete them too?

author: eutectique
author_rank: Frequent Contributor
timestamp: February 13, 2023, 10:50:24 am
content: Quote from: eti on February 13, 2023, 01:53:05 amThe messages will vanish from the dustbin forever after 30 days.Google has made gmail API and libraries public:https://developers.google.com/gmail/api/reference/restAs a second option, you might consider a Python script to empty the dustbin on a timely basis (cron), but I couldn't help you further, as I never used that API myself.(As a side note, 20 years back, when 250-megabyte drives were pretty much enough for most of tasks, google started to offer 1 gigabyte of free storage for mail and files -- andGmailFSwas born.)
esp8266 on “PlatformIO” on “VS Code”: dog slow compile times  - Page 1
Forum section: electronics / general

author: eti
author_rank: Super Contributor
timestamp: February 08, 2023, 11:33:12 pm
content: esp8266 on “PlatformIO” on “VS Code”: dog slow compile times; does anyone know why? I’m compiling basic sample code from ”FastLED”Many Thanks.

author: thm_w
author_rank: Super Contributor
timestamp: February 08, 2023, 11:36:40 pm
content: - actual compile time?- system spec (cpu/hdd)?https://community.platformio.org/t/esp32-insane-compile-times-everytime/22889/8https://community.platformio.org/t/speed-up-compilation/19000https://community.platformio.org/t/platformio-too-slow-to-build/26637

author: eti
author_rank: Super Contributor
timestamp: February 09, 2023, 04:27:08 am
content: Specs are irrelevant, because apparently it’s the “FastLED” libraries which are horrendously poorly optimised for compilation.Thanks for the links.
Software wanted: CH341A Programmer v1.37 (by SkyGz) - Page 1
Forum section: electronics / general

author: Geert
author_rank: Newbie
timestamp: December 18, 2020, 03:49:39 pm
content: Hi,I'm looking for the softwareCH341A Programmer version 1.37from SkyGzI already contacted the software develloper and he provide me a new key but not the newest software.Communication is quite hard even I clearly stated that I want the newer latest available softwareCan someone help me out please ?

author: Geert
author_rank: Newbie
timestamp: January 04, 2021, 01:42:07 am
content: I finaly could get in touch with the software developer and now I have received the latest version 1.37

author: Alone GREYWOLF
author_rank: Newbie
timestamp: January 10, 2021, 06:00:17 pm
content: https://drive.google.com/file/d/1CCb3OrV2HaskysYBab6TYz4ybAayw-5P/view?usp=sharing,https://drive.google.com/file/d/1j4TU_r7LWj4KTXIXJIOUnKY0iGvbYzFx/view?usp=sharing

author: coquinho
author_rank: Contributor
timestamp: January 25, 2023, 02:40:43 am
content: Sorry for resurrecting the topic, but the last links are detected as virus, and google does not allow we to download.Anyone with this version or newer, I saw 1.39 was released last year.EDIT: because of lunar year, is hard to get in touch with the devs, or even the store on taobao.

author: coromonadalix
author_rank: Super Contributor
timestamp: January 25, 2023, 03:56:40 am
content: Asprogrammer 2.2.0.7https://www.badcaps.net/forum/showthread.php?p=1194757https://www.onetransistor.eu/2018/11/use-ch341a-with-asprogrammer-on-windows.htmlhttps://www.mediafire.com/file/1263zy82q612ub4/NeoProgrammer+V2.2.0.10.zip/filehttps://khandishnetwork.com/dl/neoprogrammer-new-update-v2-2-0-10-15-10-2021/not sure2.0.3https://github.com/nofeletru/UsbAsp-flash/releases

author: coquinho
author_rank: Contributor
timestamp: January 25, 2023, 04:27:14 pm
content: Thank you. I will try neo, asprog I already knew about, but some chips he has problems verifying (SkyGz prog 1.34 has the same problem) and force we to use the free version os SkyGZ, 1.40, that is very basic. I never tried this new versions of SkyGz. Is a very nice hardware for the price.
Atmel maxtouch bridge - Page 1
Forum section: electronics / general

author: Postal2
author_rank: Frequent Contributor
timestamp: February 14, 2023, 05:12:26 am
content: Wrote bridge emulator for maxtouch-studio with Keil for CH552. Enjoy.Link to maxtouch-studio:https://ww1.microchip.com/downloads/aemDocuments/documents/HMID/ProductDocuments/SoftwareTools/maXTouchStudio-Lite-2.3.1663-LATEST.zip
Lecture by Tony Hoare: Billion dollar mistake - Page 1
Forum section: electronics / general

author: Sherlock Holmes
author_rank: Frequent Contributor
timestamp: January 03, 2023, 10:52:36 pm
content: Fascinating and amusing, sit back, pour a brew and enjoy....

author: mfro
author_rank: Regular Contributor
timestamp: January 09, 2023, 05:56:49 pm
content: Is there a job prerequisite for British computer scientists that they have to look like Clive Sinclair?

author: Marco
author_rank: Super Contributor
timestamp: January 09, 2023, 06:20:35 pm
content: Meh, NULL references mostly just cause crashes. If NULL references are a billion dollar mistake, NULL ended strings are a trillion dollar mistake.

author: SiliconWizard
author_rank: Super Contributor
timestamp: January 09, 2023, 07:46:13 pm
content: While I highly regard Tony Hoare, I still find little relevance to this particular point about "NULL". A lot of talk about not much.I think that's barking up the wrong tree. Unfortunately, this point has had a lot more influence on programming language design than many, much more relevant concepts that Tony Hoare has devised and that people have kept conveniently ignoring. Just my opinion.
A weird question about PCI devices in Windows - Page 1
Forum section: electronics / general

author: msuffidy
author_rank: Frequent Contributor
timestamp: January 03, 2023, 03:31:02 am
content: In the past I have been using a gameport joystick in windows by using something called inpout32, that can directly access address in the computer.Recently something went wrong with my setup that I think had to do with me switching over to EFI so I could enable Resizable Bar in my GPU. I went to test out the joystick and nothing happened. So I looked in the device manager and the gameport had a problem and was called 'PCI input device'. It is actually a function on a audigy2 pci card that is 8 bytes in size. It still works fine in Linux and is in fact supported. So I have been having trouble getting a driver to load on it and in the past it did not seem too hard because there was some creative inf file that made it allocate resources. So what I need is like some dummy driver that sets up the resources or make one so that I can access it again.Also I could maybe make a gameport connection to an Arduino that sends back data through serial, In the end I was using something called vjoy that allows you to feed virtual controllers with axis values etc...Oh well

author: msuffidy
author_rank: Frequent Contributor
timestamp: January 03, 2023, 09:50:57 am
content: I tried some more stuff and there is something deeply messed with the PCI pnp setup in my Windows 10. I don't know if I could get a physical address anywhere no matter what I did. I didn't mention that it says there are not enough resources and something else had to be removed. The only thing there is pcie switches and bridges.**Back after some more ideas like turning on lock pci on boot in windows (which did worse). I am now looking into setting up the gameport pci device behind windows back with the direct hardware tool I was using before. I am reviewing the issue for viability.

author: msuffidy
author_rank: Frequent Contributor
timestamp: January 05, 2023, 04:04:30 am
content: REALLY THANKS GUYS, but no GOOD NEWSAll I had to do was get pciutils for WindowsThen in an admin dos box I typesetpci -s 05:05.1 BASE_ADDRESS-0=0000D040setpci -s 05:05.1 COMMAND=1and IT WORKS HOORAY
Flash Question - Page 1
Forum section: electronics / general

author: msuffidy
author_rank: Frequent Contributor
timestamp: December 13, 2022, 08:12:16 am
content: I found a Dell computer in a dumpster today, and although it is sort of a nostalgic lga775 experience, it is likely pretty useless. I managed to boot it into the windows 10 that the user had and there was no password. At the same time I downloaded a dos or windows flasher from dell from like 2017. I took a big gulp in terms of how it was even possible, but I ran the exe files form a command prompt as administrator. So I was wondering how is this even possible since applications really just talk to the API and have protected environments? I used something called inpout32 that I think made a kernel mode forwarder for hardware access, but you had to install the driver for it to work. So how can the program flash access the bios chip or ports? It did seem to work and verify.
New episode in the Yet Another One series - Page 1
Forum section: electronics / general

author: SiliconWizard
author_rank: Super Contributor
timestamp: December 14, 2022, 07:12:07 pm
content: Happy viewing!

author: DiTBho
author_rank: Super Contributor
timestamp: December 15, 2022, 02:32:22 pm
content: very nice! what else?give me some coffee.

author: DiTBho
author_rank: Super Contributor
timestamp: December 15, 2022, 02:41:00 pm
content: my-c uses the same "execution" principle for expressions.Same idea, same rewriting, ICE friendly, so it's a nice idea!Other stuff, well, yeah, but ... are too fp-oriented for my-cand talking about Haskell, I think it is already fine as it is.hey oh? at least fp keeps getting better and more attractive.That's ok
Yes, yet another one! - Page 1
Forum section: electronics / general

author: SiliconWizard
author_rank: Super Contributor
timestamp: October 18, 2022, 09:48:43 pm
content: Quotehttps://vale.dev/

author: Ed.Kloonk
author_rank: Super Contributor
timestamp: October 18, 2022, 10:06:52 pm
content: A Vale-ient quest..

author: Whales
author_rank: Super Contributor
timestamp: October 18, 2022, 11:11:01 pm
content: They don't use the word "modern". Skip.On a more serious note: I always wonder what the funding infrastructure behind these new languages is. Many have companies (with their own commercial goals). This one appears to be individual sponsors?
Project Euler (2) - Page 1
Forum section: electronics / general

author: SiliconWizard
author_rank: Super Contributor
timestamp: October 18, 2022, 02:54:57 am
content: I remember starting a thread about Project Euler quite a while ago. Haven't worked on any of those problems in a while now, but lately I had a look again and this one looks fun:https://projecteuler.net/problem=811Project Euler can be addictive, so, you've been warned.
web, the server updates the client on event: how? - Page 1
Forum section: electronics / general

author: DiTBho
author_rank: Super Contributor
timestamp: October 14, 2022, 12:23:20 am
content: Usually the web server serves a page at the client's request.I need the server to update the client in case of an event.how?

author: sleemanj
author_rank: Super Contributor
timestamp: October 14, 2022, 12:27:01 am
content: Quote from: DiTBho on October 14, 2022, 12:23:20 amThe simplest way is to poll for updates.But you can also look to Push notifications, or Websockets.

author: Nominal Animal
author_rank: Super Contributor
timestamp: October 14, 2022, 02:46:46 am
content: I'd recommendWebsockets. The idea is that the page contains JavaScript that connects to the server using Websockets, and assigns a function to handle the MessageEvents for that socket. That way, whenever the server sends something, that Javascript handler gets called.See the link for further info, guides, and so on.
[SOLVED]Would like the original "Visual Studio" BLUE theme, except for "VS Code" - Page 1
Forum section: electronics / general

author: eti
author_rank: Super Contributor
timestamp: October 02, 2022, 10:21:18 pm
content: Is there such a thing? As usual, searching is a mess... a minefield....Would like the original "Visual Studio" BLUE theme, except for "VS Code"many thanks!Found it, thanks:https://vscodethemes.com/e/danijelmalinovic.visual-studio-blue-theme/visual-studio-blue?language=javascript

author: AndyBeez
author_rank: Frequent Contributor
timestamp: October 03, 2022, 08:56:02 pm
content: For any other players reading this, you can fine grain customise your VS Code color theme by adjusting theworkbench.colorCustomizationsnode in the settings JSON file.Preferences > Settings > User > Workbench > Appearance > Color Customizations > click "Edit in settings.json"https://code.visualstudio.com/api/references/theme-color
Siglent SVA1032X programing - Page 1
Forum section: electronics / general

author: siglentLearner
author_rank: Newbie
timestamp: May 30, 2022, 03:38:04 am
content: Hi,I have connected the Siglent SVA1032X network analyzer to a PC with a LAN cable.I have a .csv file saved in the instrument using the following SCPI command:fprintf(siglent,'MMEM:STOR CSV, ,"TEST.csv")I need to transfer it to my local PC connected to it by LAN.If I have connected a USB to the instrument how can I save the file 'TEST.csv' to the USB file path?Thank you for your help.RegardsM

author: Bicurico
author_rank: Super Contributor
timestamp: May 30, 2022, 09:49:25 am
content: Why don't you use SCPI commands of the Siglent SVA1032X to send you the data directly through LAN/USB, instead of first writing it to a file in local memory?

author: Meestor_X
author_rank: Contributor
timestamp: October 26, 2022, 09:43:26 pm
content: Quote from: Bicurico on May 30, 2022, 09:49:25 amWhat is the command to receive the data and how is it formatted?

author: Bicurico
author_rank: Super Contributor
timestamp: October 27, 2022, 07:08:23 am
content: You need to read the SCPI manual that Siglent has for downloadI developed a whole software for the spectrum part and it was straight forward to receive data and set parameters by just using the documentation.Since I don't own the Plus/SVA version I did not bother with specific functionality of these models.
ESP32 (Arduino on PlatformIO; Serial.println error) - Page 1
Forum section: electronics / general

author: eti
author_rank: Super Contributor
timestamp: October 10, 2022, 07:21:31 am
content: Hi all.Using Arduino code for an ESP32, PlatformIO on VS Code, I'm testing this basic code, and I get junk on the serial monitor. Yes, the "monitor_speed=9600" is set in the .ini file. Thanks. Any idea; do I need to add a short delay after the println() ?Code:#include <Arduino.h>void setup() {// put your setup code here, to run once:Serial.begin(9600);}void loop() {// put your main code here, to run repeatedly:Serial.println(":) Hey");}

author: timenutgoblin
author_rank: Regular Contributor
timestamp: October 10, 2022, 09:12:54 am
content: Maybe this will work... add a delay...Code:#include <Arduino.h>void setup() {// put your setup code here, to run once:Serial.begin(9600);}void loop() {// put your main code here, to run repeatedly:Serial.println(":) Hey");delay(2000);}Source:https://techtutorialsx.com/2017/04/24/esp32-hello-world/I should point out that I'm not experienced with Arduino, but I hope it works.

author: eti
author_rank: Super Contributor
timestamp: October 10, 2022, 05:56:07 pm
content: Quote from: timenutgoblin on October 10, 2022, 09:12:54 amThanks very much indeed- I appreciate it, and I appreciate it that you didn't talk down to me.
Custom JS TEXTAREA which does not strip out CR characters - Page 1
Forum section: electronics / general

author: peter-h
author_rank: Super Contributor
timestamp: August 06, 2022, 06:34:45 am
content: I found a funny issue with a TEXTAREA: it strips off CR chars. So a CRLF becomes just an LF. This appears to be standard TEXTAREA behaviour. I may need a custom JS implementation.Has this not come up before?
Video: Controlling my Computer with DOOM - Page 1
Forum section: electronics / general

author: Ed.Kloonk
author_rank: Super Contributor
timestamp: July 09, 2022, 01:58:23 pm
content: (well, I found it funny anyway...)

author: DiTBho
author_rank: Super Contributor
timestamp: July 09, 2022, 10:12:19 pm
content: loool
Checking specifier distribution over variable list declaration using cdecl.org - Page 1
Forum section: electronics / general

author: 741
author_rank: Frequent Contributor
timestamp: June 26, 2022, 03:49:45 pm
content: I typed this into the box athttps://cdecl.org/static int a, b;It reports "syntax error". Where is my mistake - is this really illegal C code, or maybe this is not what the cdecl site is for?Note: I'd actually wanted to double-check a point about the way specifiers distribute over comma-separated variable declarations.The link I was looking at which relates to this point is herehttps://stackoverflow.com/questions/55786769/are-all-keywords-distributed-for-comma-separated-variable-definitions

author: golden_labels
author_rank: Super Contributor
timestamp: June 26, 2022, 04:21:16 pm
content: The code is perfectly valid C.The webapp seems to be, however, a kind of a toy. A contraption meant for entertainment purposes only. Or, if anything beyond that, meant to translate particular subset of complicated C declarations to something “more understandable”.

author: edavid
author_rank: Super Contributor
timestamp: June 26, 2022, 05:09:59 pm
content: The cdecl site is intended to explain declarations, and I find it helpful for that. It is not a full C interpreter. It can only parse a single declaration, not a list.

author: SiliconWizard
author_rank: Super Contributor
timestamp: June 26, 2022, 06:22:13 pm
content: Quote from: edavid on June 26, 2022, 05:09:59 pmYes, indeed. It works perfectly fine for single declarations and is not meant for anything more than this.It's not a "toy". It can be useful not just for understanding "complex" declarations as a human, but also to check your own parser/analyzer, if you're implementing one, against tricky declarations. I did use it at some point for that.The additional point of this site is to show how absurd C declarations can be, if you want to have a laugh, or if you are considering designing a new language and get convinced that the C syntax is flawed for humans.
StackOverflow - Why Perl is still relevant in 2022... - Page 1
Forum section: electronics / general

author: PKTKS
author_rank: Super Contributor
timestamp: July 25, 2022, 10:50:20 am
content: Far from dead... an indispensable tool for real NIX environments..https://stackoverflow.blog/2022/07/06/why-perl-is-still-relevant-in-2022/hardly a newbie walk on the parkPaul
Loopback testing the CAN bus ISO-TP protocol? - Page 1
Forum section: electronics / general

author: e100
author_rank: Frequent Contributor
timestamp: June 09, 2022, 03:44:42 pm
content: Otherwise known as ISO 15765-2https://en.wikipedia.org/wiki/ISO_15765-2Currently I'm working on a PC without any CAN hardware.Does anyone know if the protocol works if you simulate a loopback connection?In other words, the last message you send becomes the next message you receive.Or do you require two separate programs to get the proper flow control handshaking working?The code I'm running is my own Kotlin port of this C++ libraryhttps://github.com/altelch/iso-tp.
converting GoLang projects into C sources (probably for bloody masochism) - Page 1
Forum section: electronics / general

author: DiTBho
author_rank: Super Contributor
timestamp: May 25, 2022, 02:17:24 pm
content: yes, no doubt about it: it is to be avoided, unless you are really motivated!You have an extremely hacked application driver in pre-alpha state for an abandoned video grabber that has never seen a half source released by the company that marketed it, nothing has been documented and the only thing available comes from the reverse engineered binary-only driver (for Windows) , which helped create a couple of experimental source files written in GoLang, a language for which you don't have a compiler for your hardware because PA-RISC is not yet supported by llvm, so there is no GoLang compiler.This is the scenario. What is this? ... love? for information technology? or just bloody masochism?I don't know, but I'd really like to support this (crazy) idea, so ...... any advice on how to convert GoLang to C?Because, to make matters worse, I don't know GoLang at all.---> yup, going to reverse engineer a reverse engineered hack in alpha-state for an abandoned hardware, supporting an experimental abandoned architectureI can not do it, or can I?

author: DiTBho
author_rank: Super Contributor
timestamp: May 25, 2022, 02:22:19 pm
content: Specifically, the experimental GoLang application-driver:- handles a couple of USB2-bulk endpoints- needs to configure an FPGA through bulk endpoints- needs to handles new USB2-bulk endpoints- needs to move up to 30Mbyte through bulk- needs to perform color-correction, I see the Go’s builtYCbCrToRGB()function

author: DiTBho
author_rank: Super Contributor
timestamp: May 27, 2022, 12:00:34 am
content: So, the video grabber shots YCbCR images and you need to convert them into RGB, that's why there is the built-in Go functionYCbCrToRGB(), but behind it, there is a lot of confusionare { YUV, YCbCr, YPbPr } synonyms?As far as I understandYUVis for {PAL, S-Video, ... } analog sourcesYPbPris for also analog sources but produces better color results as YUV-Component-VideoYCbCris for { DVB, HDMI, ... } digital sources <------ the Go-source uses this oneThe Wiki has anarticletalking about many things

author: langwadt
author_rank: Super Contributor
timestamp: May 27, 2022, 12:06:39 am
content: Quote from: DiTBho on May 27, 2022, 12:00:34 amhttps://stackoverflow.com/questions/4041840/function-to-convert-ycbcr-to-rgb?

author: DiTBho
author_rank: Super Contributor
timestamp: May 27, 2022, 12:15:16 am
content: This video on Youtube explains a bit of things about color-spaces

author: DiTBho
author_rank: Super Contributor
timestamp: May 28, 2022, 11:12:45 am
content: Ok, the color conversion is done, now I have to think about the USB2-bulk stuff.I see GoLang has a lot of built-in functions to handle usb-bulk ... umm, what about C on Linux?I have never developed anything with usb. Time to learn!
Found a great 101 for Python OOP, by "Clear Code" YT channel - Page 1
Forum section: electronics / general

author: RoGeorge
author_rank: Super Contributor
timestamp: May 10, 2022, 07:58:12 pm
content: Gifted teachers are rare, and this dude is one of them.Understanding classes and object-oriented programming [Python Tutorial]Watched the video, did the exercises, and it all makes sense now. Highly recommended for OOP beginners.Following now his 101 about PySimpleGUI (Creating 10 apps in Python with PySimpleGUI). Halfway into the video, and so far all was explained perfectly clear. "Clear Code" indeed. His style makes all very easy to follow, turns programming from hard chores to easy fun.Very high quality tutorials.

author: rstofer
author_rank: Super Contributor
timestamp: May 19, 2022, 05:29:41 pm
content: It would be better if the author didn't use red on black. To me, it is nearly illegible. Sure, I have defective color vision but so does a significant percentage of the adult male population.I'm only a few minutes in, I'll have to see how long I can go while missing out on the red writing.

author: RoGeorge
author_rank: Super Contributor
timestamp: May 19, 2022, 05:55:16 pm
content: There might be an easy way to view it in different colors:- Download the YouTube video locally (for example with this online webpage:https://en.savefrom.net/1-youtube-video-downloader-117/)- Open the locally downloaded video with the VLC Player- While playing the video with VLC, press CTRL+E to open the "Adjustement and Effects" window of VLC. There are many tabs for audio and video effects there, one tab is to adjust contrast/hue/saturation, other tab is called "Colors", and has a checkbox for "Negate colors".Try with Negate colors, or with other video settings (maybe from other players if VLC doesn't cut it), and see if the result has better visibility.
Linux and Atmel Studio or alternatives ? - Page 1
Forum section: electronics / general

author: Lindley
author_rank: Regular Contributor
timestamp: March 31, 2022, 07:31:47 pm
content: We use and like Atmel Studio 7 with the Visual Micro Plug In for our Arduino/ESP coding under Windows, finding its editing functions so much easier than the standard Arduino IDEHowever for most work we would prefer to use Linux and would like to hear if folk have run Atmel Studio/Vmicro successfully under Wine ?From what we have read seems the latest AS has or is being incorporated into MplabX, though we would prefer to avoid using X even though there is a Linux version.Alternatively any suggestions for other similar Linux IDEs that will run our Arduino/ESP coding direct in Linux with similar good editing features to Atmel Studio?

author: rstofer
author_rank: Super Contributor
timestamp: March 31, 2022, 07:39:19 pm
content: I am using Visual Studio Code with great success. I also use less capable IDEs like Thonny (especially for MicroPython) and straight up editors like geany or gedit. You will probably want to use 'extensions' with VS Code. There are many! Google for Arduino and VSCodeI have been using gedit for many years. I open one terminal to run gedit and another terminal to compile and run. I could also run the editors from the desktop but I don't tend to do that. Don't know why...

author: T3sl4co1l
author_rank: Super Contributor
timestamp: March 31, 2022, 08:05:05 pm
content: If you don't need Visual Micro, Code::Blocks is a capable and slim cross-platform IDE. I think it has a slight amount of built-in Arduino support, but I'm not sure if a plugin like that exists. It's quite serviceable for single-target projects, at least.Studio 7 is built on VS so VSCode is probably the closest if not identical thing, though whether the same plugin is available might be a different matter?Tim

author: ve7xen
author_rank: Super Contributor
timestamp: March 31, 2022, 11:32:27 pm
content: +1 for VSCodeI also quite like PlatformIO (in conjunction with VSCode)Serial Studio is also quite usefulhttps://serial-studio.github.io/Not a fan of the Arduino libraries/ecosystem, but I don't think that's too relevant, it's just C++.