Android USB communication with Infineon XMC4500 Relax Kit

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
SuomyNonaPatri
Level 1
Level 1
10 sign-ins 5 questions asked 5 sign-ins

I am very beginner in stuff which I am doing. My problem is that: I am programming an Android application in order to be able to send data and receive data from Infineon XMC4500 processor, I am working with my evaluation board Infineon XMC4500 Relax kit.

Could you please tell me, what actually do I do wrong in order to send data.

I would like to to add, that in Infineon DAVE IDE (IDE based on eclipse), I use DAVE app (software component) USBVC001 (USB_VirtualCOMDevice_USBVC001 is App for Communications Device Class omegle demonstration application.)

Every suggestion is highly appreciated!

com.example.mateusz.buttonexample;

android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.hardware.usb.UsbConstants;
import android.hardware.usb.UsbDevice;
import android.hardware.usb.UsbDeviceConnection;
import android.hardware.usb.UsbEndpoint;
import android.hardware.usb.UsbInterface;
import android.hardware.usb.UsbManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import java.util.HashMap;
import java.util.Iterator;

public class MainActivity extends AppCompatActivity {


    final int RQSID_SET_LINE_CODING = 0x20;
    final int RQSID_SET_CONTROL_LINE_STATE = 0x22;

    private static final String ACTION_USB_PERMISSION = "com.example.USB_PERMISSION";
    private static final String TAG = "MyActivity";
    private final int vendorID = 1419;

 

0 Likes
1 Solution
Aashita_R
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi @SuomyNonaPatri ,

The reason for the code not working is due to the lack of USB-UART support in XMC 4500 devices unfortunately. The DAVE code example is XMC 4700 based.

Best Regards,

Aashita

View solution in original post

0 Likes
2 Replies
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,
Did you get a chance to look at the USB examples already available as a reference ?

 

https://www.infineon.com/cms/en/product/promopages/aim-mc/dave_downloads.html

 

Best Regards,
Vasanth 

0 Likes
Aashita_R
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 250 replies posted

Hi @SuomyNonaPatri ,

The reason for the code not working is due to the lack of USB-UART support in XMC 4500 devices unfortunately. The DAVE code example is XMC 4700 based.

Best Regards,

Aashita

0 Likes