hybridfree/eevblog-posts huggingface dataset:
Raspberry Pi Zero W boot messages not sent past certain point over UART - Page 1
Forum section: electronics / general

author: Zbig
author_rank: Frequent Contributor
timestamp: November 24, 2020, 08:45:34 pm
content: Raspberry Pi Zero W on Raspbian 10 (Buster). I have UART enabled with "uart_enable=1" in /boot/config.txt. Contents of /boot/cmdline.txt:Code:console=serial0,115200 console=tty1 root=PARTUUID=f7aaca44-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwaitThe problem I have is, kernel messages during boot stop being pushed over UART at around 9.5 seconds mark. The last thing I see is "[ 9.502661] systemd: Started Journal Service.", then ~20 seconds of silence and then the login prompt. There's lots more stuff after the 9.5s mark getting logged in /var/log/kern.log or /var/log/messages (but no systemd stuff). I suspect it's some systemd thing and perhaps I should configure somewhere what and how gets logged to tty1 but I wouldn't know where to look. Ideally, I'd like to see over UART all the same or similar amount os stuff as gets spat out to the monitor over HDMI, that is both the kernel and userland stuff.

author: rstofer
author_rank: Super Contributor
timestamp: December 11, 2020, 11:42:19 pm
content: Maybe this will help:https://www.raspberrypi.org/forums/viewtopic.php?t=184718
fast I/O on Raspberry Pi - Page 1
Forum section: electronics / general

author: NiHaoMike
author_rank: Super Contributor
timestamp: August 04, 2020, 11:52:54 pm
content: https://www.raspberrypi.org/forums/viewtopic.php?p=1697532So far, it only seems to work exceptionally well on the Pi Zero. It won't match a Beaglebone Black, but still impressive for how cheap a Pi Zero is.

author: Doctorandus_P
author_rank: Super Contributor
timestamp: September 25, 2020, 11:00:16 pm
content: Why do you call 80MB/s fast for a (multi core?) processor that runs on a GHz or so?And it has to be reverse-engineerd from missing datasheets also.

author: brucehoult
author_rank: Super Contributor
timestamp: September 26, 2020, 09:47:35 am
content: You can do something similar on an ATMega2560 (or the smaller versions) e.g. on Arduino Mega. 16 GPIOs are used for address and data (with the high 8 bits of the address multiplexed with the 8 data bits) to allow addressing 64 KB of total RAM. Not as quickly, obviously, due to the lower clock rate, but I think it might manage 8 MB/s.

author: janoc
author_rank: Super Contributor
timestamp: September 26, 2020, 10:16:50 am
content: Quote from: Doctorandus_P on September 25, 2020, 11:00:16 pmI guess the difference between CPU clock and the external interfaces/peripherals has been totally lost on you.

author: Doctorandus_P
author_rank: Super Contributor
timestamp: September 27, 2020, 03:44:20 pm
content: Nope.More then 12 CPU clocks for an I/O transfer is nothing exceptional.This has nothing to do with absolute numbers.If you want sustained high transfer rates, then look at the Cypress FX2 or FX3 for a nifty peripheral implementation.

author: janoc
author_rank: Super Contributor
timestamp: September 29, 2020, 09:17:33 am
content: Quote from: Doctorandus_P on September 27, 2020, 03:44:20 pmThe I/O transfer rate is not dictated by the CPU clock but by the peripheral clock itself and how fast (or not) are the connections to the bus where the memory is. Which given how the Broadcom SoC is built and that we are talking about GPIO (well, SMI) and not a dedicated high speed interface, it is pretty solid.If someone wants a gigabyte/second speeds they won't use what essentially amounts to an old parallel port.
MPLAB - HTML formatting in functions declaration (Header files) - Page 1
Forum section: electronics / general

author: ricko_uk
author_rank: Super Contributor
timestamp: September 22, 2020, 08:40:19 pm
content: Hi,see screenshot attached.When you generate a new H file or C file in MPLAB X using the New file, the file generated has guidelines that suggest the use of HTML in describing the function.I assume it is so MPLAB can display those tips/descriptions somewhere else? Maybe as tips?Is that so and where does that text appear?Thank you

author: andersm
author_rank: Super Contributor
timestamp: September 22, 2020, 09:25:21 pm
content: It looks likeDoxygencomments. I don't know if MPLAB X directly integrates it, but you can always run the external generator.

author: ricko_uk
author_rank: Super Contributor
timestamp: September 22, 2020, 11:11:29 pm
content: Thank you Andersm,I am not familiar about html, what do you mean by external generator? To do what?Also I was wondering how MPLAB might use it and where?Thank you

author: MarkF
author_rank: Super Contributor
timestamp: September 23, 2020, 02:37:29 am
content: Quote from: ricko_uk on September 22, 2020, 08:40:19 pmFirst:I have never seen MPLAB generate guidelines like that in any of my header or C files.At least not with the XC8 compiler.Second:As @andersm said, the example you posted looks like embedded Doxygen syntax.Doxygen is a tool that allows you to document your code via comments within that code.There is special syntax you add in your code for Doxygen to parse and generate several types of documents.One of which is a HTML format.Doxygen is NOT part of MPLAB. It is a tool the parses your source code.Basically, think of Doxygen as a way to generate a WIKI page from you code.

author: ricko_uk
author_rank: Super Contributor
timestamp: September 23, 2020, 05:47:45 pm
content: Thank you Mark, that makes more sense now. That might be what it is.Thank you both
ISR routine code in Harmony V3 - Page 1
Forum section: electronics / general

author: ricko_uk
author_rank: Super Contributor
timestamp: September 22, 2020, 07:07:21 am
content: Hi,first time using MPLAB Harmony. I created a project using Harmony V3 and Configurator. The only peripheral configured with the Configurator is Timer 3 interrupt. And it generates the code below in a interrupts.c file.Few questions:1) Where am I supposed to place my ISR code? Is there some callback function? Perhaps with some standard naming convention? Or if I have to define the name, how and where?2) if I am supposed to add my code in the__ISR(_TIMER_3_VECTOR, ipl1SRS) TIMER_3_Handler (void)do I place it before or after thatTIMER_3_InterruptHandler()function?3) what does thatTIMER_3_InterruptHandler()do and where is it defined?With ref to the code generated by Harmony (see below), it looks like the ISR function__ISR(_TIMER_3_VECTOR, ipl1SRS) TIMER_3_Handler (void)calls a functionTIMER_3_InterruptHandler()which is declared above. But there is no definition and if I modify that declaration to make it a definition it gives error. And the same happens is I leave that declaration and make my own function definition with the same name.// *****************************************************************************// *****************************************************************************// Section: System Interrupt Vector Functions// *****************************************************************************// *****************************************************************************void TIMER_3_InterruptHandler( void );/* All the handlers are defined here. Each will call its PLIB-specific function. */void __ISR(_TIMER_3_VECTOR, ipl1SRS) TIMER_3_Handler (void){TIMER_3_InterruptHandler();}/*******************************************************************************End of File*/Thank you

author: ricko_uk
author_rank: Super Contributor
timestamp: September 22, 2020, 05:39:16 pm
content: For those interested, I found out that you need to register a callback function.
Battery for PC motherboard - Page 1
Forum section: electronics / general

author: eeguy
author_rank: Regular Contributor
timestamp: May 30, 2020, 04:00:42 pm
content: Hi, if I want to use a Lipo battery to power a PC motherboard which takes 12 to 19 Volt DC with a maximum current of 10A. Should I be using a 3S or 4S Lipo? What capacity and discharge rate should I be looking at if I want to run the PC for about 25 minutes? Given mAh*C of two batteries are similar, should I be choosing one with higher mAh or C value?

author: Doctorandus_P
author_rank: Super Contributor
timestamp: September 27, 2020, 03:47:37 pm
content: This does not have much to do with the battery itself.It's more with the current and voltages that the MoBo actually needs, and the power supply circuitry that you put inbetween the MoBo and the batteries.Once you have those numbers, do the math with the battery energy you have available to calculate longevity.
Should EPROMs be covered during programming? - Page 1
Forum section: electronics / general

author: Circlotron
author_rank: Super Contributor
timestamp: September 04, 2020, 06:30:03 am
content: If a bit of ambient light gets in, can that affect the eprom and give a programming error? I don't mean direct sunlight, that would be a bit much, just ordinary indirect room light.

author: greenpossum
author_rank: Frequent Contributor
timestamp: September 04, 2020, 06:39:34 am
content: No

author: Ian.M
author_rank: Super Contributor
timestamp: September 04, 2020, 07:15:49 am
content: In theory yes as photo-voltages from room light exposure can cause threshold shifts in the sense amplifiers, which is known to be a possible source of read-back errors, so if its got a few weak cells and the programmer is using an adaptive algorithm it could result in a few bits being under-programmed. In practice, unless you've got to guarantee a 10 year shelf life, no-one bothers putting on the opaque sticker before programming.

author: Circlotron
author_rank: Super Contributor
timestamp: September 04, 2020, 07:18:07 am
content: Just that I’ve had eprom based microcontrollers act silly in a brightly lit room. Way less than direct sunlight though.

author: Ian.M
author_rank: Super Contributor
timestamp: September 04, 2020, 07:26:37 am
content: As I said, photovoltages are known to cause temporary read-back issues. If you've got bright bench lighting, it *may* be an issue.

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: September 16, 2020, 10:27:08 pm
content: I used EPROMs extensively back in the day (1980s and 1990s) and never bother to cover the window during programming and I never had an issue. I must have programmed thousands of them.

author: David Hess
author_rank: Super Contributor
timestamp: September 18, 2020, 05:17:00 am
content: There is no need to cover the window of the EPROM during programming. In most applications there is no need to cover it at all.
MPLAB Harmony's Non-Interrupt Code - Page 1
Forum section: electronics / general

author: ricko_uk
author_rank: Super Contributor
timestamp: September 16, 2020, 09:52:24 pm
content: Hi,I am new to using MPLAB Harmony. I used to code in classic C without any frameworks.Where do I place the code that is not interrupt driven?For example if you just want to flicker and LED on and off without using a timer? Obviously turning an LED on/off is just to ever-simplify the non-interrupt driven code, but in the classic file setup you can just place it in main() but what about in a Harmony's files structure?Thank you
PIC32MZ1024 Project Template missing - Page 1
Forum section: electronics / general

author: ricko_uk
author_rank: Super Contributor
timestamp: September 16, 2020, 12:44:19 am
content: Hi,I need to make a C or C++ MPLAB project for the PIC32MZ1024EFG100T but:1) cannot find any standard template in MPLAB to start the project with/from. There are C and C++ templates for the MX processors but not the MZ. Where can I find one?2) If there isn't one available from Microchip, is there anybody willing to share a basic one?3) because I am not used to use the MZ want to use Code Configurator to setup the micro. The posts I have come across say you cannot use it with the MZ micros, BUT they are 2017 posts. Does anybody know if today (Q4 2020) you can use it with the MZ or how I can find out (I haven't used Code Configurator before)?Thank you

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: September 16, 2020, 08:42:43 pm
content: MPLAB doesn't support the PIC32MZ--you need MPLAB X for that.

author: ricko_uk
author_rank: Super Contributor
timestamp: September 16, 2020, 08:52:18 pm
content: Thank youYes, I meant MPLAB X, not MPLAB.But I have found the answers for MPLAB X. Code configuration does not support the MZ family. You need to install Harmony.
Raspberry Pi 400 teardown (video) - Page 1
Forum section: electronics / general

author: floobydust
author_rank: Super Contributor
timestamp: November 02, 2020, 06:22:51 pm
content: It's a USD $70 desktop PC, all in the keyboard:2x micro HDMIGigabit EthernetKensington lock1x USB 2.02x USB 3.0microSD40 pin GPIO2.4GHz and 5GHz WiFi and BT 5.0Broadcom BCM2711 newer rev C0T 1.8GHz4GB SDRAMUSB-C 5V power inhttps://datasheets.raspberrypi.org/pi400/pi400-product-brief.pdfUSD $100 kithttps://www.adafruit.com/raspberrypi400pic fromhttps://www.jeffgeerling.com/blog/2020/raspberry-pi-400-teardown-and-review

author: ralphrmartin
author_rank: Frequent Contributor
timestamp: November 03, 2020, 07:50:21 pm
content: I dont understand why they didn't bite the bullet and stick a modest SSD in it too, and make it $99.

author: floobydust
author_rank: Super Contributor
timestamp: November 03, 2020, 08:45:23 pm
content: TheRPi Broadcom chipsare designed to be set top boxes/media players.So there is no CPU support for mass storage like SSD's with SATA, you only have the SD card and USB drives.

author: ralphrmartin
author_rank: Frequent Contributor
timestamp: November 04, 2020, 07:03:19 pm
content: Sure, I meant use up one of the USB ports. Serious users are going to do this anyway, as SD cards wear pretty quickly with any real use. With the SSD inside, it would be nicely portable. Having to carry the SSD around separately is tedious; it can get bumped and disconnected. People will grumble when they find they have to spend more money. And so on.

author: mikerj
author_rank: Super Contributor
timestamp: November 05, 2020, 09:28:16 pm
content: Quote from: ralphrmartin on November 03, 2020, 07:50:21 pmI thought the same, even if they just provided a PCIE port like they do on the compute module and left it up to the end user to fit an SSD (or some other more interesting peripheral). Since they stuck with the SD, why not use a full size one with all the rear panel space available? I can't knock it too much though, it's a really neat little machine.

author: Ed.Kloonk
author_rank: Super Contributor
timestamp: November 06, 2020, 12:36:52 am
content: Quote from: mikerj on November 05, 2020, 09:28:16 pmI was wondering why the shift in PCB layout after all this time making buyers get used to buying/making compatible hats. Why couldn't the keyboard be constructed like a hat, so one could swap out the 'guts' when a faster/better one comes along or you manage to fry the one you have? If you nuke half the inputs on the GPIO somehow, you have to replace the whole thing?
VodafoneTV by Sagemcom. How can i upload a basic android tv firmware? Can i? - Page 1
Forum section: electronics / general

author: sokigergely
author_rank: Newbie
timestamp: August 22, 2020, 01:06:17 pm
content: Hey everyone!I've got this VodafoneTV Box made by Sagemcom from friend. I tried to find some documentation but no luck. It is very popular in France, Spain, New Zealand.When i turn it on it starts with the setting up, pair your remote, connecting to network...etc but allways stuck on " SA005 contact technical support". Tried to do button pressing combination, but nothing. Only makes an upgrade. But does not go into recovery mode, if it has any.I was thinking if i could install a clean androidtv firmware but i didnt find any solution for this model.This is the model:https://i1.wp.com/witchdoctor.co.nz/wp-content/uploads/2019/10/vodafone-tv-3.jpg?fit=1200%2C727&ssl=1It has a Broadcom BCM7252 Soc which i found in several other models, which made me think if others can upload other firmware why i cant?Some more foto:https://imgur.com/gallery/TeB6PKxAlso i found this article:https://www.anquanke.com/post/id/147139My board looks very similar to it.So does anyone know more about this product?Thanks!
RP Zero W mini HDMI to DVI adapter - Page 1
Forum section: electronics / general

author: Circlotron
author_rank: Super Contributor
timestamp: August 16, 2020, 10:51:49 am
content: Got myself a Raspberry Pi Zero W and it has a mini HDMI video out connector. Using an adapter to normal full size HDMI I can plug it into the TV set and watch it boot up. I want to use it with a normal desktop monitor that has a DVI connector. Do you think I can find a male mini HDMI to female DVI adapter or cable??? i would have thought they would be absolutely everywhere but I haven't been able to find a single one. Any advice where i might find one? Preferably a short cable, but a one piece adapter would do at a pinch.

author: Mechatrommer
author_rank: Super Contributor
timestamp: August 16, 2020, 10:59:54 am
content: https://www.aliexpress.com/item/4000628955877.html?spm=a2g0o.productlist.0.0.63f18a9cVkAwem&algo_pvid=1472d722-a9c7-426a-8c79-62b379e2003a&algo_expid=1472d722-a9c7-426a-8c79-62b379e2003a-26&btsid=0ab6f81e15975753260704388e730e&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_

author: Circlotron
author_rank: Super Contributor
timestamp: August 16, 2020, 11:12:59 am
content: No, not quite, Mechatrommer. That one has the same kind of DVI end as my monitor cable. I need the sort that has a DVI end like on a PC video board.

