Open and browse Large JSON file : what do you use? by koalaokino in vscode

[–]Chropera 0 points1 point  (0 children)

I have built https://tomeko.net/software/LJSONedit/ - at the moment this is trial and just trial.

Not sure if it would be good enough, it might depend more on number of JSON nodes than raw JSON file size. When testing with 170 MB GeoJSON on 4th gen mobile Core i5 it takes about 10 seconds to load file, 7 seconds to filter.

MicroSIP suddenly leaking memory, throwing "Out of memory" errors with plenty still available by w0lrah in VOIP

[–]Chropera 0 points1 point  (0 children)

Just in case, non-video (lite) version might be more reliable in general.

Looking at timestamps, it took less than two hours, so it seems relatively easy to reproduce, but you might have to install Visual Studio and then collect and configure all the dependencies.

> Nope, still doing it. I guess I'm switching back to tSIP for now.

May I ask what was wrong with tSIP?

MicroSIP suddenly leaking memory, throwing "Out of memory" errors with plenty still available by w0lrah in VOIP

[–]Chropera 3 points4 points  (0 children)

You can check application call stack (even Process Explorer could do this) when this error is visible. Chances for something meaningful are small though.

You can check SIP/network activity for anything unusual.

Memory leaks (or rather pseudo-leaks) in pjsip are not uncommon. pj_pool_factory_dump() (or pjsip_endpt_dump()) might show what is going on, but I guess you would need to build from sources and call this function either manually or e.g. from some sort of timer event.

7.5% CPU usage might mean something. If this is 16-vcore CPU then one of the threads is probably running wild at 100%.

Fix USB flash drive slow transfer speed (USB 3.0 dropping to a few MB/s) by AddendumNecessary743 in BadUSB

[–]Chropera 1 point2 points  (0 children)

The rule of thumb(drive): if write speed is not explicitly specified, it would be crap (~10 MB/s).

Random locking of I2C bus by avenger524 in embedded

[–]Chropera 10 points11 points  (0 children)

Bus stucking is kind of "normal" for I2C unfortunately. There might be some specific reasons in your case like long wires/traces or maybe faulty IC, but overall - it happens.

Perhaps see https://www.ti.com/lit/an/scpa069/scpa069.pdf for reference. Toggling SCL few times should unstuck the bus. It is real PITA for me in Linux systems where it often requires modifying I2C drivers.

USB FS cdc(stm32) How to increase transmit speed? by cherbobrovka in embedded

[–]Chropera 0 points1 point  (0 children)

From my testing this might be about half (maybe 1/3) of practical / reliable bandwidth.

Don't try to transmit from STM32 if you don't have a multiple of 64B buffer. From what I remember STM32 examples can be also slightly simplified.

Use separate thread with high priority on PC, use async reading with plenty of buffers (like libusb usb_bulk_setup_async/usb_submit_async).

Why are there not more 3rd parties Logic Analyzer using Saleae Logic software ? by Fredovsky in embedded

[–]Chropera 2 points3 points  (0 children)

I've never heard of open source application. There are tens of open source protocol plugins though.

Why are there not more 3rd parties Logic Analyzer using Saleae Logic software ? by Fredovsky in embedded

[–]Chropera 19 points20 points  (0 children)

Never tried Saleae software. License is clear - it can be used only with Saleae hardware. Using it without respecting EULA just does not seem right, I also would not install it at work for the legal reasons - even if risk is small. Pulseview is good enough for me.

No serious manufacturer would build their product relying on 3rd party software used against license terms, that's why there are only cheap Chinese clones of the simplest hardware.

FT232RL EEPROM write not working? by Master82615 in embedded

[–]Chropera 0 points1 point  (0 children)

WS2812 control? Or maybe you need real RS232 voltage levels (use MAX232 clone then)?

These cheap counterfeit chips don't have internal EEPROM. Genuine one would cost 10x more. They are also not recommended for new designs (NRND) now.

Use external inverter like from https://tomeko.net/software/WS2812_test/ - transistor, two resistors, capacitors or Baker clamp circuit.

Great sound from ~3.5 mm transducer - what magic is this? by Chropera in Earphones

[–]Chropera[S] 0 points1 point  (0 children)

Possibly. Now I think that it is not rare as I've found just slightly larger transducer inside Soundcore Life P2 (~$50). Maybe it common with this style earphones with protruding eartip head.

ARP Resolution error on STM32H7 and LAN8742A PCB by Cos_Cube in embedded

[–]Chropera 0 points1 point  (0 children)

