Skip to content
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

Mavlink issues on UART1 #12

Closed
sjwilks opened this issue Aug 30, 2012 · 4 comments
Closed

Mavlink issues on UART1 #12

sjwilks opened this issue Aug 30, 2012 · 4 comments

Comments

@sjwilks
Copy link
Contributor

sjwilks commented Aug 30, 2012

When I connect to the PX4 using Mission Planner mav 1.0 it fails to read the parameters from the board. The error message I get:

Timeout on read - getParamList 1217 Packets were received, but no parameter packets were received.

If I press the board's reset button while it is trying to read then it works. I went ahead and did a radio calibration and when it wanted to write the params back it failed as well ("Failed to set Channel 1", etc).

I have tried the same thing on my Mac using QGroundControl with the same results when trying to read the params.

I am using this autostart config: https://pixhawk.ethz.ch/px4/users/firststeps?s[]=calibration#settingupamicrosdautostartscript

I had specified UART1 (/dev/ttyS0) in the config when starting mavlink instead of ttyS1. Switching to UART2 (/dev/ttyS1) resolves the problem.

@LorenzMeier
Copy link
Member

I noticed the script in the tutorial was slightly outdated, try the updated version:

https://pixhawk.ethz.ch/px4/users/first_steps?&#setting_up_a_microsd_autostart_script

Also make sure to have the most recent code (like from today). Please report back if the issue persists - I can read and write params fine here.

@LorenzMeier
Copy link
Member

When you specified UART1 in your config (/dev/ttyS0), did you put an 'exit' at the end of your script? If not it can't work, because NSH is then still active on the port.

@sjwilks
Copy link
Contributor Author

sjwilks commented Sep 5, 2012

I tested this with the latest firmware and update script from the tutorial and can confirm that it works.

@sjwilks sjwilks closed this as completed Sep 5, 2012
@sjwilks
Copy link
Contributor Author

sjwilks commented Sep 11, 2012

I found the real cause for this problem as I just had it happened again tonight. Make sure the FTDI ground wire is connected properly, not just the TX/RX wires.

davidbuzz pushed a commit to davidbuzz/Firmware that referenced this issue Aug 28, 2013
julianoes added a commit that referenced this issue Sep 27, 2014
Drop at the exact timing, drop only if facing into the right direction
RomanBapst pushed a commit to RomanBapst/Firmware that referenced this issue May 19, 2015
fix mavlink message sending, make thread priority default
PX4BuildBot added a commit that referenced this issue Oct 2, 2018
    - micro-CDR in PX4/Firmware (76d0c66): eProsima/Micro-CDR@8125eac
    - micro-CDR current upstream: eProsima/Micro-CDR@f325c4f
    - Changes: eProsima/Micro-CDR@8125eac...f325c4f

    f325c4f 2018-10-02 Nuno Marques - add int8_t serialization and deserialization and respective tests (#12)
PX4BuildBot added a commit that referenced this issue Oct 3, 2018
    - micro-CDR in PX4/Firmware (204d7c2): eProsima/Micro-CDR@8125eac
    - micro-CDR current upstream: eProsima/Micro-CDR@f325c4f
    - Changes: eProsima/Micro-CDR@8125eac...f325c4f

    f325c4f 2018-10-02 Nuno Marques - add int8_t serialization and deserialization and respective tests (#12)
PX4BuildBot added a commit that referenced this issue Oct 3, 2018
    - micro-CDR in PX4/Firmware (2025cd6): eProsima/Micro-CDR@8125eac
    - micro-CDR current upstream: eProsima/Micro-CDR@f325c4f
    - Changes: eProsima/Micro-CDR@8125eac...f325c4f

    f325c4f 2018-10-02 Nuno Marques - add int8_t serialization and deserialization and respective tests (#12)
PX4BuildBot added a commit that referenced this issue Oct 3, 2018
    - micro-CDR in PX4/Firmware (2e19f6d): eProsima/Micro-CDR@8125eac
    - micro-CDR current upstream: eProsima/Micro-CDR@f325c4f
    - Changes: eProsima/Micro-CDR@8125eac...f325c4f

    f325c4f 2018-10-02 Nuno Marques - add int8_t serialization and deserialization and respective tests (#12)
PX4BuildBot added a commit that referenced this issue Oct 3, 2018
    - micro-CDR in PX4/Firmware (cca8cd74f97d5fdd4eb98f7cb806da0e151cf649): eProsima/Micro-CDR@8125eac
    - micro-CDR current upstream: eProsima/Micro-CDR@f325c4f
    - Changes: eProsima/Micro-CDR@8125eac...f325c4f

    f325c4f 2018-10-02 Nuno Marques - add int8_t serialization and deserialization and respective tests (#12)
PX4BuildBot added a commit that referenced this issue Oct 4, 2018
    - micro-CDR in PX4/Firmware (eee590f): eProsima/Micro-CDR@8125eac
    - micro-CDR current upstream: eProsima/Micro-CDR@f325c4f
    - Changes: eProsima/Micro-CDR@8125eac...f325c4f

    f325c4f 2018-10-02 Nuno Marques - add int8_t serialization and deserialization and respective tests (#12)
PX4BuildBot added a commit that referenced this issue Oct 4, 2018
    - micro-CDR in PX4/Firmware (f617aa8): eProsima/Micro-CDR@8125eac
    - micro-CDR current upstream: eProsima/Micro-CDR@f325c4f
    - Changes: eProsima/Micro-CDR@8125eac...f325c4f

    f325c4f 2018-10-02 Nuno Marques - add int8_t serialization and deserialization and respective tests (#12)
PX4BuildBot added a commit that referenced this issue Oct 5, 2018
    - micro-CDR in PX4/Firmware (ae27acf): eProsima/Micro-CDR@8125eac
    - micro-CDR current upstream: eProsima/Micro-CDR@f325c4f
    - Changes: eProsima/Micro-CDR@8125eac...f325c4f

    f325c4f 2018-10-02 Nuno Marques - add int8_t serialization and deserialization and respective tests (#12)
PX4BuildBot added a commit that referenced this issue Oct 5, 2018
    - micro-CDR in PX4/Firmware (a1212e9): eProsima/Micro-CDR@8125eac
    - micro-CDR current upstream: eProsima/Micro-CDR@f325c4f
    - Changes: eProsima/Micro-CDR@8125eac...f325c4f

    f325c4f 2018-10-02 Nuno Marques - add int8_t serialization and deserialization and respective tests (#12)
PX4BuildBot added a commit that referenced this issue Oct 6, 2018
    - micro-CDR in PX4/Firmware (a242c0f): eProsima/Micro-CDR@8125eac
    - micro-CDR current upstream: eProsima/Micro-CDR@f325c4f
    - Changes: eProsima/Micro-CDR@8125eac...f325c4f

    f325c4f 2018-10-02 Nuno Marques - add int8_t serialization and deserialization and respective tests (#12)
PX4BuildBot added a commit that referenced this issue Oct 6, 2018
    - micro-CDR in PX4/Firmware (34989ef): eProsima/Micro-CDR@8125eac
    - micro-CDR current upstream: eProsima/Micro-CDR@f325c4f
    - Changes: eProsima/Micro-CDR@8125eac...f325c4f

    f325c4f 2018-10-02 Nuno Marques - add int8_t serialization and deserialization and respective tests (#12)
PX4BuildBot added a commit that referenced this issue Oct 6, 2018
    - micro-CDR in PX4/Firmware (4745f5a): eProsima/Micro-CDR@8125eac
    - micro-CDR current upstream: eProsima/Micro-CDR@f325c4f
    - Changes: eProsima/Micro-CDR@8125eac...f325c4f

    f325c4f 2018-10-02 Nuno Marques - add int8_t serialization and deserialization and respective tests (#12)
PX4BuildBot added a commit that referenced this issue Oct 7, 2018
    - micro-CDR in PX4/Firmware (1dd1d8f): eProsima/Micro-CDR@8125eac
    - micro-CDR current upstream: eProsima/Micro-CDR@f325c4f
    - Changes: eProsima/Micro-CDR@8125eac...f325c4f

    f325c4f 2018-10-02 Nuno Marques - add int8_t serialization and deserialization and respective tests (#12)
PX4BuildBot added a commit that referenced this issue Oct 7, 2018
    - micro-CDR in PX4/Firmware (43ba749): eProsima/Micro-CDR@8125eac
    - micro-CDR current upstream: eProsima/Micro-CDR@f325c4f
    - Changes: eProsima/Micro-CDR@8125eac...f325c4f

    f325c4f 2018-10-02 Nuno Marques - add int8_t serialization and deserialization and respective tests (#12)
PX4BuildBot added a commit that referenced this issue Oct 8, 2018
    - micro-CDR in PX4/Firmware (aebface): eProsima/Micro-CDR@8125eac
    - micro-CDR current upstream: eProsima/Micro-CDR@f325c4f
    - Changes: eProsima/Micro-CDR@8125eac...f325c4f

    f325c4f 2018-10-02 Nuno Marques - add int8_t serialization and deserialization and respective tests (#12)
TSC21 pushed a commit to TSC21/Firmware that referenced this issue Feb 15, 2019
fix buffer overflow in constrain of wind velocity
msamogh pushed a commit to msamogh/Firmware that referenced this issue Jun 7, 2019
msamogh pushed a commit to msamogh/Firmware that referenced this issue Jun 7, 2019
plugins: use std::dynamic_pointer_cast rather than boost
PX4BuildBot added a commit that referenced this issue Dec 31, 2019
NuttX:
 - https://github.com/PX4-NuttX/nuttx/tree/master
 - PX4/NuttX@d16f0db

Changes from PX4/NuttX (PX4/NuttX@9331fda) in current PX4/master (ef12e63)
PX4/NuttX@9331fda...d16f0db

d16f0db7b8 (HEAD, origin/master) nxstyle improvements with No tooling (#12)
1db6f92 arch/arm/src/stm32l4/Kconfig:  Fixed conditional config for STM32L4_STM32L432XX and STM32L4_STM32L442XX archs.  The wrong spelling of STM32L4_STM32L432XX and STM32L4_STM32L442XX, caused the following three peripherals to be available although they are not supported by these architectures:  USART3, SPI2, and I2C1.  These were available for selection in menuconfig and caused compiler errors when selected.  This patch replaces the STM32L4_L432XX and STM32L4_L442XX items with STM32L4_STM32L432XX and STM32L4_STM32L442XX.
eba8eec STM32F7 and STM32H7 SDMMC internal pull up usage fixed
8dd4b27 tcp_conn: Check if the remote address is unspecified
87cf5c5 Correct some problems with network timed events when there are multiple network devices in the configuration.
ce63457 This change implements the SO_ERROR socket option that is used to obtain the last error reported by the network.
10c4aff Merge pull request #1 from apache/master_imxrt
9b7afcd imxrt106x:pinout add ALT 8 GPIO_GPT2_COMPARE3 & fix GPIO_GPT1_CAPTURE[1|2]
3dcd238 imxrt:lpi2c Fix interrupt storm on failed write.
0050ba9 imxrt:lpi2c ensure that on an error status reflects it.

Apps:
 - https://github.com/PX4/NuttX-apps/tree/master
 - PX4/NuttX-apps@0536c5b

Changes from PX4/NuttX-apps (PX4/NuttX-apps@91b6ad6) in current PX4/master (ef12e63)
PX4/NuttX-apps@91b6ad6...0536c5b

0536c5b5 (HEAD -> master, origin/master) apps/nshlib/nsh_parse.c:  Correct an error found in build testing.  Commit 2a462c78aa5f4ea6dc374eedd86bc85f9f79a0c4 was insufficient.  It was a mistake to revert Xiang's change of commit 9defae8af641752506d92b72ea68c8f94d24d580.  But we are on a different vector now.
2a462c78 nshlib/nsh_parse.c:  Replacement implementation for 9defae8af641752506d92b72ea68c8f94d24d580.  This addes conditional compilation on the definition of g_nullstring[] to avoid the warning.  Suggested by SUZUKI Y <[email protected]>
6bfd6166 Revert "apps/nshlib/nsh_parse.c:  Fix warning: 'g_nullstring defined but not used'.  Use  directly since the usage is triggered by a complex Kconfig combination."
9b77f807 apps/netutils/dhcpd/dhcpd.c:  Correct backward conditional logic in dhcpd_leaseexpired().  Noted by surya prakash <[email protected]>.
9defae8a apps/nshlib/nsh_parse.c:  Fix warning: 'g_nullstring defined but not used'.  Use  directly since the usage is triggered by a complex Kconfig combination.
3a2bd2c0 apps/netutils/ntpclient/ntpclient.c: Merge local structure variables xmit and recv into pkt to save the stack.
e48a74f3 apps/Application.mk: Convert object names to guarantee uniqueness.
5ec8fc94 apps/nshlib/nsh_fileapps.c:  nsh_fileapp() should return 1 if the application task was spawned successfully but returned failure exit status.  For example, nsh shouldn't output "/bin/ping: command not found":
77a3b083 apps/nshlib/nsh_parse.c:  Ensure /bin/ping and ping work at the same time.  Don't skip nsh_builtin even CONFIG_NSH_FILE_APPS or CONFIG_FS_BINFS equal y.
3da8091d Include nuttx/symtab.h instead of nuttx/binfmt/symtab.h since symtab.h under binfmt folder is for internal use.
PX4BuildBot added a commit that referenced this issue Jan 29, 2021
    - jsbsim_bridge in PX4/Firmware (f0d1f1d): PX4/px4-jsbsim-bridge@c51a61b
    - jsbsim_bridge current upstream: PX4/px4-jsbsim-bridge@e070c50
    - Changes: PX4/px4-jsbsim-bridge@c51a61b...e070c50

    e070c50 2021-01-29 JaeyoungLim - Merge pull request #12 from PX4/pr-upstream-merge
1c8c560 2021-01-07 bresch - bridge: FGInitialCondition is a shared_ptr
Igor-Misic pushed a commit to hacklabos/PX4-Autopilot that referenced this issue Aug 14, 2023
Faster MR descend for RTL - ported to 1.13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants