Jal language help - diyAudio
Go Back   Home > Forums > Design & Build > Software Tools

Software Tools SPICE, PCB CAD, speaker design and measurement software, calculators

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 14th April 2015, 10:09 AM   #1
diyAudio Member
 
Join Date: Aug 2009
Default Jal language help

I want a big help
The goal is to change the "welcome message" in a software written in Just)Another)Language).
This software is in a Pic18f452, controlling a number of relais,an LCD 2x16,and the Pga 2311A.
This article is publised in Elektor magazine as "High end preamplifier"
Here is athour's website.ben hinrichs - dh3ben
The project is in the "electronics" directory.
Many thanks to rsavas who promised help

Last edited by thimios; 14th April 2015 at 10:28 AM.
  Reply With Quote
Old 14th April 2015, 02:29 PM   #2
diyAudio Member
 
Join Date: May 2002
Location: Great City of Turnhout, Belgium
Blog Entries: 7
Can you open the hex file of the program with something like notepad? Then search for the string of the current welcome message and replace it, taking care that the new message must have EXACTLY the same length. Then save and transfer to the processor.

Edit: The welcome string is in init_vv. I think the JAL compiler is free from its developer? Then it's just a case of changing the text and re-compile and put in the controller.
Or just email the guy who developed it - it's a 2-min job if you are set up for it, chances are he likes that you build it and would be happy to do it for you!

Jan
__________________
Any sufficiently advanced troll is indistinguishable from a genuine kook - Clarke paraphrased
Check out Linear Audio!

Last edited by jan.didden; 14th April 2015 at 02:53 PM.
  Reply With Quote
Old 14th April 2015, 03:14 PM   #3
diyAudio Member
 
Join Date: Aug 2009
Quote:
Originally Posted by jan.didden View Post
Can you open the hex file of the program with something like notepad? Then search for the string of the current welcome message and replace it, taking care that the new message must have EXACTLY the same length. Then save and transfer to the processor.

Edit: The welcome string is in init_vv. I think the JAL compiler is free from its developer? Then it's just a case of changing the text and re-compile and put in the controller.
Or just email the guy who developed it - it's a 2-min job if you are set up for it, chances are he likes that you build it and would be happy to do it for you!

Jan
Hi jan ,i have already downloaded Jal and the sourcecode but do not know the procedur exactly.So i will waiting for someone to guide me step by step.
Thanks for your interesting,i apreceate this!

Last edited by thimios; 14th April 2015 at 03:16 PM.
  Reply With Quote
Old 14th April 2015, 03:43 PM   #4
rsavas is offline rsavas  Canada
diyAudio Member
 
Join Date: Aug 2012
Location: Baldwin,Ontario
right on, Jan has one way to do it to.
since it is ascii and you know the exact string length, do a simple substitution of ascii characters. take a look at your ascii tables.
i think i emailed ben once = no reply?
the compiler is command driven, so you have to get a ms-dos command window going.
change dir to the run directory where the source code resides.
at the prompt
>jal & return 'to get the command line options, so you know the how to insert the {file name} & {options}
"jal" will generate a hex file, if it runs error free. you need a programming plug made up and attached to the processor, so that you can access the mcu programming pins, with your programmer and program the device. that is about it in a nut shell without all the details. btw i have a mplab icd3, i think i used it once and then moved on to atmel xmega. lets see where you end up.
good luck Rick

Last edited by rsavas; 14th April 2015 at 03:47 PM.
  Reply With Quote
Old 14th April 2015, 05:20 PM   #5
diyAudio Member
 
Join Date: May 2002
Location: Great City of Turnhout, Belgium
Blog Entries: 7
Quote:
Originally Posted by thimios View Post
Hi jan ,i have already downloaded Jal and the sourcecode but do not know the procedur exactly.So i will waiting for someone to guide me step by step.
Thanks for your interesting,i apreceate this!
There's a setup file in the .zip which has the command line arguments iirc.

Jan
__________________
Any sufficiently advanced troll is indistinguishable from a genuine kook - Clarke paraphrased
Check out Linear Audio!
  Reply With Quote
Old 14th April 2015, 05:47 PM   #6
rsavas is offline rsavas  Canada
diyAudio Member
 
Join Date: Aug 2012
Location: Baldwin,Ontario
there is a batch file that you run from the command line
originally,
@ECHO OFF
z:\elektronik\software\jal\jal0459\jal -sz:\elektronik\software\jal\jal0459\lib -ssetup %1 %2 %3 %4 %5 %6 %7 %8 %8 %9 _vv.jal
copy /Y _vv.hex ..\..\..\..\icprog1.05

I changed mine to be

@ECHO OFF
d:\JAL\jal-0.4.60\jal-0.4.60.win32\jal -sd:\JAL\jal-0.4.60\jal-0.4.60.win32\lib -ssetup %1 %2 %3 %4 %5 %6 %7 %8 %8 %9 _vv.jal

so change to where you installed jal on your computer.
  Reply With Quote
Old 14th April 2015, 07:03 PM   #7
diyAudio Member
 
Join Date: Aug 2009
Please look here.
Is it nessesary to open all files included to start compile?
Attached Images
File Type: jpg jal 2 pream..JPG (112.4 KB, 62 views)

Last edited by thimios; 14th April 2015 at 07:06 PM.
  Reply With Quote
Old 14th April 2015, 07:15 PM   #8
rsavas is offline rsavas  Canada
diyAudio Member
 
Join Date: Aug 2012
Location: Baldwin,Ontario
that is it!! but

you are not doing what I have written above. use the original compiler first, before you go off and use a new version of the software.

read the source code, it says in "_VV.jal",
-- Thanks to the JAL-Team for this great compiler
-- To be compiled against jal0459

once you have that figured out then go and try out the new version.
  Reply With Quote
Old 14th April 2015, 10:47 PM   #9
carcass is offline carcass  Portugal
diyAudio Member
 
Join Date: Oct 2006
As mr. Ben Hinrichs didn't use strings in the source code, but instead the lcd procedure runs each character one at a time, the string PreAmp v1.000 elektor etc... won't be "visible" in the hex file, so, I've tried to assemble it back to pic18F code, but unfortunately can't seem to find the data (I didn't try MPLAB as I do not have it installed though...)
So the easiest way would be indeed to recompile it again as jan and rsavas stated
  Reply With Quote
Old 15th April 2015, 03:29 PM   #10
diyAudio Member
 
Join Date: Aug 2009
Quote:
Originally Posted by rsavas View Post
there is a batch file that you run from the command line
originally,
@ECHO OFF
z:\elektronik\software\jal\jal0459\jal -sz:\elektronik\software\jal\jal0459\lib -ssetup %1 %2 %3 %4 %5 %6 %7 %8 %8 %9 _vv.jal
copy /Y _vv.hex ..\..\..\..\icprog1.05

I changed mine to be

@ECHO OFF
d:\JAL\jal-0.4.60\jal-0.4.60.win32\jal -sd:\JAL\jal-0.4.60\jal-0.4.60.win32\lib -ssetup %1 %2 %3 %4 %5 %6 %7 %8 %8 %9 _vv.jal

so change to where you installed jal on your computer.
Is it possible to run this under winXP?
Where i must change the "welcome message"?
Where i must save files ?
I want more details if it's possible.
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Universal language scott wurcer The Lounge 4 3rd December 2011 03:36 PM
The relationship between Language and Thought thadman The Lounge 69 10th May 2011 10:22 PM
lyrics-language question Juergen Knoop Music 3 23rd July 2007 12:21 PM
Language Help palesha Solid State 6 25th August 2002 03:51 PM


New To Site? Need Help?

All times are GMT. The time now is 11:38 PM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2015 DragonByte Technologies Ltd.
Copyright 1999-2015 diyAudio

Content Relevant URLs by vBSEO 3.3.2