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

Feature Request: Integration with Kenwood THD72A #12

Closed
mrearp opened this Issue May 9, 2011 · 22 comments

Comments

Projects
None yet
9 participants
@mrearp

mrearp commented May 9, 2011

It would be nice to be able to plug my tablet into my Kenwood and be able to do APRS..

Would also be nice to download maps as well..

@ge0rg

This comment has been minimized.

Show comment
Hide comment
@ge0rg

ge0rg May 9, 2011

Owner

It seems Android support for USB is problematic - there is no proper API, and most devices do not have USB Host mode anyway. I suppose the best way so far would be to use the audio connection and to wait for AFSK receiving to be implemented in APRSdroid.

Owner

ge0rg commented May 9, 2011

It seems Android support for USB is problematic - there is no proper API, and most devices do not have USB Host mode anyway. I suppose the best way so far would be to use the audio connection and to wait for AFSK receiving to be implemented in APRSdroid.

@wolrah

This comment has been minimized.

Show comment
Hide comment
@wolrah

wolrah May 25, 2011

Coincidentally, Google recently released official Android support for both a limited "USB Accessory" protocol but also full USB host mode. Unfortunately full host mode is only in Android 3.1, meaning that only Xoom owners get it (officially) until Ice Cream Sandwich comes out. As far as I can tell the "accessory" mode requires explicit support on the connected device and the Android 2.3.4 OS (though the second part is easy for anyone with a fully rooted device).

wolrah commented May 25, 2011

Coincidentally, Google recently released official Android support for both a limited "USB Accessory" protocol but also full USB host mode. Unfortunately full host mode is only in Android 3.1, meaning that only Xoom owners get it (officially) until Ice Cream Sandwich comes out. As far as I can tell the "accessory" mode requires explicit support on the connected device and the Android 2.3.4 OS (though the second part is easy for anyone with a fully rooted device).

@gps-au

This comment has been minimized.

Show comment
Hide comment
@gps-au

gps-au Jun 2, 2011

Why think corded ?
Why not Bluetooth ? (same for audio)

gps-au commented Jun 2, 2011

Why think corded ?
Why not Bluetooth ? (same for audio)

@ge0rg

This comment has been minimized.

Show comment
Hide comment
@ge0rg

ge0rg Jun 6, 2011

Owner

Bluetooth audio can be handled by the Android system, however I am not sure if the bluetooth-capable HTs support more than attaching a headset.
For bluetooth-serial in KISS mode, there is an experimental build for Android 2.x to connect APRSdroid to any TNC using a bluetooth device. As soon as I get some positive reports and the code is a bit more polished, it will become part of the official build.

Owner

ge0rg commented Jun 6, 2011

Bluetooth audio can be handled by the Android system, however I am not sure if the bluetooth-capable HTs support more than attaching a headset.
For bluetooth-serial in KISS mode, there is an experimental build for Android 2.x to connect APRSdroid to any TNC using a bluetooth device. As soon as I get some positive reports and the code is a bit more polished, it will become part of the official build.

@gps-au

This comment has been minimized.

Show comment
Hide comment
@gps-au

gps-au Jun 6, 2011

I am surprised that there are actually NO bluetooth TNC's on the market. I keep think of some of those old Yaesu rigs I have in storage (from a move several years ago), with some sockets on the back.... gee even an alinco dj135 (I think).

Or have I missed them in my searches ?

gps-au commented Jun 6, 2011

I am surprised that there are actually NO bluetooth TNC's on the market. I keep think of some of those old Yaesu rigs I have in storage (from a move several years ago), with some sockets on the back.... gee even an alinco dj135 (I think).

Or have I missed them in my searches ?

@ge0rg

This comment has been minimized.

Show comment
Hide comment
@ge0rg

ge0rg Jun 6, 2011

Owner

Bluetooth TNCs are a rather novel idea. I am sure, if you wait some months, you will be able to buy such a device. So far, you can connect a bluetooth-serial device to any existing TNC and start experimenting! :)

Owner

ge0rg commented Jun 6, 2011

Bluetooth TNCs are a rather novel idea. I am sure, if you wait some months, you will be able to buy such a device. So far, you can connect a bluetooth-serial device to any existing TNC and start experimenting! :)

@ge0rg

This comment has been minimized.

Show comment
Hide comment
@ge0rg

ge0rg Sep 29, 2011

Owner

Bluetooth TNC is part of the official releases as of 1.1.

Owner

ge0rg commented Sep 29, 2011

Bluetooth TNC is part of the official releases as of 1.1.

@ge0rg ge0rg closed this Sep 29, 2011

@ge0rg ge0rg reopened this Dec 13, 2011

@ge0rg

This comment has been minimized.

Show comment
Hide comment
@ge0rg

ge0rg Dec 13, 2011

Owner

Further consideration shows that closing the issue was premature. I will keep it open until I find a solution for devices with USB host mode or until I reach a dead end.

Owner

ge0rg commented Dec 13, 2011

Further consideration shows that closing the issue was premature. I will keep it open until I find a solution for devices with USB host mode or until I reach a dead end.

@kd7lxl

This comment has been minimized.

Show comment
Hide comment
@kd7lxl

kd7lxl Jan 27, 2012

Contributor

I just got a USB-OTG adapter for my Galaxy Nexus. I tried it with an FTDI USB to serial adapter and a terminal emulator app I found in the market, and it works! Have you played with any USB Host devices lately? More and more of the new hardware supports it. I'd love to be able to use APRSdroid directly (sort of) with a TNC. The app I found takes advantage of this library: http://slickdevlabs.com/slick-usb-2-serial-library/ It's great to see a library available that supports usb serial, but it looks like the license is incompatible with APRSdroid. At least it shows it's possible.

This library does not mention support for the Silicon Labs CP210x (the UART to USB chipset in the D72). I have yet to check if it's supported in my phone's kernel, which would be a prerequisite. At least the FTDI and Prolific chipsets work.

Contributor

kd7lxl commented Jan 27, 2012

I just got a USB-OTG adapter for my Galaxy Nexus. I tried it with an FTDI USB to serial adapter and a terminal emulator app I found in the market, and it works! Have you played with any USB Host devices lately? More and more of the new hardware supports it. I'd love to be able to use APRSdroid directly (sort of) with a TNC. The app I found takes advantage of this library: http://slickdevlabs.com/slick-usb-2-serial-library/ It's great to see a library available that supports usb serial, but it looks like the license is incompatible with APRSdroid. At least it shows it's possible.

This library does not mention support for the Silicon Labs CP210x (the UART to USB chipset in the D72). I have yet to check if it's supported in my phone's kernel, which would be a prerequisite. At least the FTDI and Prolific chipsets work.

@ge0rg

This comment has been minimized.

Show comment
Hide comment
@ge0rg

ge0rg Jan 29, 2012

Owner

Thanks for the hint. It seems like the library is doing the right thing. I suppose what Slick did was to basically rewrite the usb-serial drivers in Java on top of the Android API. Unfortunately I can not (yet) test it due to lack of Android 3.x.

I hope there will be an open-source compatible project providing USB serial to Android apps. libftdi might be a viable approach, but it does not list the D72 UART either...

Owner

ge0rg commented Jan 29, 2012

Thanks for the hint. It seems like the library is doing the right thing. I suppose what Slick did was to basically rewrite the usb-serial drivers in Java on top of the Android API. Unfortunately I can not (yet) test it due to lack of Android 3.x.

I hope there will be an open-source compatible project providing USB serial to Android apps. libftdi might be a viable approach, but it does not list the D72 UART either...

@ge0rg

This comment has been minimized.

Show comment
Hide comment
@ge0rg

ge0rg Sep 14, 2012

Owner

I am not generally opposed to spending the 99USD for the slick USB library. However, to integrate it in APRSdroid, their closed-source JAR file needs to be put into the source code directory. This means that either

  1. I have to put the JAR into my git repository, which would be copyright violation, or
  2. APRSdroid can only be compiled by people who spend 99 usd, or
  3. I need to maintain two separate branches of the source code, one completely free, and the other one requiring the usb library.

Variant 3. is probably the most acceptable one, but it would require some additional work, and reduce the functionality of the open-source version. Therefore, I am still hoping for an open-source library to interface USB devices... Currently I do not have very much time for coding anyway, and I have some other important elements on my APRSdroid TODO list, so unless the user pressure for USB will grow higher or an open USB library appears, I'm probably going to push this feature further away.. ;-)

As far as I can tell, the major use case for this feature is to connect a tablet to a D72 (or possibly to a TNC using a USB-serial board, which can be already implemented using a bluetooth-serial adapter instead).

Owner

ge0rg commented Sep 14, 2012

I am not generally opposed to spending the 99USD for the slick USB library. However, to integrate it in APRSdroid, their closed-source JAR file needs to be put into the source code directory. This means that either

  1. I have to put the JAR into my git repository, which would be copyright violation, or
  2. APRSdroid can only be compiled by people who spend 99 usd, or
  3. I need to maintain two separate branches of the source code, one completely free, and the other one requiring the usb library.

Variant 3. is probably the most acceptable one, but it would require some additional work, and reduce the functionality of the open-source version. Therefore, I am still hoping for an open-source library to interface USB devices... Currently I do not have very much time for coding anyway, and I have some other important elements on my APRSdroid TODO list, so unless the user pressure for USB will grow higher or an open USB library appears, I'm probably going to push this feature further away.. ;-)

As far as I can tell, the major use case for this feature is to connect a tablet to a D72 (or possibly to a TNC using a USB-serial board, which can be already implemented using a bluetooth-serial adapter instead).

@ge0rg

This comment has been minimized.

Show comment
Hide comment
@ge0rg

ge0rg Nov 5, 2012

Owner

There is a new USB-serial library available. I will evaluate it and provide code to test as soon as I have some time (hopefully in a bunch of weeks).

Owner

ge0rg commented Nov 5, 2012

There is a new USB-serial library available. I will evaluate it and provide code to test as soon as I have some time (hopefully in a bunch of weeks).

@ge0rg

This comment has been minimized.

Show comment
Hide comment
@ge0rg

ge0rg Dec 9, 2012

Owner

In the meantime, there is a new experimental build for Kenwood (APK, using OSM offline maps).

With that build, you need to set APRSdroid to "SmartBeaconing" and "Kenwood PKWDWPL", and then it will emulate a GPS receiver and parse Kenwood waypoints via Bluetooth-SPP. This can be used at least with the D7x0 mobiles; USB support for the D72 is not there yet.

Owner

ge0rg commented Dec 9, 2012

In the meantime, there is a new experimental build for Kenwood (APK, using OSM offline maps).

With that build, you need to set APRSdroid to "SmartBeaconing" and "Kenwood PKWDWPL", and then it will emulate a GPS receiver and parse Kenwood waypoints via Bluetooth-SPP. This can be used at least with the D7x0 mobiles; USB support for the D72 is not there yet.

@bd2uyy

This comment has been minimized.

Show comment
Hide comment
@bd2uyy

bd2uyy Dec 11, 2012

succeeded connect to D710 use newest version, and reviced waypoint very well, but I do not know how can I use GPS data which get from D710, other question, my beacon still send from internet when I send my beacon, D710 no any acticons.

bd2uyy commented Dec 11, 2012

succeeded connect to D710 use newest version, and reviced waypoint very well, but I do not know how can I use GPS data which get from D710, other question, my beacon still send from internet when I send my beacon, D710 no any acticons.

@KC9SWV

This comment has been minimized.

Show comment
Hide comment
@KC9SWV

KC9SWV Jan 17, 2013

This is awesome that you're getting close on a USB serial connection. I would love to mount my old Kindle Fire in my car and use it with my D710. No Bluetooth but it does have USB-Host OTG. Thank you so much for your hard work and I look forward to upgrading!

KC9SWV commented Jan 17, 2013

This is awesome that you're getting close on a USB serial connection. I would love to mount my old Kindle Fire in my car and use it with my D710. No Bluetooth but it does have USB-Host OTG. Thank you so much for your hard work and I look forward to upgrading!

@ge0rg

This comment has been minimized.

Show comment
Hide comment
@ge0rg

ge0rg Aug 27, 2015

Owner

I have uploaded an alpha version with USB support. Please test if you can connect it to the D72 in "PACKET" mode; APRSdroid is expecting KISS packets over USB.

Owner

ge0rg commented Aug 27, 2015

I have uploaded an alpha version with USB support. Please test if you can connect it to the D72 in "PACKET" mode; APRSdroid is expecting KISS packets over USB.

@N7KFD

This comment has been minimized.

Show comment
Hide comment
@N7KFD

N7KFD Mar 20, 2016

I'm a little late to the party but here are a couple of screen shots. The first one is with the TNC on the TH-D72 in packet mode.

screenshot_20160319-182608

The second is with the TNC in APRS mode and the GPS turned on.

screenshot_20160319-182736

N7KFD commented Mar 20, 2016

I'm a little late to the party but here are a couple of screen shots. The first one is with the TNC on the TH-D72 in packet mode.

screenshot_20160319-182608

The second is with the TNC in APRS mode and the GPS turned on.

screenshot_20160319-182736

@ge0rg

This comment has been minimized.

Show comment
Hide comment
@ge0rg

ge0rg May 18, 2016

Owner

@N7KFD the packet mode is theoretically the way to go. Can you provide a screenshot right after receiving some APRS packets? Do they show up at all?

Owner

ge0rg commented May 18, 2016

@N7KFD the packet mode is theoretically the way to go. Can you provide a screenshot right after receiving some APRS packets? Do they show up at all?

@ge0rg

This comment has been minimized.

Show comment
Hide comment
@ge0rg

ge0rg Sep 21, 2016

Owner

New APK that supports both KISS and Kenwood modes, over both Bluetooth SPP and USB: http://aprsdroid.org/download/builds/APRSdroid-gl-2016-09-21.apk

Please test!

Owner

ge0rg commented Sep 21, 2016

New APK that supports both KISS and Kenwood modes, over both Bluetooth SPP and USB: http://aprsdroid.org/download/builds/APRSdroid-gl-2016-09-21.apk

Please test!

@ge0rg

This comment has been minimized.

Show comment
Hide comment
@ge0rg

ge0rg Sep 24, 2016

Owner

Good news! Our local club has its field day today, and we've managed to get APRSdroid to work with TH-D72 in both modes:

  • Kenwood waypoint mode via 2.5mm plug (GPS / waypoint as described in https://aprsdroid.org/kenwood/ - APRSdroid will only be a map display, all APRS happens on the D72), using a Bluetooth SPP adapter for the Kenwood port.

  • KISS mode via USB serial (APRSdroid does all the APRS, the D72 is just a dumb TNC) with the latest APK build, with following TNC init string:

    KISS ON
    RESTART

It looks like the D72 doesn't support waypoint mode over the USB port, nor KISS over GPS port.

aprsdroid-d72-kiss

Owner

ge0rg commented Sep 24, 2016

Good news! Our local club has its field day today, and we've managed to get APRSdroid to work with TH-D72 in both modes:

  • Kenwood waypoint mode via 2.5mm plug (GPS / waypoint as described in https://aprsdroid.org/kenwood/ - APRSdroid will only be a map display, all APRS happens on the D72), using a Bluetooth SPP adapter for the Kenwood port.

  • KISS mode via USB serial (APRSdroid does all the APRS, the D72 is just a dumb TNC) with the latest APK build, with following TNC init string:

    KISS ON
    RESTART

It looks like the D72 doesn't support waypoint mode over the USB port, nor KISS over GPS port.

aprsdroid-d72-kiss

@ge0rg ge0rg added this to the 1.4.0 milestone Oct 5, 2016

@cx5cba

This comment has been minimized.

Show comment
Hide comment
@cx5cba

cx5cba May 23, 2017

I Have the V1.4.0 RC3 and don´t do that my TH-D72 Works through USB.
What is the right settings in the HT and the APRSDroid?

cx5cba commented May 23, 2017

I Have the V1.4.0 RC3 and don´t do that my TH-D72 Works through USB.
What is the right settings in the HT and the APRSDroid?

@ge0rg

This comment has been minimized.

Show comment
Hide comment
@ge0rg

ge0rg May 23, 2017

Owner

@cx5cba Settings to use the combo:

  • D72: KISS mode (might also be called PACKET in the UI)
  • APRSdroid: "TNC (KISS)" mode with "USB serial"
  • Check that both devices are configured to the same baud rate, though in theory it should autodetect
  • Connect them via USB cable, there should be a popup on the Android, asking to give APRSdroid the permissions for USB (or a list with APRSdroid and other installed apps)
Owner

ge0rg commented May 23, 2017

@cx5cba Settings to use the combo:

  • D72: KISS mode (might also be called PACKET in the UI)
  • APRSdroid: "TNC (KISS)" mode with "USB serial"
  • Check that both devices are configured to the same baud rate, though in theory it should autodetect
  • Connect them via USB cable, there should be a popup on the Android, asking to give APRSdroid the permissions for USB (or a list with APRSdroid and other installed apps)

@ge0rg ge0rg closed this Jul 28, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment