Re: LCD screen for your dockstar (cheap! <$5) December 31, 2010 05:29PM |
Registered: 13 years ago Posts: 261 |
Re: LCD screen for your dockstar (cheap! <$5) December 31, 2010 08:47PM |
Registered: 13 years ago Posts: 128 |
Re: LCD screen for your dockstar (cheap! <$5) January 01, 2011 01:23PM |
Registered: 13 years ago Posts: 261 |
char *builtin_statistic(char *name,int name_len) { switch (*name) { case 'u': /* 'u' is first letter of "ups" */ { if (name_len==3 && strncmp(name,"ups",3)==0) /* check statistics name matches "ups" */ { /* this is where the code goes to read in the statistic */ FILE *f=fopen("/var/log/apcupsd.status","r"); if (f) { static char value[64]; /* some space to hold the value we're going to read */ char char line[4096]; /* some space to hold each line of the file we read */ /* read to the 12th line... */ int i; for (i=1;i<12;i++) fgets(line,sizeof(line),f); fclose(f); /* extract the statistic from starting column 12 and null terminate */ strncpy(value,line+12,4); value[4]=0; return value; } } } break; ...Disclaimer: I haven't tried any of this and I don't have a UPS :-)
Re: LCD screen for your dockstar (cheap! <$5) January 01, 2011 08:16PM |
Registered: 13 years ago Posts: 18 |
Hades
Re: LCD screen for your dockstar (cheap! <$5) January 05, 2011 11:39AM |
Re: LCD screen for your dockstar (cheap! <$5) January 05, 2011 12:36PM |
Registered: 13 years ago Posts: 10 |
system "dd if=fwimage-seg0.bin of=lookforme.bin bs=1 skip=$x count=12; done";should be
system "dd if=fwimage-seg0.bin of=lookforme.bin bs=1 skip=$x count=12";
../../../cc65/src/da65/da65 -S 0x4000 --cpu 65C02 fwimage-seg0.bin | lessThe first one, the script uses this adresses: LEN0=$36c, LEN1=$36d, LEN2=$36e, LEN3=$36f
L6B2B: lda $0213 sta $037B lda $0214 sta $037A stz $036E stz $036F lda $0216 stz $036E lda $0217 sta $036D asl $036D rol $036E rol $036FThe second occurence: LEN0=$370, LEN1=$371, LEN2=$372, LEN3=$373
L6BA5: lda $0214 sta $B3 lda $0213 sta $B4 stz $0372 stz $0373 lda $0216 stz $0372 lda $0217 sta $0371 asl $0371 rol $0372 rol $0373which finally leads me to question b) :-)
../../../cc65/src/da65/da65 -S 0x4000 --cpu 65C02 fwimage-seg1.bin | lessshows me this:
L430C: lda $95 and #$F0 cmp #$70 beq L435B lda #$F4 sta $8000 lda $0333 sta $8000 lda #$F6 sta $8000 lda $0335 sta $8000 lda #$F5 sta $8000 lda $032E sta $8000 lda #$F7 sta $8000 lda $0330 sta $8000so CTRTYPE must be 1, right?
Re: LCD screen for your dockstar (cheap! <$5) January 05, 2011 12:44PM |
Registered: 13 years ago Posts: 10 |
Re: LCD screen for your dockstar (cheap! <$5) January 05, 2011 05:07PM |
Registered: 13 years ago Posts: 28 |
Re: LCD screen for your dockstar (cheap! <$5) January 05, 2011 06:01PM |
Registered: 13 years ago Posts: 261 |
Re: LCD screen for your dockstar (cheap! <$5) January 05, 2011 06:20PM |
Registered: 13 years ago Posts: 28 |
Re: LCD screen for your dockstar (cheap! <$5) January 06, 2011 06:13AM |
Registered: 13 years ago Posts: 10 |
Yes, the script went on, but i saw the error on the console and did not know if something was going wrong..Quote
petergunn
> a) bug/ dd / line 75
Yes, this is a bug but it shouldn't stop the script creating a suitable hack
Oh no.. i tried the second one.. more about it later..Quote
petergunn
> b) The point, where LEN0,LEN1,LEN2,LEN3 are determined. The searched sequence is found multiple times.
Not sure [...] If it doesn't work then try the other one :-)
Ok, i just wanted to be sure. I am very impressed how you managed to put these regex together and that it works for most parts.. for me this is (nearly) a write-only language..Quote
petergunn
> so CTRTYPE must be 1, right?
Certainly looks like it. All my devices are CTRTYPE=0 so the detection code for type 1 has not really been tested.
Thats what i thought. Ok.Quote
petergunn
> d) Values of OFFX, OFFY
OFFX and OFFY are normally either 0 or 4. They certainly shouldn't be higher than ~10.
Today, i flashed the backup of the original fw, compiled the hack with the other addresses (see b)) and flashed that.Quote
petergunn
It sounds like you're almost there. Can you give more detail (or post a pic) of what the output looks like?
Jan 7 12:14:38 xps kernel: [42508.113664] usb 2-3.4: new full speed USB device using ehci_hcd and address 11 Jan 6 12:14:39 xps kernel: [42508.208922] usb 2-3.4: New USB device found, idVendor=1403, idProduct=0001 Jan 6 12:14:39 xps kernel: [42508.208931] usb 2-3.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 Jan 6 12:14:39 xps kernel: [42508.208938] usb 2-3.4: Product: Flash Disk Jan 6 12:14:39 xps kernel: [42508.208943] usb 2-3.4: Manufacturer: USB Jan 6 12:14:39 xps kernel: [42508.209178] usb 2-3.4: configuration #1 chosen from 1 choice Jan 6 12:14:39 xps kernel: [42508.210416] scsi6 : SCSI emulation for USB Mass Storage devices Jan 6 12:14:44 xps kernel: [42513.210827] scsi 6:0:0:0: Direct-Access SITRONIX MULTIMEDIA 0.09 PQ: 0 ANSI: 0 CCS Jan 6 12:14:44 xps kernel: [42513.212028] sd 6:0:0:0: Attached scsi generic sg2 type 0 Jan 6 12:14:44 xps kernel: [42513.213895] sd 6:0:0:0: [sdb] 4096 512-byte logical blocks: (2.09 MB/2.00 MiB) Jan 6 12:14:44 xps kernel: [42513.214501] sd 6:0:0:0: [sdb] Write Protect is off Jan 6 12:14:44 xps kernel: [42513.216384] sdb: unknown partition table Jan 6 12:14:44 xps kernel: [42513.252030] sd 6:0:0:0: [sdb] Attached SCSI removable diskSomewhere around here i started to flash
Jan 6 12:15:22 xps kernel: [42552.064453] usb 2-3.4: reset full speed USB device using ehci_hcd and address 11 Jan 6 12:15:53 xps kernel: [42582.488433] usb 2-3.4: reset full speed USB device using ehci_hcd and address 11 Jan 6 12:16:23 xps kernel: [42612.916412] usb 2-3.4: reset full speed USB device using ehci_hcd and address 11 Jan 6 12:16:34 xps kernel: [42623.233579] usb 2-3.4: reset full speed USB device using ehci_hcd and address 11 Jan 6 12:16:44 xps kernel: [42633.477722] sd 6:0:0:0: Device offlined - not ready after error recovery Jan 6 12:16:44 xps kernel: [42633.477742] sd 6:0:0:0: [sdb] Unhandled error code Jan 6 12:16:44 xps kernel: [42633.477748] sd 6:0:0:0: [sdb] Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK Jan 6 12:16:44 xps kernel: [42633.477756] sd 6:0:0:0: [sdb] CDB: Write(10): 2a 00 00 00 00 22 00 00 43 00Now this seems to be the disconnect after flashing (when the display shows the black screen and the flash script prompts to dis- and reconnect)
Jan 6 12:16:44 xps kernel: [42633.481276] usb 2-3.4: USB disconnect, address 11 Jan 6 12:16:44 xps kernel: [42633.565659] usb 2-3.4: new full speed USB device using ehci_hcd and address 12 Jan 6 12:17:14 xps kernel: [42663.992430] usb 2-3.4: new full speed USB device using ehci_hcd and address 13 Jan 6 12:17:45 xps kernel: [42694.208396] usb 2-3.4: new full speed USB device using ehci_hcd and address 14 Jan 6 12:17:55 xps kernel: [42704.524568] usb 2-3.4: new full speed USB device using ehci_hcd and address 15...and so on. when i keep the device connected to the usb, there are more messages like the last 4 (with increasing address)
Re: LCD screen for your dockstar (cheap! <$5) January 06, 2011 07:34AM |
Registered: 13 years ago Posts: 10 |
Re: LCD screen for your dockstar (cheap! <$5) January 06, 2011 12:41PM |
Registered: 13 years ago Posts: 10 |
LD_LIBRARY_PATH=./libst2205 ./setpic/setpic /dev/sdb setpic/test_WithMarks.png
7161dc162554cada3c0ea9ffd6bce79a2c592a35 fwimage_keypix_vevoto.bin
Re: LCD screen for your dockstar (cheap! <$5) January 06, 2011 05:40PM |
Registered: 13 years ago Posts: 261 |
Re: LCD screen for your dockstar (cheap! <$5) January 06, 2011 09:23PM |
Registered: 13 years ago Posts: 128 |
Re: LCD screen for your dockstar (cheap! <$5) January 07, 2011 05:06AM |
Registered: 13 years ago Posts: 10 |
Quote
petergunn
I don't think you can reflash without the battery connected though - at least that is the case with the Innovage and the Coby picframes.
Hm. It seems, that the keypix needs its battery, too.Quote
rat
Interesting. I was able to flash my Shift3 without the battery connected.
Done. Result in the two attached images.Quote
petergunn
I would try reflashing with OFFX=112 and OFFY=112 in the spec file.
CMP_VAR1=$037A CMP_VAR2=$037B PATCH_AT=$2B9A EMPTY_AT=$2D40 SEND_CSW=$2A62 LEN0=$36C LEN1=$36D LEN2=$36E LEN3=$36F CONF_XRES=128 CONF_YRES=128 CONF_BPP=16 CONF_PROTO=0 CTRTYPE=1 OFFX=112 OFFY=112
Re: LCD screen for your dockstar (cheap! <$5) January 07, 2011 12:35PM |
Registered: 13 years ago Posts: 28 |
Re: LCD screen for your dockstar (cheap! <$5) January 07, 2011 02:56PM |
Registered: 13 years ago Posts: 261 |
if (h->proto == PROTO_PCF8833) {
if (h->oldpix == NULL) {
pcf8833_send_partial(h, pixinfo, 0, 0, h->width - 1, h->height);
to
if (h->proto == PROTO_PCF8833) {
if (1) {
pcf8833_send_partial(h, pixinfo, 0, 0, h->width - 1, h->height);
for (y=ys; y<=ye; y++) { for (x=xs; x<=xe; x++) {To...
int y1,x1,cx=112,cy=112; for (y1=ys; y1<=ye; y1++) { for (x1=xs; x1<=xe; x1++) { y=(y1+cy)&0x7f; x=(x1+cx)&0x7f;Try changing cx and cy coordinates and recompiling to move the image around.
Re: LCD screen for your dockstar (cheap! <$5) January 11, 2011 04:41AM |
Registered: 13 years ago Posts: 10 |
ebay.de: Keypix Digitaler Mini Fotorahmen (3,8 cm (1,5 Zoll) DQuote
vevotoHi Hades, i got mine from ebay.de. I searched for 'keypix'. From time to time, there is one available from private sellers...Quote
Hades
[...] as always you cant get the cool stuff in the EU -.- [...] in the EU (mainly germany) [...]
jowi
Re: LCD screen for your dockstar (cheap! <$5) January 13, 2011 11:21AM |
Re: LCD screen for your dockstar (cheap! <$5) February 09, 2011 10:01AM |
Registered: 13 years ago Posts: 218 |
Re: LCD screen for your dockstar (cheap! <$5) February 09, 2011 06:10PM |
Registered: 13 years ago Posts: 261 |
Re: LCD screen for your dockstar (cheap! <$5) February 09, 2011 06:45PM |
Registered: 13 years ago Posts: 218 |
Re: LCD screen for your dockstar (cheap! <$5) February 09, 2011 07:21PM |
Registered: 13 years ago Posts: 261 |
Re: LCD screen for your dockstar (cheap! <$5) February 10, 2011 06:49AM |
Registered: 13 years ago Posts: 218 |
Re: LCD screen for your dockstar (cheap! <$5) February 10, 2011 01:06PM |
Registered: 13 years ago Posts: 9 |
Re: LCD screen for your dockstar (cheap! <$5) February 10, 2011 02:14PM |
Registered: 13 years ago Posts: 218 |
Re: LCD screen for your dockstar (cheap! <$5) February 10, 2011 09:36PM |
Registered: 13 years ago Posts: 261 |
apt-get install sdcc python-devCompile:
cd /tmp wget http://tech.section5.ch/files/dpfhack-0.0alpha.tgz tar xvfz dpfhack-0.0alpha.tgz cd dpf/src perl -pi -e 's/app_clr.ihx jumptbl.ihx//' Makefile # change Makefile makeI don't have time to test if the hack works right now.
Re: LCD screen for your dockstar (cheap! <$5) February 11, 2011 03:56AM |
Registered: 13 years ago Posts: 218 |
Re: LCD screen for your dockstar (cheap! <$5) February 12, 2011 04:03PM |
Registered: 13 years ago Posts: 261 |