Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin Connection #31

Open
gourav1996 opened this issue Nov 27, 2018 · 3 comments
Open

Pin Connection #31

gourav1996 opened this issue Nov 27, 2018 · 3 comments

Comments

@gourav1996
Copy link

Where to connect DE and RE Pin of rs485 converter to stm32f4.
And How to configure it?

Thank you.

@armink
Copy link
Owner

armink commented Nov 27, 2018

https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32/blob/master/FreeModbus/port/rtt/portserial.c#L131

see MODBUS_SLAVE_RT_CONTROL_PIN_INDEX definition

@gourav1996
Copy link
Author

Thank you for your replay.
Just few more things, I want to get data of a meter from holding register value 40002, it's slave id is 121, and it's baudrate is 9600. Could you please suggest me where to define these?

Thank you.

@armink
Copy link
Owner

armink commented Nov 27, 2018

baudrate can be changed by eMBMasterInit: https://github.com/armink/FreeModbus_Slave-Master-RTT-STM32/blob/master/APP/src/app_task.c#L94

the slave id and register value's change, please see eMBMasterReqReadHoldingRegister demo on app_task.c

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

No branches or pull requests

2 participants