Convert binary file to csv and then back to the binary format
Hello *nix specialists,
Im working for a non profit organisation in Germany to transport DSL over WLAN to people in areas without no DSL. We are using Linksys WRT 54 router with DD-WRT firmware There are at the moment over 180 router running but we have to change some settings next time. So my idea is, to use the firmware modification kit. After decompressing the original firmware, I get a file calling defaults.bin (inside the attaced file) in which are stored all variables with the correspondending values. I have no informations about the binary format but maybe it would help to take a look in to the C-source: (inside the attaced file)
I think at the end of the code is a function to read the parameters.
Okay back tot the topic.
I want to convert the defaults.bin into a csv text file. Then a script reads from a database the required parameters like IP address, username, password ... and change so the csv file. Then a script should make from the csv file a new (specially for one router) defaults.bin file. At the end, the firmaware modification kit compress all to the firmware file what we can send to each router.
Hi all,
I have a print control file (dflt) for Oracle which is in binary. As I am going to develope an application in Window environment, I would like to reference the dflt file. But it is in binary format and I cannot access it. Anyone can suggest me how to convert the file into text or... (5 Replies)
I'm in the Solaris environment. I want to write data to a file, but I don't want it to be easily read from the C shell. For example, here's my code:
main ()
{
FILE *fo;
fo = fopen ("filename", "w");
fprintf (fo, "This is a test.\n");
fclose (fo);
}
Anyone can open up... (3 Replies)
In Unix/Ksh, when I try to look inside a file it says that the file may be a binary file and if I want to see it anyway. When i say 'yes', it shows me the content filled with unreadable symbols (looks like binary). Is there a command that I can run from the Unix prompt to convert/translate that... (3 Replies)
Hi Team,
Here's the requirement.
I have a image file in jpg format in unix.
Now I need to
i. convert the jpg format to binary format
ii. followed by loading the binary file to Oracle db.
Can anyone help me out?
Thanks
Krishnakanth Manivannan (4 Replies)
dHi,
I have the attached file(actual file can be extracted post unzipping it) & i am trying to use the following code for coversion to hex format.
Starting hex value is 84 which is start of the record & termination is done using 00 00 followed by 84(hex) which i can see in the dump clearly using... (14 Replies)
Hello,
I have a binary csv file that was created on 'Red Hat Enterprise Linux Server release 6.6'. Now we have transferred all files on Ubuntu 16.04.2 LTS/xenial
On opening the file in Ubuntu, there are special characters
... (8 Replies)
Dear Team
We use DB2 v10.5 and using DBArtisan tool
Can someone please guide how to convert digits to binary numbers using db2 feature.
Ex> for number 9 , binary should be 1001 ( 8+1)
Any help appreciated. Thanks (2 Replies)
Discussion started by: Perlbaby
2 Replies
LEARN ABOUT FREEBSD
bcmfw
BCMFW(8) BSD System Manager's Manual BCMFW(8)NAME
bcmfw -- firmware download utility for Broadcom BCM2033 chip based Bluetooth USB devices
SYNOPSIS
bcmfw [-h] -f firmware_file_name -m mini-driver_file_name -n device_name
DESCRIPTION
The bcmfw utility downloads the specified mini-driver and firmware files to the specified device.
This utility will only work with Broadcom BCM2033 chip based Bluetooth USB devices. The identification is currently based on USB vendor
ID/product ID pair. The vendor ID should be 0x0a5c (USB_VENDOR_BROADCOM) and the product ID should be 0x2033.
Due to copyright issues I will no longer provide mini-driver and firmware files for the device. These files can be obtained from the Linux
BlueZ bluez-firmware package.
Visit http://www.bluez.org/download.html for details.
I am using the following files from the bluez-firmware-1.0 package:
MD5 (BCM2033-MD.hex) = 5580317158d07fc4ace90af04f8e1c73
MD5 (BCM2033-FW.bin) = b4e142b3272cfe5a84b32fda6b4b032f
The options are as follows:
-f firmware_file_name
Specify firmware file name for download.
-h Display usage message and exit.
-m mini-driver_file_name
Specify mini-driver file name for download.
-n device_name
Specify device name.
FILES
BCM2033-MD.hex Mini-driver image.
BCM2033-FW.bin Firmware image.
/dev/ubtbcmfwN.EE Endpoint EE of device N.
EXIT STATUS
The bcmfw utility exits 0 on success, and >0 if an error occurs.
EXAMPLES
To download the firmware into the /dev/ubtbcmfw0 device:
bcmfw -n ubtbcmfw0 -m BCM2033-MD.hex -f BCM2033-FW.bin
SEE ALSO ubtbcmfw(4), ugen(4)AUTHORS
Maksim Yevmenkin <m_evmenkin@yahoo.com>
BUGS
Most likely. Please report if found.
BSD March 31, 2003 BSD