author: Mechatrommer
author_rank: Super Contributor
timestamp: August 16, 2020, 11:30:17 am
content: thats one less adapter if you will... btw you should got the idea already on how to aliexpressing...https://www.aliexpress.com/item/32827311124.html?spm=a2g0o.productlist.0.0.2c45680fDM1oHd&s=p&ad_pvid=202008160428251751518668144960003235991_3&algo_pvid=b983e408-4a5f-4a77-b733-f642dbdff910&algo_expid=b983e408-4a5f-4a77-b733-f642dbdff910-9&btsid=0ab6f81615975773049231025e2890&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_if you cant find it in china market i doubt you can find it anywhere... ymmv.

author: Ian.M
author_rank: Super Contributor
timestamp: August 16, 2020, 12:44:58 pm
content: It exists on Amazon:https://www.amazon.com/StarTech-com-Mini-HDMI-DVI-D-Adapter/dp/B00W505ZC6No recommendation implied.

author: Circlotron
author_rank: Super Contributor
timestamp: August 17, 2020, 07:11:39 am
content: I ordered two adapters that together will to the job.Then today I discovered my monitor has an HDMI input...I am *such* a donkey sometimes.
USB - Page 1
Forum section: electronics / general

author: rckanta
author_rank: Contributor
timestamp: July 02, 2020, 06:00:58 pm
content: What are the difference between the USB protocol and USBMS protocol?When do we need to use USB protocol and USBMS protocol?Thank you for your help.

author: ataradov
author_rank: Super Contributor
timestamp: July 02, 2020, 07:05:04 pm
content: USBMS is not a standard acronym for anything. What specific protocol you are referring to?The only thing that comes to mind for USB MS is Mass Storage. If this is what you are talking about, then MS is not a protocol, it is a specific profile (set of commands) for storage devices.

author: Doctorandus_P
author_rank: Super Contributor
timestamp: August 07, 2020, 02:12:25 pm
content: If this is indeed from "Mass Storage", then it's just one of the sub protocols for USB.There are many of them, some common examples:HID = Human Interface Device, which is used by all keyboards and mice.CDC = Communications Device Class, used for example for those serial port dongles on USB.And there are many other sub protocols for USB.

author: Bassman59
author_rank: Super Contributor
timestamp: August 09, 2020, 07:40:28 pm
content: Quote from: rckanta on July 02, 2020, 06:00:58 pmAssuming you mean USBMSC and not just USBMS --USB is the overarching standard. It defines the bus and the basics of transactions.ALL USB Devices conform to a Class. There are several defined USB Device Classes. There is also a Vendor Defined class, which lets you implement a device that meets your needs if none of the existing Standard Classes work.The reason for this is so that users can just plug their device into their computer and if the device conforms to a standard Class then the computer will recognize it, use the correct drivers, and then the thing just magically works.USBMSC or "USB Mass Storage Class" is one of the pre-defined USB Classes.
Udoo Bolt v8:: what do you think about? - Page 1
Forum section: electronics / general

author: 0db
author_rank: Frequent Contributor
timestamp: August 08, 2020, 02:16:05 pm
content: The "Udoo Bolt v8" is a small embedded computer with 4 core 8 thread Ryzen CPU.And it also comes with a built-in Arduino Leonardo board.What do you think about this product for micro-robotics ?I am really tempted to buy the NVIDIA® Jetson Xavier™ NX. But I haven't yet decided.

author: Mr. Scram
author_rank: Super Contributor
timestamp: August 08, 2020, 03:49:40 pm
content: You may want to look at the Seeed Odyssey. It's very similar though seems a bit more balanced specifications wise and is also a lot cheaper.
Single board computers with Raspberry Pi compatible GPIO pinout - Page 1
Forum section: electronics / general

author: Scratch.HTF
author_rank: Regular Contributor
timestamp: August 01, 2020, 06:42:37 am
content: You may have seen this, but certain single board computers have a Raspberry Pi compatible GPIO pinout which certain shields such as Hi-Fi audio DACs designed for the Raspberry Pi can also be used on certain other units; certain units may not implement certain hardware functions (most commonly, GPCLK - General Purpose Clock output which there is little or no documentation for this function as far as I know) on GPIO pins corresponding to the Raspberry Pi and/or these functions may be on different pins and that logic levels for certain boards may differ.Here is a list of single board computers with absent hardware functions and/or hardware functions on different pins compared to the Raspberry Pi (unless noted, all are fitted with I2C (two buses), GPCLK (General Purpose Clock), SPI (with two hardware selects), PWM (two channels), UART and I2S Audio as per the Raspberry PI GPIO configuration):Asus Tinker Board: GPCLKBanana Pi: GPCLK, SPI /CE1, PWMMaximite 2: GPCLK, SPI selects, PWM, I2S AudioNanoPi: GPCLK, SPI /CE1, PWM, I2S AudionVidia Jetson: GPCLK, PWM1ODROID: GPCLK, SPI selects, PWM, I2S AudioRock Pi: GPCLK, SPI /CE1, PWMSo far, all of the boards I have compared have I2C (both buses), UART (data only - certain boards have hardware flow control pins) and SPI (excluding selects) on the same pins.Any contributions of single board computers with a Raspberry Pi compatible GPIO pinout with absent hardware functions and/or hardware functions on different pins being noted (along with logic levels other than +3.3V being noted) are welcome here.

author: chickenHeadKnob
author_rank: Super Contributor
timestamp: August 01, 2020, 06:49:00 am
content: careful with ODROID as models have varying compatibility. Odroid2 for example doesn't have SPI if I have remembered correctly. Odriod 1 has analog in on one pin ect.
Single board computer support - Page 1
Forum section: electronics / general

author: jashugan
author_rank: Regular Contributor
timestamp: August 27, 2020, 01:08:49 pm
content: Hello,what is, in your knowledgde, the single board computer that has the lowest price provided it has a good support? For good support I mean it has the device tree support to build uboot without building from source files.Minimum requirements are:Cortex start from 1GHzWifi or EthernetLCD or Mipi interfacebetter if it has the 2G/3G modulebetter if it has embedded RAM and/or Flash

author: NiHaoMike
author_rank: Super Contributor
timestamp: August 28, 2020, 03:05:43 am
content: You can try to find a cheap smartphone that's supported by LineageOS, but the developers don't even seem to bother with the super cheap ones nowadays - a $50 phone takes about the same time to hack as a $10 phone but ends up with much better performance. I'm not aware of any cheaper way to get a cellular radio that supports modern networks - 2G is basically dead and 3G is being phased out.If you don't need cellular, Raspberry Pi Zero is hard to beat for the low price.
Orange pi one black screen after power off and on - Page 1
Forum section: electronics / general

author: JUSTIN123
author_rank: Newbie
timestamp: July 10, 2020, 04:41:08 pm
content: I have been having trouble with my orange pi. I have downloaded armbian and the desktop and everything is working untill I power it off. after powering it back on, It outputs no video. I EVEN bought a new 32gb sandisk extreme card but nothing changes. I reflash the card and it starts all over again. I am so mad at this. Could anyone help?

author: elecman14
author_rank: Unknown
timestamp: July 10, 2020, 06:08:52 pm
content: How do you power it down? Are you just yanking the power cable or do you do a "poweroff -h" from a console window or something equivalent. Just removing power could corrupt the SD card.

author: JUSTIN123
author_rank: Newbie
timestamp: July 10, 2020, 06:25:42 pm
content: I go to the desktop and click shut down.after a bunch of lines of text scroll down the screen, it says system halted, then I pull the power. am I supposed to do something else?

author: andersm
author_rank: Super Contributor
timestamp: July 10, 2020, 11:21:26 pm
content: What happens if you just reboot the board? Can you SSH in to it? Does the board have a console serial port, and if so, do you get boot messages?

author: JUSTIN123
author_rank: Newbie
timestamp: July 10, 2020, 11:41:57 pm
content: i only have a ftdi cable, will that work?

author: SiliconWizard
author_rank: Super Contributor
timestamp: July 26, 2020, 08:37:21 pm
content: Quote from: JUSTIN123 on July 10, 2020, 06:25:42 pmHow much time do you wait before removing the power?Some SD cards have controllers that may take a few seconds to finish writing, so if you remove power too early after the last message you can see, it may get corrupted. Always wait for a few seconds before removing power.
SCSI Linux - Page 1
Forum section: electronics / general

author: rckanta
author_rank: Contributor
timestamp: July 25, 2020, 05:56:24 pm
content: have installed sg3 utils software.I want to send a command to the SCSI device (/dev/sr0).command = ef 01 ff ff ff ff 01 00 03 01 00 05How can send above command to the SCSI device usingsg_raw?Thank you for your help.

author: Nominal Animal
author_rank: Super Contributor
timestamp: July 25, 2020, 10:11:32 pm
content: Asman sg_rawsays,sg_raw /dev/sr0 ef 01 ff ff ff ff 01 00 03 01 00 05

author: rckanta
author_rank: Contributor
timestamp: July 26, 2020, 04:49:04 am
content: Quote from: Nominal Animal on July 25, 2020, 10:11:32 pmThere is errorSense Information: Fixed format, current; Sense key: Illegal Request Additional sense: Invalid field in parameter list

author: Nominal Animal
author_rank: Super Contributor
timestamp: July 26, 2020, 11:25:49 am
content: That means that the sequence either needs changing (because it requires data, or produces a response), or is incorrect for some other reason.Why don't you tell us what it is you are trying to achieve by sending that command sequence?
Mass storage device - Page 1
Forum section: electronics / general

author: rckanta
author_rank: Contributor
timestamp: July 03, 2020, 05:36:37 pm
content: I tried to interface using libusb and I checked the packet. The USB device does not respond.There is nothing wrong in the program and USB packet.How can I interface the mass storage device or SCSI device?I am trying interfaced from C program?Bus 001 Device 006: ID 2109:7638 VIA Labs, Inc.Device Descriptor:bLength 18bDescriptorType 1bcdUSB 1.10bDeviceClass 0bDeviceSubClass 0bDeviceProtocol 0bMaxPacketSize0 64idVendor 0x2109 VIA Labs, Inc.idProduct 0x7638bcdDevice 0.00iManufacturer 1 USBKey ChipiProduct 2 USBKey ModuleiSerial 3 202730041341bNumConfigurations 1Configuration Descriptor:bLength 9bDescriptorType 2wTotalLength 0x0020bNumInterfaces 1bConfigurationValue 1iConfiguration 0bmAttributes 0x80(Bus Powered)MaxPower 200mAInterface Descriptor:bLength 9bDescriptorType 4bInterfaceNumber 0bAlternateSetting 0bNumEndpoints 2bInterfaceClass 8 Mass StoragebInterfaceSubClass 6 SCSIbInterfaceProtocol 80 Bulk-OnlyiInterface 0Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress 0x81 EP 1 INbmAttributes 2Transfer Type BulkSynch Type NoneUsage Type DatawMaxPacketSize 0x0040 1x 64 bytesbInterval 0Endpoint Descriptor:bLength 7bDescriptorType 5bEndpointAddress 0x01 EP 1 OUTbmAttributes 2Transfer Type BulkSynch Type NoneUsage Type DatawMaxPacketSize 0x0040 1x 64 bytesbInterval 0can't get debug descriptor: Resource temporarily unavailableDevice Status: 0x0000(Bus Powered)

