Skip to main content

Topics

This section allows you to view all Topics made by this member. Note that you can only see Topics made in areas you currently have access to.

Topics - anton.todorov

1
Bus Pirate Development / Parallel read/write extension card?
Following another thread I started thinking about BusPirate extension card that will allow read/write to NAND chips. Probably it will be slower than dedicated(more expensive) devices like ProgSkeet...

BusPirate is the king in the serial IO world(at least for me) with an extension card it will step in the Parallel world too.

So what buffers are suitable?

Best Regards,
Anton
2
Bus Pirate Support / Binary mode - write-then-read
Hi,
I am trying to read 2MB SPI EEPROM in binary mode and could not manage to use write-then-read function. There is something i don't understand:
Quote
1. First send the write then read command (00000100)
2. The next two bytes (High8/Low8) set the number of bytes to write (0 to 4096)
3. The next two bytes (h/l) set the number of bytes to read (0 to 4096)
above is clear but next:
Quote
4. If the number of bytes to read or write are out of bounds, the Bus Pirate will return 0x00 now
Else if the number of bytes are in the bounds, does BP return something, or do nothing?

Quote
HiZ>i
Bus Pirate v3a
Firmware v5.10 (r559)  Bootloader v4.3
DEVID:0x0447 REVID:0x3043 (24FJ64GA002 B5)
http://dangerousprototypes.com
3
General discussion / PCB design software
In other thread there is discussion about PCB software, their best and worst sides etc. But main topic is about a KiCAD tutorial.

I suggest to leave the other topic and  move the flames here.

Lets first figure out what we have on the shelves:

gEDA
Price: free GPL
OS: Linux, MacOS X

KiCAD
Price: free GPL
OS: Linux, MacOS X, Windows

DesignSpark PCB
Price: free
OS: Windows

Eagle
Price: (free or $49) to $1494
OS: Linux, MacOS X, Windows

NI Multisim
Price: educational to ~$2600
OS: Windows

Target3001
Prices: free to ~3000EUR
OS: Windows

Proteus
Price: 200EUR to 4545EUR
OS: Windows, other?

Altium Designer
Price: ~$5000
OS: Windows, other?

Spice simulation:
LTspice
Price: Free
OS: Windows

At the moment I use freeware version of Eagle, but will try some projects with Target3001( and its integration with PCBfab service). I have KiCAD installed but no projects with it.

What/Why/ PCB software you use?

Best regards,
Anton

edit:
added DesignSpark PCB 10x brain
added NI Multisim 10x arhi
added LTspice
5
USB Infrared Toy / Prescaler setup in sampling mode
Hi,
Reading this wiki page. When setting this value, is it expected IRToy to respond on success/fail as BusPirate?
When sending 0x05 0x0n (n is 0..7) I do not receive response (0 or 1) but when send something with remote, the capture is different, but not as I expected.  See the screen shots. Every capture is with same remote button (Power) code.
I expected that after setting [0x05,0x07] I should capture same data as the default one. When I set [0x05,0x06] I expect to see 2x greater values that i shoud multiply with 21.3333/2=10.6666 to get same value. when set [0x05,0x05] I should receive 4x greater values, and so on... Or I am wrong?

BR,
Anton
6
USB Infrared Toy / irtoy recorder perl script
Hi,
Finally I managed to cleanup the code of my Perl script for recording data from IRToy.
Currently it is working with Win32::SerialPort module (windows only AFAIK).
Change COM4 to other COM port if needed;
There is a 'secret' function to dump (to stdout) the received bytes and the calculated time. To enable this function just create an empty file with name 'irtoy.dump' in the folder where the script is running.

Quote
G:ProjectsEclipse-3.6IRToy>irtoy_record.pl test
Sampling mode enabled!
Press key on remote or CTRL+C to terminate
Processed: test000 min=18(383.9994us), sum=9505.0000, multiply=21.3333, len=400
Processed: test001 min=18(383.9994us), sum=27773.0000, multiply=21.3333, len=1000
Terminating on signal SIGINT(2)

