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 - mondalaci

1
USB Infrared Toy / Stuck with IR Toy v2 on Linux
The good news is that my IR Toy v2 gets successfully enumerated as /dev/ttyACM0 on Linux and I also managed to update its firmware to v22. When I execute screen `/dev/ttyACM0 115200` and type "s", "S01" appears and when I point my remote towards the IR Toy v2 and press a button the LED flickers and gibberish gets displayed on the screen.

The bad news is that when I execute `irtoy -d /dev/ttyACM0` it displays "Opening IR Toy on /dev/ttyACM0 at 115200bps..." and gets stuck there. Also, when I execute `irrecord -n -H irman -d /dev/ttyACM0 RemoteXXX.conf` it displays "Hold down an arbitrary button.", then I hold down a button, then it displays "irrecord: gap not found, can't continue" and gets stuck there.

Any ideas?
3
Bus Pirate Support / Connecting RX and TX should echo or shouldn't it?
Hi guys,

I have a Bus Pirate v3 and using 38400 baud 8N1 UART with RX and TX interconnected.  I'd expect in Bus Pirate this scenario to echo the bytes on RX that I send on TX but when live display is enabled it shows:

READ: -f 0x00
READ: -f 0x00
...

without me sending anything.  Is this normal?  How should I echo bytes?

Thanks!
4
USB Infrared Toy / Trying to make the IR Toy 2 work on Linux
Hi guys,

So far it seems that IR Toy 2 recognizes the signals that are sent by a remote control of mine because its LED blinks upon pressing remote control buttons and /dev/ttyACM0 outputs some gibberish, but sending back that stream doesn't make it re-emit the code.

Also when typing "minicom -D /dev/ttyACM0" and typing "t" for the test mode all I can see is gibberish.  I cannot even see the "t" properly echoed.

I was very satisfied with the Bus Pirate and with the Open Logic Sniffer regarding Linux support but my experience with the IR Toy 2 was disappointing so far.  Anyone has made it working on Linux?  I'd love to be able to receive IR signals from remote controls, analyze them and play them back.

Thanks in advance,
Laci
5
Bus Pirate Support / Bus Pirate drives the NHD‐C12864EZ‐FSW‐FTW‐3V3P graphics LCD - Slow display
Hey Ian,

Please check out this video that I've made.  As you can see the screen update time is about 3s which seems way too long.

You might also be interested in the LCD datasheet.

Here's how I've initialized the LCD:

Code: [Select]
Welcome to minicom 2.4

OPTIONS: I18n
Compiled on Jan 25 2010, 07:02:36.
Port /dev/ttyUSB0

Press CTRL-A Z for help on special keys


* Syntax error, type ? for help
HiZ>AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0
No mode set, M for mode
HiZ>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. JTAG
7. RAW2WIRE
8. RAW3WIRE
9. PC KEYBOARD
10. LCD
(1) >5
Mode selected
Set speed:
 1. 30KHz
 2. 125KHz
 3. 250KHz
 4. 1MHz
(1) >4
Clock polarity:
 1. Idle low *default
 2. Idle high
(1) >
Output clock edge:
 1. Idle to active
 2. Active to idle *default
(2) >
Input sample phase:
 1. Middle *default
 2. End
(1) >
Select output type:
 1. Open drain (H=Hi-Z, L=GND)
 2. Normal (H=3.3V, L=GND)
(1) >2
READY
SPI>W
POWER SUPPLIES ON
SPI>a
AUX LOW
SPI>[
CS ENABLED
SPI>0xA0,0xAE,0xC0,0xA2,0x2F,0x26,0x81,0x22,0xAF
WRITE: 0xA0
WRITE: 0xAE
WRITE: 0xC0
WRITE: 0xA2
WRITE: 0x2F
WRITE: 0x26
WRITE: 0x81
WRITE: 0x22
WRITE: 0xAF

After initializing the LCD I used a Python script for the actual drawing:

Code: [Select]
#!/usr/bin/env python

from time import *

def send(string):
    global file
    print string,
    file.write(string)

file = open('/dev/ttyUSB0', 'w')

while True:
    for byte in ['0x00', '0xff']:
        for y in range(8):
            send('a 0xb%i 0x00 0x10 A ' % (y,))
            sleep(0.25)
            for x in range(128):
                send(byte + ' ')
            send("n")

If I don't use sleep() in the drawing code then issues arise.  Namely several lines are not drawn and the LCD gets disabled eventually.

Please let me know whether this slowness is due to Bus Pirate and how could I improve it.  I could drive the LCD directly with AVR but I'd like to save type on prototyping and if you tell me that this LCD is that slow then I'll choose another one.  (I know that buffered writing can much faster but full refersh is miserable.)
6
Bus Pirate Support / Bus pirate v3 project case - Translucent version please!
Hi Ian,

The case has a very serious usability problem: The LEDs cannot be seen.

How about providing a translucent case instead of the opaque case?  The LEDs could be seen and the vision of the PCB is pure geek porn. :)  The injection mold must be already ready for the case, so it's a matter of using a different plastic which shouldn't cost a dime manufacturing-wise, right?

Let me know what you think!

Thanks,
Laci
7
Bus Pirate Support / Nothing gets echoed / printed in minicom
Hi,

Just as the subject says.  I ordered this BPv3a from Seeed and "SEP 2009" is printed on the PCB.  I tried to get it working by following the instructions in the blog posts of Mike Szczys.

Minicom detects if I plug out the Bus Pirate because it reports me that it cannot access /dev/buspirate in this case. The power LED is on when the Bus Pirate is plugged in. My minicom status line is CTRL-A Z for help |115200 8N1 | NOR | Minicom 2.3 | VT102 | Offline

Please let me know what could be wrong.

Thanks in advance!

( ! ) 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.01342338112session_write_close ( )...(null):0
20.01372469704ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01372470480Database_MySQL->query( ).../DatabaseHandler.php:119
40.05702609216Database_MySQL->error( ).../Db-mysql.class.php:273