Skip to main content

Messages

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

Messages - anton.todorov

31
USB Infrared Toy / Re: irtoy recorder perl script
You are correct. Just updated the wiki with instructions how to install needed perl module depending on the platform (ActiveStatePerl, Ubuntu, RedHat, FreeBSD)
32
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
33
USB Infrared Toy / Re: irtoy recorder perl script
committed new version of irtoy_record.pl with linux/windows compatibility, the functions are in separate USBIRToy.pm, added some comments.

BR,
Anton
34
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
36
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
37
USB Infrared Toy / Re: ir2PNG Perl script
Hi Ian,
I am glad that the scripts are useful. There are a lot of hard coded fine tuning parameters but they are working fine with the remotes I have. Currently working on another remote, yet it seems to me like a supplemented NEC protocol. It is for this remote. Details will bi posted on separate topic.

BR,
Anton
38
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
39
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
40
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
42
Open Bench Logic Sniffer / Re: Any plans for a buffer wing?
Well this weekend I just soldered male pins on my OLS. The picture of the buffer wing at GF has male pins too. This sound like problem for me...
So is it possible to sell the wing without TH parts soldered(as kit with SMD parts only)?
43
Bus Pirate Development / Re: new branch in the svn (newterm)
IMHO pin numbers instead of cable colours is better because BP is sold without cables (as in my case) and the cables are additional option. In my area it is difficult to find any flat cable what to say about coloured in the exact order so I am using piece of cable from old floppy drive data cable...
44
Bus Pirate Support / Re: Microwire EEPROM Help
AFAIK most of the memory chips has inverted logic of CS signal (/CS), so  '[' means 'drive CS pin low (0V) and ']' means drive CS pin high (Vcc). According to the datasheet in your case you have straight CS that's why you must use them swapped.
45
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.01652426488session_write_close ( )...(null):0
20.01682558104ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01682558880Database_MySQL->query( ).../DatabaseHandler.php:119
40.06262697640Database_MySQL->error( ).../Db-mysql.class.php:273