To automatically take data of all interfaces like ADC, Audio, Enternet, Camera etc save to file and later replay them
Hi All,
I want to develop an application( may be a automated script which executes by default on boot up ) which takes backup of all the running live data( logs data in to files) on the various interfaces( like ethernet, ADA, Audio, camera, wifi, etc..... ) on my single-board-computer which is running on embeddedlinux ( may be Debian, ubunutu etc). - THis is first step of my project. Later I should be able to replay all this data later for offline analysis.( that is later step) Also this application will be further extended as TrueNAS application where I should be able to transfer this data to other units over the network and similarly able to receive the data from other units over the network. ( this is much more later step). Please provide some guidance with some documentation / working sample python programs/script/etc first step for how to take live back of all the interfaces on my SBC |
Quote:
If you ask a clear question and provide details, we can try to help. And you are going to have to show your own efforts as well. |
As posted it is impossible to provide any help without knowing anything about your embedded system or other hardware that connects to the SBC.
Recording analog signals depends on the hardware and how the operating system "interfaces" with the hardware. Does playback imply you want to recreate the original signal or just digital data? That might determine how the data is recorded. Do you want the playback of all signals to be synced together? |
Quote:
Honestly, this sounds like they're trying to build some sort of network logging/hacking tool, to surreptitiously record things for 'offline analysis' (after the device is retrieved?). |
Quote:
Quote:
Quote:
Any recommendations from you is welcome. What about Nvidia's Jetson modules SOMs? can we use them for such type of application any idea. I had recently worked on NVidia Jetson agx xavier SOM - Jetpack version 5.1.2 , Linux for tegra version(L4T) 35.4.1, its ubuntu flavour(20.02 or something) only customizing various interfaces like audio, CAN, GPIO, Camera, HDMI etc where I had modified device tree files , installed some third party drivers etc to make the system work. Quote:
I will try list out assuming these will be there as of now: GPIO, CAN, ETHERNET, USB, HDMI, AUDIO CAMERA, ADC, 5G Cellular GPS, Bluetooth Quote:
Quote:
|
Quote:
Quote:
I know we use "aplay" to play a audio file and "arecord" command to record voice. How to embedded these commands to in a common script which as other commands/instructions to record data from other interfaces like CAN, ethernet, wifi etc. Just want a head up about these. Any samples regarding the same would be helpful to study and start off with. Quote:
Quote:
Also I want to know, if we can write any application using C/Python/Shell scripts on the TrueNAS so save the local hardware interfaces data in to file? |
Quote:
for example audio data will be in .wav file format Camera images will be in raw bayer format or for some it will being compressed format like jpeg, png etc ADC data can be saved in the .txt file Ethernet port data can be saved in some file format Please let me know, if my understanding correct. Quote:
Nothing surreptitious here. Its requirement for our project. Could you please tell me if we can develop interfaces data recording application this on a trueNAS Operating system? or we should do in on some embedded linux operating system residing on some hardware. or trueNAS and this data recorder application which we are planning to implement are two different things and independent to each other? Thanks. |
Quote:
Quote:
Want to develop an interface to a trueNAS?? Yes, you can...this is the part of your project that *YOU* are going to do, right??? Quote:
Again; provide actual details and show us your efforts. |
Except for the camera if the primary function is to record interface data then expecting all possible types of interfaces is not practical. CAN or Ethernet might indicate it is part of a bigger system or project but omeone has to define the exact requirements.
How to record ADC data depends on the actual input voltage, how fast it changes, the range, resolution etc. GPIO can be input or output, where is the signals coming from and how fast does it change. GPS data can be serial port, TTL etc. USB as serial data, ASCII or binary. I2S is a serial data protocol. Do you want to record raw data i.e. the actual signals and clock or just the PWM data from the audio device? linux is close but not a real time operating, recording latency might be important. Depending on what you actually record using a NAS as a storage media may not meet your bandwidth requirements. |
Quote:
Thanks for the updates. Sure. I will discus with the concerned people and get the actual requirements in detail. Quote:
Quote:
However, if the data recorded is local on the given unit, then latency and bandwidth might not be a issue because we are not capturing data over the network with data written on the NAS storage device. Just incase, just wanted to ask if Lynx would be a better real time operating system for such an application. let us know your thought on this. |
Quote:
Quote:
Quote:
Quote:
Quote:
|
Without knowing anything about the project it isn't possible to say whether or not you need a RTOS or say whether or not it could run via TrueNAS. It seems like the overhead of all the builtin services of the NAS would not be good.
|
Quote:
Quote:
Quote:
Quote:
Quote:
|
Quote:
|
The ethernet capture would be done with tcpdump, would it not?
|
All times are GMT -5. The time now is 04:33 AM. |