Unable to start streaming/not sending messages

HomeForumsMonoBrick Communication LibraryUnable to start streaming/not sending messages

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #3644
    Author Image
    Pepe
    Participant

    Hi Anders,

    I came across the monobrick searching for a good PC to brick BT remote control. I’ve experienced problems trying to control a smartphone loaded robot trough a BT connection; but not now, doing it trough the Wi-Fi.

    My problem comes when I try to start the video streaming, i receive a “Failed to start remote RTSP-server”.

    Also, i’ve tried to send messages to trigger certain actions, but even receiving a “Message Write” warning it doesn’t seem to work.

    Thanks!

    P.S. I’m using an NXT brick.

    #3646
    Author Image
    Anders Søborg
    Keymaster

    Have you enabled streaming on the phone?
    Settings dialog

    Anders

    #3652
    Author Image
    Pepe
    Participant

    Yes, it’s enabled.

    #3655
    Author Image
    Anders Søborg
    Keymaster

    Are you using a firewall? Have you installed VLC? What is your configuration – RTSP port video port? Are you connect directly to your phone (your phone is acting as WiFi hotspot) or through a router? What are the settings on your router. Are you forwarding traffic from your PC to your phone on the router? A more detailed description would be nice…

    #3659
    Author Image
    Pepe
    Participant

    Ok, sorry. I’m not an expert, but I’ll try to explain myself:

    – Windows (Win7 Home Premium) firewall, as far as I know.
    – VLC is installed.
    – Configuration (on my phone settings, I suppose) is default 8086 port for RTSP an 9000 for video.
    – My PC is wired to a WiFi router, which the phone is wirelessly connected to. I have no idea about this device configuration, but if you give me some advice on what I must look for, I’ll try to investigate.

    Thaks a lot.

    #3660
    Author Image
    Anders Søborg
    Keymaster

    Hi again

    Try the following. Create a WiFi hotspot on your phone – without a encryption/no password. Then connect from your PC to the phone’s WiFi network. Once connected disable your firewall on the PC and run the Android Tunnel software. Check if the connection is ok by sending a motor command or something. Finally try to stream video… this should work.

    Anders

    #3661
    Author Image
    Pepe
    Participant

    ¡Works GREAT! Is much more than fast enough to remote controlling the robot in real time, my friend, really really nice work.

    I still have problems sending messages to the NXT: my machine sports a rotaing turret for holding the phone, and I want to trigger different movements. I understand that if the program is running, it will compare text strings I could send from single keys using your PC software and, when correct, make the required actions. But it still does nothing, even with the console showing “Write message: OK” in the status bar.

    Thanks, again.

    #3677
    Author Image
    Anders Søborg
    Keymaster

    Hi Again

    ¡Works GREAT! Is much more than fast enough to remote controlling the robot in real time, my friend, really really nice work.

    Great

    I still have problems sending messages to the NXT: my machine sports a rotaing turret for holding the phone, and I want to trigger different movements. I understand that if the program is running, it will compare text strings I could send from single keys using your PC software and, when correct, make the required actions. But it still does nothing, even with the console showing “Write message: OK” in the status bar.

    You must be using the wrong mailbox or something else is wrong in your program

    Anders

    #3682
    Author Image
    Pepe
    Participant

    I’m using the same mailbox, both in the remote and in the program.

    If you could tell me how to write a simple program, just to test that function, I would appreciate.

    Also, I see two buttons in the Tunnel tab, that doesn’t work at all: the “toggle light” and the GPS ones. Should they work or are still not?

    Thanks!

    And happy new year 😉

    • This reply was modified 10 years, 11 months ago by Author ImagePepe.
    #3688
    Author Image
    Anders Søborg
    Keymaster

    Post the program that you have running on the NXT – and I will have a look at it. The “toggle light” and GPS are for “future” use.

    Anders

    #3696
    Author Image
    Pepe
    Participant

    I’m trying to make it work whith something like this…

    • This reply was modified 10 years, 11 months ago by Author ImagePepe.
    Attachments:
    You must be logged in to view attached files.
    #3702
    Author Image
    Anders Søborg
    Keymaster

    Looks ok – be sure not to clear the mailbox each time you read it.

    Try to go through all mailboxes in your PC application. If that doesn’t work try the following…

    If I remember correctly – the NXT has something with the ten first mailboxes being for read and the next ten being for write (it might be the other way around). So you might need to add ten to your mailbox number on either the PC or NXT side. This is from a phone so you might need to clarify this by having a look at the MonoBrick code yourself…

    Anders

    #3705
    Author Image
    Pepe
    Participant

    It seems too complicated for me, but I’ll keep working on it. I’ll tell you when I get it right.

    Thanks again.

    #3706
    Author Image
    Anders Søborg
    Keymaster

    Hi

    Just try it and see how it goes

    Anders

    #3742
    Author Image
    Pepe
    Participant

    Problem solved: there is no concordance between the mailbox numbers in NXT-G software and yours. In NXT-G mailbox numbers range from 1 to 10, but in the Monobrick Remote they range from 0 to 9. Simply send messages from mailbox 0 to mailbox 1 and everything is OK ;-D

    Thanks!

Viewing 15 posts - 1 through 15 (of 17 total)

You must be logged in to reply to this topic.

Posted in

Make a donation