BR,
Anton
7
USB Infrared Toy / PANASONIC EUR648251 decoder perl script
Hi,
This Perl script decodes commands from PANASONIC EUR648251 remoce. The protocol is similar to NEC but with different timings and 6 data bytes encoded.
According  to this lirc file the decoder is working (pre_data is the same and the codes are correct too). The attached bin file contains 'Power','1','2' and '3' button codes.
Quote
G:ProjectsEclipse-3.6IRToy>ir_PAN.pl test000.bin
IR-PAN: 0x40(01000000) 0x04(00000100) 0x05(00000101) 0x43(01000011) 0xfd(11111101) 0xbb(10111011)
IR-PAN: 0x40(01000000) 0x04(00000100) 0x05(00000101) 0x43(01000011) 0xfd(11111101) 0xbb(10111011)
IR-PAN: 0x40(01000000) 0x04(00000100) 0x05(00000101) 0x43(01000011) 0x09(00001001) 0x4f(01001111)
IR-PAN: 0x40(01000000) 0x04(00000100) 0x05(00000101) 0x43(01000011) 0x09(00001001) 0x4f(01001111)
IR-PAN: 0x40(01000000) 0x04(00000100) 0x05(00000101) 0x43(01000011) 0x89(10001001) 0xcf(11001111)
IR-PAN: 0x40(01000000) 0x04(00000100) 0x05(00000101) 0x43(01000011) 0x89(10001001) 0xcf(11001111)
IR-PAN: 0x40(01000000) 0x04(00000100) 0x05(00000101) 0x43(01000011) 0x49(01001001) 0x0f(00001111)
IR-PAN: 0x40(01000000) 0x04(00000100) 0x05(00000101) 0x43(01000011) 0x49(01001001) 0x0f(00001111)

Only last 2 bytes are different so maybe the first four are device descriptors and/or addresses?

BR,
Anton
8
USB Infrared Toy / ir2PNG Perl script
Hi,
Because I am not familiar how to create .ols files and my IRToy cant talk to jawi's OLS client(do not know why) I needed a tool to visualize the data received from the IRToy.
So I wrote an script for reading from irtoy  (the code is ugly) that works almost like the IRToyRedWrite util. Then the dumped bin was passed to this script. The script helped me to have visual impression of the data.

The script require GD::Image perl module!

BR,
Anton
9
USB Infrared Toy / Philips RC-5 decoder script
Perl script using description from here and testing with remote from cheap chinese TV "SANG"
Quote
G:ProjectsEclipse-3.6IRToy>ir_RC5.pl test000.bin
0x00003011 S1:1 S2:1 T:0 Addr:0x00 Cmd:0x11
0x00003011 S1:1 S2:1 T:0 Addr:0x00 Cmd:0x11
0x00003812 S1:1 S2:1 T:1 Addr:0x00 Cmd:0x12
0x00003812 S1:1 S2:1 T:1 Addr:0x00 Cmd:0x12
0x00003013 S1:1 S2:1 T:0 Addr:0x00 Cmd:0x13
0x00003013 S1:1 S2:1 T:0 Addr:0x00 Cmd:0x13
0x00003811 S1:1 S2:1 T:1 Addr:0x00 Cmd:0x11
0x00003014 S1:1 S2:1 T:0 Addr:0x00 Cmd:0x14
0x00003815 S1:1 S2:1 T:1 Addr:0x00 Cmd:0x15
0x00003815 S1:1 S2:1 T:1 Addr:0x00 Cmd:0x15

BR,
Anton
10
USB Infrared Toy / NEC IR protocol decoder
Hi,
The attached perl script is my simple try to decode NEC's IR protocol(details from here). As an single parameter pass a bin file generated by IRToyRecPlay utility.

Usage in cmd prompt:
> ir_NEC.pl dumpfile.bin

Here is sample session:
Quote
G:ProjectsEclipse-3.6IRToy>ir_NEC.pl test000.bin
0x00F7AA55 IR-NEC: Addr1:0x00, Addr2:0xF7, Cmd:0xAA OK
0xFFFFFFFF R
0xFFFFFFFF R
0xFFFFFFFF R
0x00F7EA15 IR-NEC: Addr1:0x00, Addr2:0xF7, Cmd:0xEA OK
0xFFFFFFFF R
0xFFFFFFFF R
0xFFFFFFFF R
0xFFFFFFFF R

BR,
Anton

ps. the RC-5 is almost ready too
11
General discussion / OLS started shipping
I just received notification from Seeed that my order with OLS is shipped!
Lets see how long it will take to arrive in BG...

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01682387104session_write_close ( )...(null):0
20.01712518696ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01712519472Database_MySQL->query( ).../DatabaseHandler.php:119
40.06122658208Database_MySQL->error( ).../Db-mysql.class.php:273