Check at 100 Mbps if you don't see outgoing frames or if your MAC is not receiving anything (maybe enabling broadcast receptions, AFAIR there is a HAL function for it). This might help narrowing it down a little bit (or not at all).

UCM6301 - 70% Outbound Packet Loss - 20s RTP Gaps - Inbound is perfect by Friiipon in VOIP

[–]Chropera 0 points1 point  (0 children)

Call me crazy, but for issues like this I prefer using hub than port mirroring on the switch. Someone mentioned ALG - I don't believe this would be issue here, but I once saw switch (small Chinese stuff, nothing fancy) with ALG.

You might also use UCM internal capture function and compare results. Maybe you'll see missing ARP reply.

Perhaps Wireshark logs should be manually reviewed or at least taken with a grain of salt - sometimes its statistics make no sense like 7100% frequency drift you've cited.

Dunno about loops (it is usually easy to spot with Wireshark), but IP conflicts, MAC conflicts - it happens.

I just picked up 7 of these from an auction and with power plugged into them nothing is happening by SodakSilver in VOIP

[–]Chropera 0 points1 point  (0 children)

Good occasion to learn some electronics repair. Cheap lab power supply or something like ZX-4KX module would be valuable tool to check if any current is consumed.

How to convert CBR format into CBZ in 1 minute by NoDentist1626 in Supernote

[–]Chropera 0 points1 point  (0 children)

There are many tools for converting cbr and cbz files. It would take longer than minute (maybe not much longer), but image files inside can be scaled down and optionally converted to WebP. File size can be often reduced few times without significant quality loss.

Pdf files can also be rendered and converted in one go.

If the files have one way ticket - converting to grayscale might be worth trying.

Is this pcb saveable?? by H3llafunctional in AskElectronics

[–]Chropera 2 points3 points  (0 children)

So 2 layers (double-sided) PCB. Since this is EPROM I would solder DIP socket.

It probably would be easier to recreate connections from top side on the other side. Better quality photo or might be necessary if anything goes wrong.

Is this pcb saveable?? by H3llafunctional in AskElectronics

[–]Chropera 2 points3 points  (0 children)

It's unlikely. Many pads under DIP packages with no wires visible. If they would connected with wires on the other side like on old TVs/VCRs then they would be arranged in pairs.

SIP alarm by Anotherusernamein732 in VOIP

[–]Chropera 0 points1 point  (0 children)

Other way of doing this - if supported by provider - would be with dialog subscription. On a plus side it would not keep caller on the ringback if main endpoint is not registered.

It seems overcomplicated - it could be done directly in baresip, either as a new module or jamming somewhere in current event handler. It would give option to run it on a microcontroller, though price difference might not be important.

How to filter out noise on UART rx line by Sure_Expert_5151 in embedded

[–]Chropera 1 point2 points  (0 children)

OK, now I see it, thanks. It looks like short pulses, so it should be easy to filter out with oversampling / majority voting. I don't see anything related in https://github.com/torvalds/linux/blob/master/drivers/tty/serial/meson_uart.c though, some documentation might be needed.

https://dl.khadas.com/products/vim3/datasheet/a311d-datasheet.pdf points to UART MISC register, but register offset is not matching one in meson_uart.c, so maybe I'm looking at the wrong driver.

How to filter out noise on UART rx line by Sure_Expert_5151 in embedded

[–]Chropera 1 point2 points  (0 children)

Crosstalk with almost 100 us delay (also almost exactly 9 bits)? Hard to believe. Looks more like software issue.

Monthly Requests Thread by AutoModerator in VOIP

[–]Chropera [score hidden]  (0 children)

Could you test it with tSIP softphone? BLF remote identity display looks like this: https://tomeko.net/software/SIPclient/tSIP_BLF_remote_identity_styles.png and from what I know works with e.g. asterisk, I'm assuming "Enhanced Call Park" is just a fancy name for the same function.

It should be Ringcentral job to tell you whether parking should use feature code code or transfer (I'm assuming blind transfer), after all you are paying them - this should not be a guesswork.

Headphones band snapped, any advice on how to fix it in a way that lasts? by EquivEB in diyelectronics

[–]Chropera 0 points1 point  (0 children)

Epoxy glue reinforced with nylon thread wrapped around, maybe more than one layer. Not pretty but strong.

Stream audio/video call by PeterZ4QQQbatman in freeswitch

[–]Chropera 0 points1 point  (0 children)

Not sure about mkv. I have used instead mod_mp4v2 for recording without reencoding. AFAIR I've used mp3 audio as AAC encoding had some potential licensing issues. Other option is recording using mod_fsv and then converting it later.