Go to advanced search

by doublehp
Wed Feb 14, 2018 3:53 pm
Forum: General discussion
Topic: Only 99% reliability with ws281* : sometimes it produces mess
Replies: 47
Views: 1789

Re: Only 99% reliability with ws281* : sometimes it produces mess

danjperron modern distributions are faster to boot than old ones; not because of CPU power, but they have redesigned the init procedure. An rpi2 with a recent raspbian is much faster than 60s. Maybe 30 or 20s, if you put your service in rc.local. You may also gain more time at power cycle by playing...
by doublehp
Sun Feb 11, 2018 6:28 pm
Forum: General discussion
Topic: Only 99% reliability with ws281* : sometimes it produces mess
Replies: 47
Views: 1789

Re: Only 99% reliability with ws281* : sometimes it produces mess

I may have found a clue about ORangePi; I am not sure yet if it will have impact, but I have good suspiscions. OrangePi0+Armbian include cpufreq; and by default, iddle system run at 240MHz; when heavu tasks start, freq grows up to 1.2GHz. I suspect this speed change to affect the topic of this threa...
by doublehp
Sun Feb 04, 2018 1:38 pm
Forum: Troubleshooting
Topic: broken filesystem, e2fsck can not fix things
Replies: 21
Views: 1778

Re: broken filesystem, e2fsck can not fix things

An other system have broken: while the system was live, I have found this in syslog (or messages, I never know): 2018-01-24T12:52:27.998410+01:00 rpi-08-locataire-42-etage-droit kernel: [86481.017530] EXT4-fs (mmcblk0p2): error count since last fsck: 4 2018-01-24T12:52:27.998469+01:00 rpi-08-locatai...
by doublehp
Fri Jan 26, 2018 10:25 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ethernet module W5100 how to use?
Replies: 3
Views: 569

Re: Ethernet module W5100 how to use?

aBUGSworstnightmare wrote:
Fri Jan 26, 2018 10:21 am
for Pi0 it should be simpler to use a USB-to-Ethernet
The eternal stupid answer ...

... why do you think I am using a pi0 ?

BECAUSE IT HAS USB OTG PLUG FOR GADGET USE !!!
by doublehp
Thu Jan 25, 2018 8:19 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Ethernet module W5100 how to use?
Replies: 3
Views: 569

Re: Ethernet module W5100 how to use?

Same issue; after 3h of Googling, I gaveup.

https://fr.aliexpress.com/item/ENC28J60 ... 0.0.aYnpth
works just fine on rPi0.
by doublehp
Mon Jan 15, 2018 5:49 pm
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 357
Views: 72893

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

To test HDMI, I use an HDMI2AV converter, then, an AV-USB decoder; they produce a crappy image, but they are very cheap: https://fr.aliexpress.com/item/DZLST-Mini-HD-Video-Converter-Box-HDMI-to-RCA-AV-CVSB-L-R-Video-1080P-HDMI2AV/32815095086.html?spm=a2g0s.9042311.0.0.vsKuhX https://fr.aliexpress.co...
by doublehp
Wed Jan 10, 2018 3:06 pm
Forum: General discussion
Topic: Only 99% reliability with ws281* : sometimes it produces mess
Replies: 47
Views: 1789

Re: Only 99% reliability with ws281* : sometimes it produces mess

There are many bugs in the forum API. I have fixed the links.
by doublehp
Wed Jan 10, 2018 11:09 am
Forum: General discussion
Topic: Only 99% reliability with ws281* : sometimes it produces mess
Replies: 47
Views: 1789

Re: Only 99% reliability with ws281* : sometimes it produces mess

Oh, I had not paste/crosslink it here :

Getting OrangePi Zero work with WS2811
http://www.orangepi.org/orangepibbsen// ... 318&extra=
by doublehp
Wed Jan 10, 2018 9:33 am
Forum: General discussion
Topic: Only 99% reliability with ws281* : sometimes it produces mess
Replies: 47
Views: 1789

Re: Only 99% reliability with ws281* : sometimes it produces mess

How about https://playground.arduino.cc/uploads/Main/i2c-level-shift-mosfet.png That circuit is known to not work with WS2811. I did not fully understand why, but the result is that this circuit does not respect timings, and kills high frequencies signal. Solutions have been given in the Orange lin...
by doublehp
Sun Dec 31, 2017 3:05 pm
Forum: General discussion
Topic: Only 99% reliability with ws281* : sometimes it produces mess
Replies: 47
Views: 1789

Re: Only 99% reliability with ws281* : sometimes it produces mess

What is your scheduler frequency ? zcat /proc/config.gz | grep -i CONFIG_HZ Even if you dedicate a core to a task, GPIO_SET probably calls the BCM2835 kernel driver is probably called at some point; and this will always remains subject to kernel scheduling issues. Much less than any other cases. But...
by doublehp
Sat Dec 30, 2017 6:26 pm
Forum: General discussion
Topic: Only 99% reliability with ws281* : sometimes it produces mess
Replies: 47
Views: 1789

Re: Only 99% reliability with ws281* : sometimes it produces mess

Are you up for a simple test of dynamic CPU isolation? Should only take half an hour. Honest. I have spent one hour it, and it failed. rt-tools failed on make: [ 50%] Building C object bitcalc/test/CMakeFiles/test_bitcalc.dir/__/src/bitcalc.c.o cc1: error: unrecognized command line option â-fsaniti...
by doublehp
Thu Dec 28, 2017 12:12 pm
Forum: General discussion
Topic: Only 99% reliability with ws281* : sometimes it produces mess
Replies: 47
Views: 1789

Re: Only 99% reliability with ws281* : sometimes it produces mess

Heater I have read various tutos about the CPU topic; there are at least 4 variables involved; in my use case, this one works, and does the job. maxcpus will keep some cores reserved, but without saying which ones; isolcpus is specific and states directly the one you want to keep. There are various ...
by doublehp
Wed Dec 27, 2017 11:04 pm
Forum: General discussion
Topic: Only 99% reliability with ws281* : sometimes it produces mess
Replies: 47
Views: 1789

Re: Only 99% reliability with ws281* : sometimes it produces mess

I did not say adding a transistor can't help. I said that adding the voltage converter I have make things worst, and that the issue can be solved by stopping X, and made worst by running fork bombs. Fact is, I am used to work with many chips; and honestly, a chip that does not take 1.8V as a logical...
by doublehp
Tue Dec 26, 2017 9:12 pm
Forum: General discussion
Topic: Only 99% reliability with ws281* : sometimes it produces mess
Replies: 47
Views: 1789

Re: Only 99% reliability with ws281* : sometimes it produces mess

Heater Of course the kernel is messing around; I said I am using an rPi2, so, it's a quad core CPU. Nice could help, but, if I apply it to my bash script, what will happen to child process ? my generic code is in bash; but the LED API is in python; so my bash script is calling python each time I nee...
by doublehp
Tue Dec 26, 2017 9:03 pm
Forum: General discussion
Topic: Only 99% reliability with ws281* : sometimes it produces mess
Replies: 47
Views: 1789

Re: Only 99% reliability with ws281* : sometimes it produces mess

After reboot (and removing some daemons to free more CPU time), bug occurs much less. My question was: many forums mention that WS2811 hardly work on rPi; my error rate is now between 1:400 and 1:1000. Are there better libraries than the ones I have mentionned, or do other references provide better ...
by doublehp
Tue Dec 26, 2017 7:01 pm
Forum: General discussion
Topic: Only 99% reliability with ws281* : sometimes it produces mess
Replies: 47
Views: 1789

Re: Only 99% reliability with ws281* : sometimes it produces mess

https://www.amazon.fr/gp/product/B0148B ... UTF8&psc=1
makes things worst. It completely blocks the signal; I don't have any other model; I may try with a pair of transistors.

After reboot, things work ... without level adapter.
by doublehp
Tue Dec 26, 2017 5:41 pm
Forum: General discussion
Topic: Only 99% reliability with ws281* : sometimes it produces mess
Replies: 47
Views: 1789

Re: Only 99% reliability with ws281* : sometimes it produces mess

