Shop OBEX P1 Docs P2 Docs Learn Events
AP16+ Not playing the correct file name — Parallax Forums

AP16+ Not playing the correct file name

Jeff SteenckenJeff Steencken Posts: 32
edited 2011-04-08 17:15 in General Discussion
Need some help with serial communication between my BS2p-40 and the AP16+.
I have four files on the SD card (formatted FAT32). They are named: T01, T02, T03 and SXF01(all .wav). All the files are of the correct sample rate as indicated in the instructions. I am using the sample program for the BS2 modified for the pin on the basic stamp I am using, the AUXIO command inserted and the file names changed to T01.wav, T02.wav, T03.wav. When I run the program the file SFX01 plays for each portion of the program instead of the file names in the program. If I remove the SXF file nothing will play and “oops no file..” is indicated on the debug screen. It does do what the program indicates including the responses on the Debug screen, but the correct file names are not played. The relay also turns on and off as it is suppose to. This tells me that my basic stamp is communicating properly with the AP16+, but I don’t understand why it will not play the correct file name.
Other info: I have tried several SFX files in the manual mode and that all works properly.
Anyone have any idea?

Comments

  • Jeff SteenckenJeff Steencken Posts: 32
    edited 2011-04-08 17:15
    Hello, I found my problem. It was the "PS" command in the sample program. I removed it now it seems to be working. Sorry for raising the red flag.
Sign In or Register to comment.