author: WattsThat
author_rank: Frequent Contributor
timestamp: July 03, 2020, 06:02:26 pm
content: I find that a tall cup of a nice dark roast opens the interface to my mass storage device. Once data transfer begins, my interrupt driven system clock typically initiates a daily routine of garbage collection and disposal.A serious answer requires a serious question. Next contestant please.

author: rckanta
author_rank: Contributor
timestamp: July 03, 2020, 06:17:14 pm
content: Quote from: WattsThat on July 03, 2020, 06:02:26 pmIf you don't know the answer or if you can not help.Please don't waste my time to read your comment.

author: WattsThat
author_rank: Frequent Contributor
timestamp: July 03, 2020, 06:32:28 pm
content: I responded to your original post, which before you edited was:Quote
Looking for docs for Pico E-102 board. - Page 1
Forum section: electronics / general

author: amx
author_rank: Contributor
timestamp: May 17, 2020, 06:28:51 am
content: Hi, everyone!May be anybody has any docs about the Pico E-102 board?On the internet, I found only one document related to this board, but this is just a prospect.Thank you, Regards!

author: tggzzz
author_rank: Super Contributor
timestamp: May 17, 2020, 06:57:49 am
content: You'll find the answer here:here.

author: jklasdf
author_rank: Regular Contributor
timestamp: May 21, 2020, 06:51:29 am
content: I've attached a copy of the hardware reference manual, which has pinouts and stuff, and I don't think was ever subject to an NDA. (I do also have a copy of the schematic, but it's subject to an NDA.)We used these on a work project a while back, and they were mostly fine. The connectors are somewhat fragile though, and I think our most used ones failed after only like 20 mate/unmate cycles. The samtec QSH connectors are technically rated to 100 cycles, but I think that's really only under fairly ideal conditions.I think Pico computing got bought my Micron, and it looks like the E-102 is completely discontinued/I can't even find the product page anymore. But it might be worth trying to email them for more information. Back in the day this was one of the few boards in its form factor with a Zynq and most components rated over the aerospace temperature range (I think everything except the micro-SD card connector).

author: amx
author_rank: Contributor
timestamp: June 01, 2020, 06:26:48 am
content: Hi jklasdfThank you very much for the hardware reference manual!!!Now, I can start to create the carrier board for experiments with this board.It very sad that samtec QSH connector has a really around 20 cycles... this is bad because I just want to use this board for hobbies projects...And the last question - do you have a JTAG connector pinout?Thank you!

author: jklasdf
author_rank: Regular Contributor
timestamp: June 04, 2020, 11:13:21 pm
content: The JTAG pinout on J1 is:1. gnd3. tck5. tdo7. tms9. tdi11. 1.8VThe connector may be useful to more cycles under ideal mating/unmating conditions, but it's hard to separate from a daughterboard cleanly, without one or the other connector unmating first/unevenly.
Thecus N4520 UART - Page 1
Forum section: electronics / general

author: Lockon Stratos
author_rank: Regular Contributor
timestamp: April 22, 2020, 11:55:12 am
content: Hi all.So i got this box on the cheap and trying to get into the bios(intel atom cpu and it has hdmi) to try and get something more modern onto it instead of the thecusos from 2017.... It has a populated uart it sends data out on it:https://www.dropbox.com/s/wkoasxsh4sst1xb/IMG_20200422_123510.jpg?dl=0What kind of adapter i need for this? I have a small ttl to usb but its only godd for 5 and 3.3 V.Thanks in advance.

author: ivi_yak
author_rank: Regular Contributor
timestamp: April 30, 2020, 01:11:33 am
content: regular FT232

author: TomS_
author_rank: Frequent Contributor
timestamp: April 30, 2020, 07:45:45 am
content: If I'm reading that right, it looks like about 10V at peak, so your existing adapters will be no good.Also that signal would appear to be idling low, whereas UARTs tend to idle high. It may not be a standard serial port.You could try grabbing a MAX232 and hook it up to convert the levels back down to 5V for example, but you may then also need to invert those signals, assuming it is a standard UART.edit: Just noticed the ground marker on the left in the middle of the waveform, so actually that would appear to be idling high, and you can use any standard "RS-232" adapter.

author: Lockon Stratos
author_rank: Regular Contributor
timestamp: May 24, 2020, 07:00:03 pm
content: Sorry for the late reply but im in the middle of the exam period. Ill try a standard serial after it ends, it will still need some work to figure out where the rx pin is.
Unable to store value from UART Rx Regsiter to *Char - Page 1
Forum section: electronics / general

author: Glenn0010
author_rank: Regular Contributor
timestamp: May 20, 2020, 01:17:38 pm
content: Hi All,So I've been succesfully reading data from UART RX Register and toring it to an array of characvters. However, I'd like to do the same with a pointer and the code is not working properly. I'm sure I've done something wrong as I am rusty with my programming skills.So here I have my UART interrupt handlerCode:void USART2_IRQHandler(void){if(USART2->ISR & USART_ISR_RXNE){//Puts the value from the receive register to the string by checking the length of the array and incrementing it by that length*(Serial_Data_Array_Received + strlen(Serial_Data_Array_Received)) = USART2->RDR;int x = 1;}}and here is how I am declaring my variableCode:char* Serial_Data_Array_Received;When I run it on the debugger, the code goes to a Hard fault routine in assambly language.I'm not sure what I'm doing wrongI am using C99 and an STM32 uCCheers

author: greenpossum
author_rank: Frequent Contributor
timestamp: May 20, 2020, 01:39:02 pm
content: Firstly have you initialised the pointer to point to a buffer where the characters are stored? Secondly, you should not be using strlen to find where the end of the valid characters are, because the NUL character is a valid character in serial transmission. You'll need to keep track how much of your buffer has been used separately.

author: Glenn0010
author_rank: Regular Contributor
timestamp: May 20, 2020, 02:00:22 pm
content: Hey thanks for the response! I've just realized what you said after refreshing my memory on pointers! It's all sorted now! Thanks for your help
Baffled - RPi WiFi only seems to work when Ethernet is plugged in - SOLVED - Page 1
Forum section: electronics / general

author: rx8pilot
author_rank: Super Contributor
timestamp: September 16, 2020, 10:57:20 pm
content: I have an RPi 3B that has been doing a simple headless automation task for a few years. It has been connected via WiFi all this time.Last week, it stopped responding and I realized it was not connected to the WiFi anymore. I then attached an ethernet cable to troubleshoot. The ethernet immediately got a DHCP issued address, but the WiFi also connected. I was not expecting the cable to have anything to do with the Wireless.As long as the cable is plugged in (which gets its own unique IP) the WiFi works. I can SSH to the IP given to the WLAN interface until the ethernet cable is disabled or disconnected.Not sure where to start on this, but guessing this may be a question for someone far more pro in Linux than me. Personally, I have never seen this behavior before.

author: rx8pilot
author_rank: Super Contributor
timestamp: September 18, 2020, 09:42:00 pm
content: Found the problem.....The person that setup this RPi had set a static gateway on the wireless interface. It looks like it was full DHCP on the surface. Sneaky little problem for a non-pro like me.I generally go full static or full DHCP.
Linux SBC:: looking for a usb stick with PAL output - Page 1
Forum section: electronics / general

author: 0db
author_rank: Frequent Contributor
timestamp: April 04, 2020, 07:25:43 pm
content: I am looking for a USB stick, or for a solution, with a PAL/NTSC output. But I need to use it in SBC computer like the RPI, hence the kernel module should be opensource (not binary only) and able to work with Linux.Any idea?

author: mikerj
author_rank: Super Contributor
timestamp: April 11, 2020, 09:32:42 am
content: The Orange Pi 3 would seem to meet your requirements apart from USB stick form factor.

author: NiHaoMike
author_rank: Super Contributor
timestamp: April 16, 2020, 10:59:03 pm
content: Doesn't the Pi already have composite output? Otherwise, HDMI to composite/Svideo converters are quite cheap.

author: Doctorandus_P
author_rank: Super Contributor
timestamp: May 01, 2020, 03:11:22 pm
content: As long as raspi does not post schematics and keep using the broadcom chips the're far from open source friendly.They seem to thrive mainly from being the cheapest board around some 10 years ago and a smart advertisement campain back then which gave them so much momentum that they've become the defacto standard for small and cheap linux boards.I will not use a raspi as long as they are not on the recommended list of debian.https://wiki.debian.org/Arm64PortEven if you had a complete PCB design of a raspi, you still could not buy the broadcom chips in small quantities.On the other side of the spectrum, have a look at Olimex. They release not only their schematics, but complete PCB designs. Older boards are in Eagle, newer are in KiCad format, and clonable from github. You can also buy bare chips for if you want to design your custom board, and they have boards with industrial temperature range.Hardkernel with their Odroid boards has a monthly magazine with lots of articles. Freely downloadable as PDF files.Both "raspi" and "arduino" get far more credit than they deserve.
Embedded Linux Processors with 3 Lane MIPI DSI Support? - Page 1
Forum section: electronics / general

author: braden_sun
author_rank: Newbie
timestamp: April 13, 2020, 06:18:05 pm
content: Hi does anyone have any recommendations for embedded linux processors that support 3 lane MIPI DSI? I was planning on using the STM32MP1 series but it only supports 2 lane DSI. I believe the dragonboard 410 would work but you can only buy the processor it uses in quantities of 2000 or more.
help! STMcubeIDE setup - Page 1
Forum section: electronics / general

author: vixo
author_rank: Regular Contributor
timestamp: April 08, 2020, 09:16:12 pm
content: I'm trying to run a simple blink sketch using a F031K6 nucleo board. When i get to the part where I have go to 'debug as' I can't because it says 'none applicable'. I have the board connected via usb, I have installed a firmware update, drivers and the STlink server module. The computer registers the nucleo in the device managerIm stumped. Is there anyone out there who can help??
[Just4fun] Someone really hated AllWinner... - Page 1
Forum section: electronics / general

author: blueskull
author_rank: Unknown
timestamp: April 05, 2020, 09:45:01 am
content: Just came across this website. I'm sure not everyone loves AllWinner, but seriously?https://www.reuuimllatech.com/

author: senso
author_rank: Frequent Contributor
timestamp: April 05, 2020, 04:11:15 pm
content: A whole website with back to front text and mirrored images?..
I'm looking for a more energy efficient way to film, and dump the recording onto - Page 1
Forum section: electronics / general

author: cedric!
author_rank: Contributor
timestamp: March 27, 2020, 10:06:34 am
content: Hi All,I've made a system that is continuously filming, and after a trigger saves 30 seconds before and 2 minutes after the trigger to disk.Currently the system consists of a raspberry pi, it's camera, and a 1TB SSD connected via USB.Now the client wants to run it off solar power, so power consumption has become an issue. Currently the system uses 4.1W while filming into the ram, and 5.3W while filming, converting it into a h264 file, and dumping it into the SSD.I would like to minimize the energy consumption. Do you know of a platform that can do this task more efficiently?Kind regards,Cedric

author: Psi
author_rank: Super Contributor
timestamp: March 27, 2020, 10:42:38 am
content: My first idea is dash cams, they are always recording and some of them can be set to flag an event and save before/after. Usually you flag the event by tapping the device to simulate an impact, but some have buttons.They are also hardware that's designed for a single purpose and some have internal batteries so they probably use less power than a RPi solution.Quick and dirty calc says you would probably need a 25W solar panel and a 100wh battery to run your current system on solar 24/7. Solar panel would be cheap. $20 or so, battery would be more. 100Wh is like two laptop batteries.I guess it depends how many units your client wants. It might be cheaper just to get bigger solarpanel/battery rather than try and design a new system.

author: cedric!
author_rank: Contributor
timestamp: March 27, 2020, 11:05:56 am
content: Thank you Psi.I'll look into dash cams.I think you are overestimating how much power comes off solar panels under worst case conditions. (In the winter).I've seen a graph that shows a solar panel delivers 16 times less energy in the winter than in the summer. Also, the daily graph shows the energy collected is not equal each day, so we need enough battery capacity to smooth it out:Cheers,Cedric

author: Psi
author_rank: Super Contributor
timestamp: March 27, 2020, 12:28:32 pm
content: yeah, quite possible, it was a very quick and dirty calc in my head
A question about questions - Page 1
Forum section: electronics / general

author: PerranOak
author_rank: Frequent Contributor
timestamp: January 31, 2020, 04:38:16 pm
content: When I have an issue writing C for microcontrollers and it is completely to do with the programming side, do I post that here or in the "Programming" forum?Cheers.

author: ebastler
author_rank: Super Contributor
timestamp: February 02, 2020, 04:35:52 pm
content: If the microcontroller implementation has nothing to do with your question, then "Programming" is the better category, I'd say.
SCSI interface - Page 1
Forum section: electronics / general

author: rckanta
author_rank: Contributor
timestamp: July 26, 2020, 06:46:38 am
content: How can I this data to the device from C program?I want to interface this device from Linux.I have used libusb(bulk) to send this data, unfortunately, device dint responded.And I don't have good knowledge of SCSI programming.I need help.Thank you in advance.

author: Simon
author_rank: Unknown
timestamp: July 26, 2020, 02:15:08 pm
content: duplicate thread locked, please don't post duplicate topics it annoys everyone and makes you very unpopular if not banned.
"SiFive Learn Inventor" RISC-V board for education - Page 1
Forum section: electronics / general

author: brucehoult
author_rank: Super Contributor
timestamp: December 03, 2019, 07:24:05 am
content: https://shop.pimoroni.com/products/sifive-inventorhttps://www.prnewswire.com/news-releases/sifive-announces-sifive-learn-initiative-300967210.htmlFreeRTOS, MicroPython, WIFI & Bluetooth, standard Micro:bit expansion connector.

author: AG7CK
author_rank: Regular Contributor
timestamp: December 17, 2019, 02:21:05 am
content: @brucehoultI just (pre-)ordered a board from the first link in your post over. It seems I may get it this month or primo 2020.Apart from the passage "Access the Getting Started Guide and FreeRTOS Download athttps://github.com/sifive/Amazon-FreeRTOS.", I can find no references to hands on practical product information (e.g. edge connector pinout etc.) for the board.After a bit searching I foundhttps://github.com/sifive/Amazon-FreeRTOS/blob/master/Getting%20Started%20Guide.pdf. I can see no table or figure of the edge connector.The linkhttps://github.com/sifive/Amazon-FreeRTOS/blob/master/DataSheet.pdfcontains no more than the string "Place holder for Data Sheet".A search on the web gave me no further concrete board info regarding the edge connector. If more technical information exists and is public, could you please post/link here.(If the edge connector is fully physically identical with/to BBC micro:bit, please say so. There is plenty of documentation and connectors / breakouts to be bought for that board).Thanks

author: brucehoult
author_rank: Super Contributor
timestamp: December 17, 2019, 03:02:03 am
content: As you'd expect from how it looks, the connector is intended to be compatible with micro:bit accessories.I'm told full documentation will drop when the board ships.I had a play with some of the boards at the SiFive booth at the RISC-V Summit, but haven't had a chance to check them out properly.
Extra-tall Raspberry Pi 3b+ case? - Page 1
Forum section: electronics / general

author: mortrek
author_rank: Contributor
timestamp: January 18, 2020, 04:49:46 pm
content: I need a case that's plastic/modifiable and about 2.5"/~60mm tall. I've looked around and cannot seem to find one this tall. I have a couple different hats, one of which is custom made.Do I need to roll my own? I'm not experienced with 3d printing/modeling, so I'd probably just have to try to find a project box and cut it up. I wanted a case that was a good fit though, since the whole thing will be placed in a larger enclosure and I would like to keep space use in it minimized. Most project boxes/enclosures are not an appropriate set of dimensions for this project, and would end up with a lot of empty wasted space.Thank you.

author: NiHaoMike
author_rank: Super Contributor
timestamp: January 18, 2020, 11:23:55 pm
content: Just learn to do some CAD and design it yourself. It's not that hard.

author: ebastler
author_rank: Super Contributor
timestamp: January 20, 2020, 07:52:25 pm
content: This one claims to be exactly 60mm high. Looks a bit drab, but may do the job:https://www.amazon.com/HighPi-Raspberry-Pi-Case-HiFiBerry/dp/B016954T3IGoogle image search also shows some transparent "HighPi" cases, but at furst glance I did not see one for the Pi 3 that was actually available. Maybe worth some digging if the form factor works for you but you don't like the black.