It's true I am using the raw rPi pin, and I have a voltage converter I can use to fix this detail, but, I believe it will not fix the bug I have.
by doublehp
Tue Dec 26, 2017 5:04 pm
Forum: General discussion
Topic: Only 99% reliability with ws281* : sometimes it produces mess
Replies: 47
Views: 1789

Only 99% reliability with ws281* : sometimes it produces mess

Hello. Hardware: Raspberry Pi v2, with good PSU. On pin 18: one LED strip of 12V groups of WS2811 (12 blocks); then, the data line is sent to a serie of individual WS2812 LEDs (5V). For a total of 12+48+1=61 pixels. Took me some time to understand how to send my very first WS2811 frame, and I had a ...
by doublehp
Sat Dec 23, 2017 12:14 am
Forum: Troubleshooting
Topic: broken filesystem, e2fsck can not fix things
Replies: 21
Views: 1778

Re: broken filesystem, e2fsck can not fix things

CH340G ( http://dx.com/p/398436 ) was not able to talk with my electric meter (1200B 7b and some other funny things). I have used PL2303 because it was cheaper, and working (better) ( http://dx.com/p/149859 ). Since you say the filesystem corruption could be related with the 2303 driver, I will try ...
by doublehp
Sun Nov 26, 2017 11:40 am
Forum: Graphics, sound and multimedia
Topic: HDMI to CSI-2 via TC358743 on kernel 4.1
Replies: 357
Views: 72893

Re: HDMI to CSI-2 via TC358743 on kernel 4.1

Class is irrelevant; event U2 Cards able to stand 80MB/s write are labelled C10 (10MB/s certified write). Modern cards can stand up to 120MB/s (and much faster read); but what is the max capability of the rpi ? If the rpi is hardware limited to something below 60MB/s, you can increase your write rat...
by doublehp
Sun Nov 26, 2017 11:06 am
Forum: Advanced users
Topic: Pi Zero as a USB keyboard (HID gadget)
Replies: 22
Views: 13665

Re: Pi Zero as a USB keyboard (HID gadget)

Can all versions of rpi0 do it ? 1.2, 1.3, W ?
by doublehp
Thu Nov 16, 2017 5:27 pm
Forum: Troubleshooting
Topic: broken filesystem, e2fsck can not fix things
Replies: 21
Views: 1778

Re: broken filesystem, e2fsck can not fix things

Most of the time, the average iddle time is 92%, and the load is 1.35. Every 5 mn, cron does heavy work, and uses over 50%. My code is not perfect, but I have done speed optimisation on the most important loops. It's not what I would call an intense work.
by doublehp
Thu Nov 16, 2017 1:14 pm
Forum: Troubleshooting
Topic: broken filesystem, e2fsck can not fix things
Replies: 21
Views: 1778

Re: broken filesystem, e2fsck can not fix things

I have had problems with other serial adapters. For this project (which is duplicated 8 times), I need very specific serial settings, to comply an old industrial standard (forgot the name), where, in short, the port needs to be 1200 baud, 7 bits, with parity, and something else inverted. I have trie...
by doublehp
Tue Nov 14, 2017 5:31 pm
Forum: Advanced users
Topic: PI3 microSD and wear leveling
Replies: 26
Views: 16773

Re: PI3 microSD and wear leveling

Ideal for Android, they mean, ideal for the external SD storage for phones. And even with this use, I had a 64GB card die in one year. ... A somewhat "narrow" interpretation, since both 'phones & tablets may have "Android apps." that can run from the external uSDHC card. (That doesn't exclude the p...
by doublehp
Tue Nov 14, 2017 5:09 pm
Forum: Advanced users
Topic: PI3 microSD and wear leveling
Replies: 26
Views: 16773

Re: PI3 microSD and wear leveling

The official answer from Transcend is: All of our flash products support wear leveling but for heavy usage it is suggest to use MLC chip based cards for better endurance. https://nl.transcend-info.com/Embedded/Essay-22 https://nl.transcend-info.com/Products/No-727 If you can find them, you can also ...

Go to advanced search