Skip to main content

Show Posts

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

Messages - Fake0Name

1
Project logs / Re: Use Sublime Text 2 to Replace Arduino IDE
Why on *earth* would you ever install the package /manually/?

Step 1: Install Package Control
Step 2: Press Ctrl+Shift+p
Step 3: type "install package", select "Package Control: Install Package"
Step 4: type "Arduino", select "Arduino-Like IDE"
Step 5: Press enter.

done.

You then have to specify the arduino directory in Stino, (which is the proper name for the "Arduino-like IDE"), but you have to do that anyways.

Works in sublime text 2 and 3.
2
Bus Pirate Development / Re: Difference between SVN repos?
It seems like the solution is to generate a set of files in an image of the old repo that each point to the same path in the new repo.

Simple plain-text with a raw URL should work. I could hack something together in a hour or two in python.

Oh, I have more patches to the bus-pirate library. I removed the timeouts, and instead rely on checking the number of received bytes against the number of bytes I'm waiting for (with an eventual timeout if the connection is lost). 

This results in the turn around for many commands (like large_bulk_write_read) dropping from ~0.1 second execution to ~0.015 execution time, and that includes the USB latency and the time it takes the hardware the bus-pirate is talking to to respond.

Can I IM you to get SVN write access? I'd be happy to take over maintenance of the pyBusPirate library.
3
Bus Pirate Development / Re: Difference between SVN repos?
Incidentally, if you've depreciated the old SVN, it would probably be a good idea to delete everything from the head of the repo. Just have a single file with info about the new repository in it.

That way, if someone (like me), does a checkout (like I did), you would just get a "Nothing here, go to the new place" message.
With a VCS, all the history will still be there, it would just be more apparent that the repo contents are depreciated.
4
Bus Pirate Development / Re: Difference between SVN repos?
Here are the patches I have so far.

I've mostly been working with the SPI module, though I went through the whole package and did formatting cleanup (I run sublime text with sublimelinter, which makes it very hard to work on code that's not PEP8 compliant).

The main thing I've done is the `0b00000100 - Write then read` function is now exposed as the function `large_bulk_write_read` in the `SPI` class.

There is also a `check_in_SPI_mode` function in the SPI class as well, which I'm using to make my code capable of exiting and restarting without causing any of the BP IO lines to toggle. It turns out if you try to re-enter binary mode when the BP is already in binary SPI mode, it kicks you out of the SPI mode, which de-asserts the CS line until you re-enter SPI mode. This is a way to get around this.

Ideally, there should be a dedicated "What mode am I in" command, that if issues when you're in basic binary mode before switching to a certain bus mode won't cause the system to switch to one of the bus modes.
The problem is, right now, if you're not in any bus mode, issuing the "What mode am I in" command (0b00000001) will put the BP in SPI mode.

I'll probably continue tweaking, though the test-harness I am building with the BP is now working. I'm not sure how SVN write access is managed (I've only used SVN in very small groups), but I can push my updates to the repo myself, if you let me know how.
5
Bus Pirate Support / Re: Determine bus-pirate mode without toggling IO?
Derp. Ok, it looks like I can partially do what I want by just issuing a command 0b00000001.

This returns the mode string *when you're in a mode*. however, if you're not in a mode, it will cause the bus-pirate to enter SPI mode.

While this solves my problem (because I want to enter SPI mode anyways), it wouldn't work for any of the other modes.
6
Bus Pirate Support / Determine bus-pirate mode without toggling IO?
I'm working on an application that uses a bus-pirate as a test SPI interface.

I have a few scripts that talk to the bus pirate using a modified version of pyBusPirate.

However, there seems to be no way to determine the current bus pirate mode (binary vs ASCII) without resetting the IO lines.

Right now, the scripts simply re-enter binary mode upon startup. However, this de-asserts CS, which is something I would really like to avoid if at all possible.

Is there an equivalent to the '?' ascii-mode command in binary mode? If so, I can simply issue that command, and check to see if there is any return, which should tell me whether I'm in binary or ASCII mode.

Ideally, there would be a command (say, 0b00001110), that returns the current command mode.
7
Bus Pirate Development / Re: Difference between SVN repos?
Is this completely true?

The code for pyBusPirateLite in the the-bus-pirate googlecode repository is more up-to-date then the dangerous-prototypes-open-hardware repository.

Anyways, I'm working through the more recent versions, and making them largely PEP8 compliant, and reworking a lot of the functions to make them easier to use.