From: eLinux.org
This is the MicroUSB port that is exposed on the left side of the peek. It's used for both charging and upgrading the Peek. The upgrade cable uses a serial TTL to USB level shifter to convert the serial TTL into a USB com port. a bootlog can be viewed using serial settings 115200,n,8,1
Pin | Function |
---|---|
1 | +5V(USB Standard) |
2 | TXD +1.8V TTL |
3 | RXD +1.8V TTL |
4 | N/C |
5 | GND |
Shield | Drain wire |
This is on the inside of the Peek under the SIM (this is also covered by the warranty sticker). a bootlog can be viewed using serial settings 115200,n,8,1 Note: This is not a new, hidden serial port. This port is electrically the same as the External Charger/Upgrade port shown above.
Pin | Function |
---|---|
1 | Ground |
2 | nPowerButton (active low) |
3 | UART_RX +1.8V TTL (input to Peek) |
4 | USB_PWR +5V |
5 | UART_TX +1.8V TTL (output from Peek) |
6 | Bat+ 4.2V |
Picture from Maushammer on Flickr
These vias are found on the bottom side of printed circuit board just below the white antenna strip. ***Note: You will need to remove the solder mask and solder small wire to the vias. 26AWG or 30AWG is best. ** Obviously, the four signals TDO, TMS, TCK, and TDI are the most important ones. Connect these signals straight to your JTAG dongle. You should also pick up a Ground signal somewhere near the DC Power circuity on the lower left section of PCB. Perhaps, depending on your JTAG dongle, you could also power the Peek from the dongle itself. ;-) Thanks to "codeman" and "prpplague" for this (these pinouts may be wrong!).
The Peek update program calls a command line CSST app to actually load the new firmware to flash. In my case, the command line was:
D:\apps\Peek\CSST\csstcli.exe -t 1 -op download -i D:\apps\Peek\software\Rel_01_09_10.m0 -dt NOR -p COM5
This command can be executed from a command prompt. You will be prompted to reset the Peek (remove and replace the battery, then hit the power button) and the download will begin!
Your Peek must remain active during the processing of each command so you may need to move the scroll wheel or press a button intermittently during the process to keep it on. You must also have the Peek cable and Peek upgrade software installed on your computer before you start.
Power on Peek and connect Peek to PC using the Peek Upgrade cable. Determine wich port the Peek is connected to. Either Check Device Manager - Start > Run > devmgmt.msc OR right click My Computer > Properties > Hardware Tab and Look at LPT&COMM, expand + sign and you should see what COMM port your cable is on
Open a command prompt. If you plan on copying files to the computer you must right click "Command prompt" and run it as an administrator even if you are already logged on as an administrator. It should be located under "Accessories" in the start menu.
Type in:
cd "C:\Program Files (x86)\Peek.1.10.00\tmsh" (or whatever your Peek directory is called)
Then type:
tmsh -psX -ttlocosto
Where X = your COMM port # from earlier.
Here's a list of TMSH commands:
Command | Description |
---|---|
help | Print help for the command name on stdout Arguments |
run | Run the script file named filename. Arguments |
use | Load the ETM module represented by the DLL “name.dll” Arguments |
ping | ping target Arguments [options] |
quit | Quit the shell |
auw | Write audio parameters |
aur | Read audio parameters |
aul | Load audio parameters from FFS file |
aul | Save audio parameters to FFS file |
mkfs | Format flash |
fwr | File write from PC to target |
frd | File read from target to PC |
cd | Change current working directory |
mkdir | Make a new directory |
rm | Delete a file or directory |
mv | Move or rename a file |
pwd | Print working directory |
ls | List files in directory |
cat | View of text files |
ln | Make a link between files |
chmod | Change files/directories permissions |
touch | Create an empty file |
df | Show the amount of free space |
fsq | Query ffs parameters and values |
rfe | Enable RF – transmit and receive |
se | Enable special customer task |
scw | Setup the statistics configuration |
scr | Read the statistics configuration |
sr | Get statistics results |
rfpw | Write RF parameters for receive mode |
rfpr | Read RF parameters for receive mode |
rxpw | Write RX parameter for receive mode |
rxpr | Read RX parameters for receive mode |
txpw | Set parameters for transmit mode |
txpr | Read parameters for transmit mode |
spw | Write customer special parameter |
spr | Read customer special parameter |
rftw | Write a RF table |
rftr | Read a RF table |
ttw | Write a ramp template to transmitter |
ttr | Read a ramp template from transmitter |
stw | Write a customer special table |
str | Read a customer special table |
mr | Read value from memory address |
mw | Write value to memory address |
cr | Read value from codec register |
cw | Write value to codec register |
me | Enable miscellaneous parameter |
mpr | Read miscellaneous parameter |
mpw | Write miscellaneous parameter |
vg | Get hardware or software version |
Email is kept in a database. Location Peek/peek.db Attachments are kept in location Peek/Attach The attachment will be named with a string of numbers_filename.extension_more numbers example 9585785_yourpic.jpg_552694 Pictures will be re-sized by Peek servers before they are delivered to your Peek. As an example a picture I sent to my Peek started at 998x1274 the picture downloaded from my Peek was only 152x195.