I have a super basic python script sending strings from a .txt file to an LCD. It works great, but after it runs for a while I get random characters on the LCD that are not present in the .txt file. Is my SD card semi-corrupted?
Sounds like your script is reading data outside of your 'string' source. It is kind of buffer overflow issue.
Related
I uploaded about a 3GB .DAT file into vim. The file contains .DAT file in binary and others in the following language:
"0000030801549200000308015492 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000109500010957REG0001095REGIPY 1989010100010101Y99991231N YYQ REG R"
I am trying to decipher that raw data into a format that I can use and understand using VIM. Does anyone know how I would do this? Or could point me in the direction to solve this problem? This concept is totally new to me and I am just trying to figure out how to get it done.
I'm trying to build a s2p file in simulink using the block "To File" but gives me an odd file with random characters like
fs%($&%%(&
Which looks like when I try to open a jpeg file with block note.
I'm trying a simple RF layout with a single resistive divider and the input and output ports like in figure
anyone knows what is happening here?
The To File block writes a .mat (binary) data file. Opening one as a text file is always going to show odd random characters
To see what's in the file you need to use load to load the saved signal(s) into the MATLAB Workspace.
I've got a little batch file and it looks like this:
.\batchisp.exe –device at32uc3b1512 –hardware usb –operation erase f memory flash blankcheck loadbuffer G3Pro_USB.hex program verify start reset 0
The whole line is fine and works correctly if I run it straight in PowerShell. However, if I run the batch file, it runs this:
.\batchisp.exe ΓÇôdevice at32uc3b1512 ΓÇôhardware usb ΓÇôoperation erase f memory flash blankcheck loadbuffer G3Pro_USB.hex program verify start reset 0
Which does not work, because as you can see, the -'s have changed into ΓÇô's... Can anybody tell me why this is and how to fix it?
This is because the – marks are not - characters. They are actually endashes. These usually are caused by Word's automatic en/emdashing.
Powershell is smart enough to convert the endashes to dashes as "arguments", but cmd is not.
To fix this issue, replace – with -. A regex search/replace that catches all the alternative dash types that works in notepad++ is: [–—‒] to -.
I am using sparkfun micro sd card on an arduino uno for data logging for my sensors. I have no problem to save the results from sensors into one file. Now I wish to save files everytime i restart the arduino without delete the first one. How can I do that?
Thanks.
You can append data by using the fopen() in the append-mode (second parameter "a") or create a new file by checking the existence of the file with Arduinos exist() function. If the file exist, you can parse the string, extract for example a postfix number, increment the postfix, built a new incremented filename and check again whether file exists until there is no such file. Then create a new file with the filename. This allows you for example to have multiple ascending files.
I am uploading many files to server where I need to enter frames resolution - it's much inconvenient to do it "manually" - open each file and then check their properties.
I would like to get a list of all movie files names (in .mpg and .swf format) with information about their screen resolution from windows command line (or PowerShell, or Linux console). How I can do it?
Look at midentify (mplayer tools); The output is not pretty but can easily be parsed so you can present it in the desired format
note: midentify is a wrapper around mplayer -identify IIRC