Skip to content

Using in Unity3d #25

@gagagu

Description

@gagagu

Hi,
i want to use you library in Unity3d and i will get an error which i don't know to handle. I've switched your Project and Unity3D to .net 4.6 and both are working correctly (separate).
The ArduinoUploader.dll and RJCP.SerialPortStream.dll are compiled also with 4.6

When i will start the Project in Visual Studio the Music sounds out of the Arduino correctly

I've copied the following files to unity:
ArduinoDriver.dll
ArduinoDriver.dll.config
ArduinoUploader.dll
IntelHexFormatReader.dll
NLog.dll
RJCP.SerialPortStream.dll
RJCP.SerialPortStream.xml

When i will start my Project and send the Music to the Arduino the yellow LED is blinking and i will get the following error:

IOException: Device Error
RJCP.IO.Ports.SerialPortStream.WriteCheckDeviceError () (at :0)
RJCP.IO.Ports.SerialPortStream.WriteCheck (System.Byte[] buffer, System.Int32 offset, System.Int32 count) (at :0)
RJCP.IO.Ports.SerialPortStream.Write (System.Byte[] buffer, System.Int32 offset, System.Int32 count) (at :0)
ArduinoUploader.BootloaderProgrammers.ArduinoBootloaderProgrammer.Send (ArduinoUploader.BootloaderProgrammers.Protocols.IRequest request) (at :0)
ArduinoUploader.BootloaderProgrammers.Protocols.STK500v1.Stk500V1BootloaderProgrammer.EstablishSync () (at :0)
ArduinoUploader.ArduinoSketchUploader.UploadSketch (System.Collections.Generic.IEnumerable`1[T] hexFileContents) (at :0)

I know ist not directly your issue but i'm hoping that you can identify the Problem when you see the error message. May be some files missing?

THX Forward!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions