aboutsummaryrefslogtreecommitdiffstats
path: root/firmware
AgeCommit message (Collapse)AuthorFilesLines
2015-11-10Removed printfs from PIO Smartcard ISRchristina/masterChristina Quast1-5/+0
2015-11-10Send on Slot updates over USB on CCID initChristina Quast1-2/+2
When SIM card gets inserted into the SIM card slot, pinSmartCard is connected to GND; otherwise a pullup connects the pin to VCC.
2015-11-05Remove check for PIO_ISR interrueChristina Quast1-26/+15
At first I thought I had to check the interrupt source when my interrupt handler was called. But then, the smart card insertion pin was never marked as the interrupt source in the PIO_ISR. It turns out, the ISR register is cleared on read, which is done by the atmel lib function PioInterruptHandler.
2015-06-24simtrace.h: Increased host to SIMtrace buf sizeChristina Quast1-1/+1
The host got stuck sometimes when large data frames had to be send from the host program to SIMtrace. The printouts would just stop if many large packets were received from the SIM card and needed to be transferred to the mobile phone. Increasing the buffer length removed the problem.
2015-06-24main: Increase timeout for USB configured stateChristina Quast1-1/+1
When the timeout was too small, the main function would infinitely loop around, restarting the board and waiting for the USB interface to get configured. But since configuration seems to take more than one second, it rarely succeeded. Increasing the timeout makes the USB configuration finish in the first try.
2015-05-14usb.c: Corrected grammatical mistakeChristina Quast1-1/+1
2015-05-08phone.c: removed commentsChristina Quast1-24/+1
Removed comment describing the typical first few packets between the SIM card and phone I used for development and testing: SuperSIM, Motorola C123
2015-05-08phone.c: Removed comment about wait time extensionChristina Quast1-20/+0
Wait time extension commands are not implemented yet. They are a nice-to-have for the future, since they would enable the board to work with phones that expect a higher frequency. With a wait time extension request towards the phone, SIMtrace could signal the phone to wait for a longer time period while SIMtrace is still waiting for a response from the SIM card.
2015-05-08cciddriverdesc: Atmel bug fix of slot status registerChristina Quast1-1/+0
Atmel library mixes up the value for two different messages. Explanation can be found here: http://permalink.gmane.org/gmane.comp.mobile.osmocom.simtrace/29 Actually, a better fix for this problem would be to go through the Atmel code and replace ICC_INSERTED_EVENT with ICC_BS_PRESENT_NOTACTIVATED where appropriate and in accordance with the Smart Card CCID standard (and libccid, for this matter).
2015-05-08firmware, host: Changed vendor and product idChristina Quast2-5/+3
The code used a vendor and product id taken from Atmel example code. Now it is changed to the vendor and product id, which was also previously used in the original SIMtrace code.
2015-05-08tc_etu.c: Removed, because was never usedChristina Quast1-114/+0
Since the host side does the parsing of the packets, (not the firmware, as it was in the old simtrace version), we do not need to check for expired max waiting time. Instead, every byte received from the phone is filled into a ring buffer. As soon as the USB endpoint to the host is not busy anymore, it is sent to the host over the respective USB endpoint.
2015-05-08mitm.c: Removed unused commented out codeChristina Quast1-15/+0
2015-05-08main.c: Removed TC_Start/_Stop (was commented out)Christina Quast1-9/+0
Removed FIXME comment Removed TC_Start, TC_Stop function call, which was commented out anyways.
2015-05-08sniffer.c: Removed unused PR macro defnitionChristina Quast1-2/+0
2015-05-08usb.c: Removed FIXME commentChristina Quast1-5/+0
MITM does not support two interface settings. The comment mixed up interface configurations and alternative interface settings.
2015-05-08USBDDriver.c: swaped args to memsetChristina Quast1-1/+1
2015-05-08usb.c: removed comment, named phone interface of MITM confChristina Quast1-6/+2
String descriptor #0 always is the language descriptor. The second USB interface is in the MITM configuration is the interface to the phone.
2015-05-08Makefile: Removed unused object file target tc_etuChristina Quast1-1/+1
2015-05-08Remove PR define, replace with TRACE_DEBUGChristina Quast3-17/+9
The define PR was introduced to switch quickly between TRACE levels for specific debug print messages. Now, it all became debug output, since it is not needed in normal operation.
2015-05-06main.c: Set green LED when USB is configuredChristina Quast1-1/+3
2015-05-03command to change fidi send by hostChristina Quast5-252/+79
2015-05-03iso7816_uart.c: Do not compileChristina Quast1-1/+1
2015-05-02Added not working PTS parsing to host communicationChristina Quast4-474/+85
2015-05-02ringbuf.c: rbuf peek functionChristina Quast3-6/+6
2015-05-02iso7816_uart: starting point for pts parsingChristina Quast2-0/+647
2015-04-21host_communication.c: printf becomes TRACE_DEBUGChristina Quast1-2/+2
2015-04-21cciddriver.c: Removed loop waiting for host on CCID_ReadChristina Quast1-3/+3
2015-04-20Moved ISR_PhoneRST into iso code file and simtrace headerChristina Quast3-34/+35
2015-04-20simtrace_iso7816.c: Remove unused _ISO7816_InitChristina Quast1-44/+0
2015-04-18iso7816_4.c: Removed time guardChristina Quast1-4/+0
2015-04-17iso7816_4.c: CLK div differs for Master and SlaveChristina Quast3-13/+10
Attention: Each init function has to enable and disable receiver and transmitter on its own!
2015-04-17board.h: RST pin low per default on startupChristina Quast1-2/+1
2015-04-16ccid.c: removed SMARTCARD_CONNECT_PIN check (always defined)Christina Quast1-15/+0
2015-04-16main.c: Removed double declaration of var iChristina Quast1-3/+2
2015-04-16iso7816_4.c: Moved around lines, only sniffer worksChristina Quast1-8/+27
2015-04-16Moved global Usart state into usart structChristina Quast6-15/+19
2015-04-16board.h: init more phone pins (as input)Christina Quast1-1/+1
2015-04-13sniffer.c: Enable/disable interrupts in init/exit functionChristina Quast1-1/+4
2015-04-13phone.c: Enable/disable interrupts on init/exitChristina Quast1-3/+9
2015-04-13phone.c: Callback routine for reenabling RST interruptChristina Quast1-2/+7
2015-04-13Makefile: Check for already opened ttyUSBxChristina Quast1-1/+1
If two ttyUSBx interfaces are read from by ts at the same time, some letters arrive at one terminal and others in the second one. Therefore only one terminal should be open at all times.
2015-04-12main.c: Reset board if USB not configuredChristina Quast1-3/+10
2015-04-12iso7816_4.c: Increased max interationsChristina Quast1-1/+1
2015-04-12Merge branch 'new_iso_init' (sniffer not working)Christina Quast10-174/+123
Conflicts: firmware/src_simtrace/phone.c firmware/src_simtrace/simtrace.h
2015-04-12Sniffer with ringbuf, works SOMETIMESChristina Quast8-59/+59
* Sniffer uses phone endpoints for communication and the ringbuffer routines the phone communication uses * Most times the Usart1 interrupt is not triggered, and therefore no values are recorded
2015-04-11phone.c: Sniffer bus config make switchChristina Quast3-6/+13
2015-04-11tc_etu: Corrected compiler warningChristina Quast1-1/+1
2015-04-11ringbuffer implementationChristina Quast7-196/+135
2015-04-11tc_etu.c: Fixed PIN initialisation compiler waringChristina Quast2-3/+2
2015-04-11basic ringbuffer implementationChristina Quast1-0/+34