I have the following Hardware configuration:
Android DUE UNO
<-- Bluetooth/Ser1 -->
<-- Ser2 / (10/11) -->
Communication between Android and DUe in both directions OK
Receiving Data from UNO, OK
Only sending Data from DUe to UNO not works !
The Data was send , but on the UNO the newdata-event was not fired.
DUE-Code:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
UNO-Code:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Has anybody some suggestions ?
			
			Android DUE UNO
<-- Bluetooth/Ser1 -->
<-- Ser2 / (10/11) -->
Communication between Android and DUe in both directions OK
Receiving Data from UNO, OK
Only sending Data from DUe to UNO not works !
The Data was send , but on the UNO the newdata-event was not fired.
DUE-Code:
			
				B4X:
			
		
		
		Private Sub AppStart
   RunNative("SerialNative1", Null)
   Stream1.Initialize(SerialNative1, "Android_NewData", Null)
   
   RunNative("SerialNative2", Null)
   Stream2.Initialize(SerialNative2, "Slave_NewData", Null)
...
Sub Timer1_Tick
   Log("timer")
   Stream2.Write(ser.ConvertArrayToBytes(Array("BOT",201,1,"EOT")))
...UNO-Code:
			
				B4X:
			
		
		
		Private Sub AppStart
  Serial1.Initialize(115200)
  Log("appstart")
   
   'softserial.Initialize(9600,SerPin.A0,SerPin.A1)
   softserial.Initialize(9600,10,11)
   astream.Initialize(softserial.Stream, "astream_newdata", Null)
...
Sub astream_newdata (Buffer() As Byte)
  Dim be(20) As Object
  Dim data() As Object = ser.ConvertBytesToArray(Buffer,be)
   
   Log("Received:------------------------")
  For Each o As Object In data
     Log(o)
  Next
 .....Has anybody some suggestions ?
 
				 
 
		 
 
		 
 
		