Skip to content
This repository has been archived by the owner on Jan 27, 2024. It is now read-only.

Question about project #5

Open
crgg opened this issue Oct 27, 2017 · 10 comments
Open

Question about project #5

crgg opened this issue Oct 27, 2017 · 10 comments

Comments

@crgg
Copy link

crgg commented Oct 27, 2017

Hi solid idea
this will be applicable in a phone apps
Thank you

@yeokm1
Copy link
Owner

yeokm1 commented Oct 28, 2017

I don't think soon actually. iOS has no support for USB serial port devices even through a Lightning-USB adapter.

@crgg
Copy link
Author

crgg commented Nov 20, 2017

but there are solutions on the market such as serial with Ethernet connection, currently I'm In using in desktop application on vb.net.

@yeokm1
Copy link
Owner

yeokm1 commented Nov 21, 2017

If you are using that, that means you are sending data over TCP/IP.

@crgg
Copy link
Author

crgg commented Nov 21, 2017

ah I don't know, must instal al additional program with the name virtual serial port , its create a COM2 or COM3 ... on the pc

@ThomasDose
Copy link

Hi, how can I avoid blocking when buffer is empty

@yeokm1
Copy link
Owner

yeokm1 commented Sep 20, 2018

@Thoby22

In the setSettings function:

func setSettings(receiveRate: BaudRate,
                 transmitRate: BaudRate,
                 minimumBytesToRead: Int,
                 timeout: Int = 0, /* 0 means wait indefinitely */
                 parityType: ParityType = .none,
                 sendTwoStopBits: Bool = false, /* 1 stop bit is the default */
                 dataBitsSize: DataBitsSize = .bits8,
                 useHardwareFlowControl: Bool = false,
                 useSoftwareFlowControl: Bool = false,
                 processOutput: Bool = false)

You can try passing 0 to the minimumBytesToRead field so the function will return immediately.

@ThomasDose
Copy link

Hi,
if you using CChar16 instead of CChar special character can be handled like ÜÖÄ.
Otherwise a runtime error occurred.
I like your library, very convenient - good Job!

@yeokm1
Copy link
Owner

yeokm1 commented Sep 21, 2018

@Thoby22

A possible fix for the problem you mentioned was partially solved in this PR #7

I don't mind accepting PRs. Would you like to contribute?

@ThomasDose
Copy link

ThomasDose commented Sep 21, 2018 via email

@yeokm1
Copy link
Owner

yeokm1 commented Sep 23, 2018

@Thoby22 Would you like to have the opportunity to issue a PR to my code? I can do it but it might take more time owing to my commitments now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants