uMMC Serial Data Module
RClemons
Posts: 3
Hello,
I'm in the process of using a Rogue Robotics uMMC Serial Data Module with my BS2p40 for mass data storage of thermocouple data. Has anyone successfully used the uMMC module with the BS2? I can't get the BS2 to write successfully to the SD card and believe the problem is in my code. If someone could help me out, I'd really appreciate it. Also, I'll be more than willing to post the successful project with codes and schematics as I've seen others with questions regarding data storage using the uMMC SDM.
Thanks!
Rick Clemons
I'm in the process of using a Rogue Robotics uMMC Serial Data Module with my BS2p40 for mass data storage of thermocouple data. Has anyone successfully used the uMMC module with the BS2? I can't get the BS2 to write successfully to the SD card and believe the problem is in my code. If someone could help me out, I'd really appreciate it. Also, I'll be more than willing to post the successful project with codes and schematics as I've seen others with questions regarding data storage using the uMMC SDM.
Thanks!
Rick Clemons
Comments
I have the MP3 player variant from Rogue. I use it with a BS2p40. I've not tried to write to the SD card yet, but I have read files and triggered the MP3 player with success. Can you read from the SD card alright? I'll try to write a text file from BS2p40 tonight and post back my code if I have any luck.
Regards,
Chris
I have not been able to read from the SD card either. Your code that allowed you to successfully read files and trigger the MP3 player might help, and I would be interested in taking a look at it to compare to my code if it's available.
Thanks,
Rick
To open a file 'TEST.TXT' for append:
SEROUT 15,84,[noparse][[/noparse]"FC O 1 A /TEST.TXT",CR]
(Rx is wired to P15 on BS2, 84 is 9600 baud on BS2.· use 240 for BS2p40)
To Write a string to the text file:
SEROUT 15,84,[noparse][[/noparse]"FC W 1 6",CR]
SEROUT 15,84,[noparse][[/noparse]"HELLO",CR]
(where 6 is the number of bytes in HELLO{cr}
To close the file:
SEROUT 15,84,[noparse][[/noparse]"FC C 1",CR]
And if you've got the uMP3, and a Bob Marley MP3 @ the root of the SD card:
SEROUT 15,84,[noparse][[/noparse]"PC F /THREE_LITTLE_BIRDS.MP3",CR]
will play a tune to let you know the program finished.
Hope that helps!·
Chris