Android app that converts a text string into a audio signal that emulates rs232
$30-250 USD
Terminado
Publicado hace casi 9 años
$30-250 USD
Pagado a la entrega
App requirements:
Create a command string and translate each character into ASCII, which will be used to generate an audio signal in order to emulate a digital rs232 (4800 bauds) binary code. The final audio construction will be send via 3.5mm jack (only left channel). The app must be compatible with Android 4.1+
Details:
The app has to convert a text field into a string of ASCII characters, convert the ASCII string into binary, adding the Start and Stop bits and formatting as LSB first for serial communication, generate an audio file emulating a serial signal at 4800 bauds to the left channel, while keeping the right channel completely silent. Finally playing the generated sound though the headphones when the send button is pressed.
Example:
Input text: a
ASCII value: 97
Binary: 01100001
Serial (LSB first, add Start 0 and Stop 1): 0100001101
Audio signal: ([login to view URL])
The app also has to output the full string of binary code into an output field for ease of understanding.
There are also 3 shortcuts for adding big chunks of binary code without having to enter it manually, the shortcuts can be enabled or disabled and are always added in the same order, this shortcut code is not inserted into the input text but rather directly into the binary stage and audio output:
1.- Initial: adds 50 zeros
2.- Wake: Ads 500 ASCII character U to the sequence that is “0101010101” 500 times. The letters “U” are not added to the Input text, just to the binary output and audio output.
3.- Silence: Ads 500 zeros
Examples:
Initial and wake are enabled
[initial][wake][input text]
Initial wake and silence are enabled:
[initial][wake][silence][input text]
All of the shortcuts are disabled, then
[input text]
Android API up to 5.0 only allows the output to be sent to both channels, but I can set right channel volume to 0. If this is OK for you, I can finish the job in 3 days.