Page 1 of 1
write custom script to a file
Posted: Tue Jul 11, 2023 6:38 pm
by ignasiR
Sorry to bother, I think its a simple question, but I didn't find info on it, not in the forum, and really its easy...
I have a custom script based on Revelprog script to read DS2430/2431 id chip, and I want to save/dump this 64 bits id to a file, like I do with all eeprom memory..... I tried #FILE, and others..nothing, just read, but not saved,
Is there any automatic/script command to write the ID readed (8 bytes) to disk? I use the automatic mode to connect to my software as a shell execution (and its working pretty cool).
// 1-Wire Read 64-bit unique ID
#SCRIPT HEADER;
SCRIPT:v1.8.0;
#HARDWARE SETTINGS;
HW:1-WIRE,5.0V,SLOW;
#OPERATION;
SW:0,0,1,7,0,0,0,0,0,500;
INSTR:33;
Many thanks for your time, and help, sure that Karma will be back to you

Ignasi Riera
Re: write custom script to a file
Posted: Wed Jul 12, 2023 9:21 am
by ArT
Hi Ignasi, currently automatic mode is only working with write from file operation.
Do you need each ID in separate files or add ID (as separate line) to existing txt file? I'll need to check possibilities and consult it.
Re: write custom script to a file
Posted: Tue Jul 25, 2023 4:42 pm
by ignasiR
Sorry for my late reply...I was in my holidays ...once every 20 years.....
Yes, I need each ID DS2430a in a separate file, or in a separated line, I need to read from outside, from my software.
A file with the ID like the same with dumping memory will be great.
I made a software that sends script to revelprog scripting software and reads mainmemory and writes to a file, but no ID, and I need the ID to check.
Sorry again to bother you, now I will be online.
and many many thanks for help me.
Ignasi-
Re: write custom script to a file
Posted: Thu Jul 27, 2023 7:39 am
by ArT
I'll consult this case and back to you with information within few days.
Re: write custom script to a file
Posted: Thu Jul 27, 2023 8:27 am
by ignasiR
Art, Take your time, I'm not in hurry, only stuck in this for my external app. I know that you are busy for sure.
many thanks. Have a nice day and don't stress too much.
Ignasi
Re: write custom script to a file
Posted: Tue Aug 22, 2023 4:58 pm
by ignasiR
HI Art, any news on reading DS2430 and DS2431 Lasered ID serial from automatic scripting, and write to a file (or in a separated line)?
If you are on holidays, sorry to bother you, and have a nice holidays.
many thanks,
Ignasi
Re: write custom script to a file
Posted: Thu Aug 24, 2023 5:09 pm
by ArT
It should be possible to do (it's already on todo list) but it may take some time. I'm going on vacation in September.
I'll be informing you. Thanks for your patience.
Re: write custom script to a file
Posted: Thu Aug 24, 2023 5:28 pm
by ignasiR
have a nice vacation art, thanks to answer in you holiday time, and sorry to disturb you.
When ready, if you remember please notify me
Best wishes,
ignasi
Re: write custom script to a file
Posted: Mon Oct 23, 2023 3:30 pm
by ArT
Hi Ignasi,
Thank you for your patience. I'm sharing you beta version with possibility to save to external bin file for custom script read operations:
https://www.dropbox.com/t/TCsamtZeRn6Ag280Here you have example script which will read 1-wire device ID and save it to extenal file located in main directory of C drive.
Generaly in new version you will need to add single command to script:
#SAVETOFILE="file_path";
where file_path is location + filename, e.g. "C:/filename.bin"
You can add read ID operation to your script (at the end) so it will save additional 8 bytes with ID at the end.
Please test it and let me know what do you think.
Code: Select all
#SCRIPT HEADER;
SCRIPT:v1.9.2;
#HARDWARE SETTINGS;
HW:1-WIRE,4.5V,SLOW;
#OPERATION;
SW:0,0,1,7,0,0,0,0,0,500;
INSTR:33; // Read 64-bit ID
#SAVETOFILE="C:/1wireId.bin";
Re: write custom script to a file
Posted: Tue Oct 24, 2023 8:14 am
by ignasiR
Suuuuuperrrrrr!!!
I will test inmediately and say to you the results.
I think its important to have many times the serial, many companies uses as ID for the chips.
Many thanks Art, If I can help you in anything on my side, will be happy to do.