-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serial connection HC-12 module #2
Comments
@oh3gai, hey, that would be interesting, can add some checkbox to enable/disable audio frame sending/receiving without KISS packetization, also check https://github.com/sh123/nrf24l01_arduino_kiss_modem for small reference kiss modem. Also, you can experiment as is, it may work between two apps, because kiss frames will be transferred over the aether and they will be de-serialized on receiver side. |
Hi! Thanks for answer! Button for enable / disable kiss capsulation would be great. I was thinking to use below setup and avoid to playing with arduino. Keep the setup as simple as possible. OTG and HC12 Usb serial module. Later on I will test app with Lora32u4 modules when they arrive from china. br, Jarno |
I do not have HC-12, but it may not work out of the box with the app, kiss might not be the problem, default baud is set to 115200 in the application, HC-12 requires AT commands to change 9600 default baud rate. I have some ideas to add settings with required fields or radio module profiles to enable frequency tuning, power level changes and so on for different radio modules from the app. I can build custom version with 9600 baud rate, so you can try out or maybe it could be changed in module itself. |
Hi! Sounds really good If you have time in some point to add and make changes. I can try to verify that. I have those HC12 modules and HC12 Usb adapters lying around from my greenhouse project. Br, Jarno |
Maybe, you can also try to configure it for 115200 bps, 8 data bits, 1 stop bit, no parity if it does not work out of the box as described at https://picaxeforum.co.uk/threads/configuring-hc-12-usb-module-slightly-ot.30373/ with AT commands. |
Good morning! I was able to set up 115200,8,n,1, Programs startup nicely with my samsung A8(2018). I monitored transmission another hc12usb via putty serial. Below reception was done when counting numbers backwards. Unfortunately I can't verify the audio yet. The program wont start in my old honor (android 4). I need to get another phone. I'll report these results later. Br, Jarno |
Yes, it needs Android 6, also had old second phone, but managed to flash it with Cyanogenmod newer Android version as manufacturer does not publish new versions anymore, maybe try to flash old phone with Cyanogen Android 6.0.1 |
Hi! I can verify that audio path works between two otg&HC12usb dongles with parameters 115200,8,1. Distance is really poor with speed of 115200. :) Great app! br, Jarno |
Good to hear, just set lower speed for modem, but keep 115200,8,1 serial speed, this will give greater distance. With 900 bps LoRa speed and 450 bps codec2 mode quick tests I was able to get around 5 km when light of sight is not obstructed (probably could go further as was able to get around 20 km with APRS), also check for interference from other devices if using ISM band and tune up/down to decrease interference. |
It will take some time to implement proper settings, for now just published apk-s for different serial baud rates https://github.com/sh123/codec2_talkie/releases/tag/0.13, seems that it is not possible to change serial baud rate and air rate separately: |
Thanks for solving this. I will make some more codec2 mode and range test near future with HC12 . br, Jarno |
Hello, nice to see that somebody has thought about using HC12 connected via USB cable to the Android phone before me. Were you able to use such a setup successfully? What I want to do is just to enable simple low-speed/long range communication (like send a short string or an integer once in a while) between an Arduino Nano and an Android phone via two HC12 radios... As simple as Nano sends "Hello world!" and Android shows it on its screen...
Thank you! |
@AvtechScientific , I believe, you need OTG cable and some USB serial application, like https://play.google.com/store/apps/details?id=de.kai_morich.serial_usb_terminal |
Thank you very much for your fast response! Just - how should I solder the HC-12 to the OTG Usb cable? HC-12 that I have look like this and not like as in the picture above... HC-12 has 5 pins/holes... |
By the way - can I play an alert or notification sound on such USB serial applications once a message from Arduino Nano arrives? |
@AvtechScientific , the module on the picture is not HC-12, but HC-12-USB, raw HC-12 cannot be used through USB, it uses serial connection, to use it with the phone you need to use it with some MCU, like Arduino (or serial to USB adapter) and then connect to the phone via USB OTG. |
Hi!
Great app! I was wondering is it possible to use this app somehow without kiss protocol capsulation? I was thinking to try out ie. HC-12 serial rxtx ?
This would make possible ultra low cost DV walkie talkie.
Thanks again for you great work!
Br, Jarno / OH3GAI
edited because I ment HC12 usb serial module.
The text was updated successfully, but these errors were encountered: