Re: Pi - Can't Find AMBE Dongle On The Port Specified


"John D. Hays" <john@...>
 

I can look, but since you reinstalled, please review this

  1. The DV3000 board is pre-set to run at 230400 baud over the UART interface in “packet mode”. This is the minimum speed for successful operation.
  2. Prepare the Raspberry Pi. This consists of (a) increasing the clock to the RPi UART, (b) disabling the getty (to allow terminal login) running on the RPi serial port, and (c) disable the console on the serial port.Halt and remove power from the Raspberry Pi, fit the DV3000 board, reconnect power, and reboot
    1. Edit the file /boot/config.txt and add the line:
      init_uart_clock=3686400
      Note: a higher value is needed on RPi 2 (50000000 has been suggested by VK4TUX)
    2. Edit the file /etc/inittab and replace or comment the line:
      T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
      with:
      #T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100
      or delete the line entirely.
    3. Edit the file /boot/cmdline.txt and replace or comment the line (these lines are wrapped in this article, they should appear as a single line in the file):
      dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
      with:
      dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
      Note: If the value for ‘root’ is different than /dev/mmcblkop2, preserve your current root=/dev/… and simply remove ‘console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty‘ from the line. (Thanks to DL5DI)
You may also want to physically re-seat the DV3000

If that doesn't get it working, email me directly and I'll have a look.

On Fri, Jun 19, 2015 at 9:49 AM, 'Dan Ozment' dan@... [UniversalDigitalRadio] <UniversalDigitalRadio@...> wrote:
 

John,

 

That’s correct.  At one point I had Dummy Repeater and ircDDBGateway installed on the Pi, and I was able to make it talk to the card.  I was never able to get to it from the remote PC.   I have rebuilt and reinstalled the Pi since then.

 

I just tried again with ttyAM0 and got the same result. 

 

John, if I give you SSH access would you consider looking at the Pi?  I just set up a port forwarding rule to get to it from outside my firewall.  I forwarded both TCP/22 (on a non-standard port) and UDP/2460.   I could send you details in a private email if you would do that for me.

 

Dan

 

From: UniversalDigitalRadio@... [mailto:UniversalDigitalRadio@...]
Sent: Friday, June 19, 2015 12:39 PM


To: UniversalDigitalRadio@...
Subject: Re: [UniversalDigitalRadio] Re: Pi - Can't Find AMBE Dongle On The Port Specified

 

 

It doesn't appear you DV3000 is talking (we are talking about the GPIO plug in card on a Raspberry Pi, correct?)

 

From our site -- 

 

Test your DV3000 for communication with Raspberry Pi

sudo python AMBEtest2.py

 The results should include:

Product ID
6100010030
Wrote: 5 bytes
a
0
AMBE3000R
Version
6100010031
Wrote: 5 bytes
a
11V120.E100.XXXX.C106.G514.R009.B0010411.C0020208

 

Your results do not indicate this.

If you do a 

ls /dev/ttyA*

You should see a /dev/ttyAMA0  -- this is the interface for the DV3000 (A ThumbDV would show up as a /dev/ttyUSBx where x is a number). In which case you would use

AMBEserverGPIO -x -i /dev/ttyAMA0

 

 

 

On Fri, Jun 19, 2015 at 8:45 AM, 'Dan Ozment' dan@... [UniversalDigitalRadio] <UniversalDigitalRadio@...> wrote:

 

Thanks, John.  First, I verified that my PC firewall is being controlled by McAfee and that I have the firewall disabled in McAfee.  I’m running Dummy Repeater as admin in Win 7 compatibility mode.  I’ve tried it in XP and 8.1 mode as well.  Then, I took the following steps.   Note: I had to specify a TTY port when I started AMBEserverGPIO from the command line, so I blindly chose TTY1.  Also, I started Dummy Repeater twice, so there are two instances of AMBEserverGPIO receiving data.  

 

Still wondering what I’ve missed.  Is there a configuration file for AMBEserverGPIO?  I don’t remember doing any kind of configuration for it.  The only files I edited were /boot/cmdline.txt, /boot.config.txt, and /etc/inittab.

 

root@raspberrypi:~# cd DV3000/

root@raspberrypi:~/DV3000# ls

AMBEserver    AMBEserverGPIO    AMBEserver.o  AMBEtest3.py  dv3000d-AMBEserver.pdf  dv3000d.o  Makefile            README.txt

AMBEserver.c  AMBEserverGPIO.o  AMBEtest2.py  dv3000d       dv3000d.c               init.d     README-dv3000d.txt  wiringPi

 

 

root@raspberrypi:~/DV3000# service AMBEserverGPIO stop

Terminated

 

root@raspberrypi:~/DV3000# python ./AMBEtest2.py

d

8

N

1

False

False

False

0

Reset

6100010033

Wrote: 5 bytes

 

Product ID

6100010030

Wrote: 5 bytes

 

Version

6100010031

Wrote: 5 bytes

 

Set DSTAR Mode

61000c000a013007634000000000000048

Wrote: 17 bytes

 

 

root@raspberrypi:~/DV3000# AMBEserverGPIO

An input tty filename (-i /dev/ttyXXX) or a COM port number (-c 3) must be set.

 

root@raspberrypi:~/DV3000# AMBEserverGPIO -x -i /dev/tty1

opened the Wiring Pi library

Reset DV3000

opened the UDP socket on port 2460

opened /dev/tty1

Wrote Reset 5 chars

Socket data

0000:  61 00 01 00 30                                     *a...0*

Socket data

0000:  61 00 01 00 30                                     *a...0*

 

 

From: UniversalDigitalRadio@... [mailto:UniversalDigitalRadio@...]
Sent: Friday, June 19, 2015 1:28 AM
To: UniversalDigitalRadio@...
Subject: Re: [UniversalDigitalRadio] Re: Pi - Can't Find AMBE Dongle On The Port Specified

 

 

If you stop AMBEserverGPIO and run it from the command line

 

You can run with the -x flag to see what it is receiving and sending.  The tcpdump should see the packets, but the debug mode will let you know what the program sees.

 

There is a handshake between DummyRepeater and AMBEserver that needs to take place for DummyRepeater to recognize that it can see the DV3000 (or ThumbDV).  

 

You might also try running DummyRepeater as administrator under Windows.

 

Also, after you stop the AMBEserver, you might run AMBEtest2.py just verify that the device is talking before restarting AMBEserverGPIO.



 

--

 


John D. Hays
K7VE

 

PO Box 1223, Edmonds, WA 98020-1223 

  

 




--


John D. Hays
K7VE

PO Box 1223, Edmonds, WA 98020-1223 
  

Join main@nw-digital-radio.groups.io to automatically receive all group messages.